Author: KirkMcDonald
Date: 2008-01-04 07:09:35 +0000 (Fri, 04 Jan 2008)
New Revision: 741

Added:
   trunk/pysoy/src/actions/Callback.pxi
Modified:
   trunk/pysoy/src/actions/soy.actions.pxd
   trunk/pysoy/src/actions/soy.actions.pyx
Log:
Stub for Callback class.

Added: trunk/pysoy/src/actions/Callback.pxi
===================================================================
--- trunk/pysoy/src/actions/Callback.pxi                                (rev 0)
+++ trunk/pysoy/src/actions/Callback.pxi        2008-01-04 07:09:35 UTC (rev 
741)
@@ -0,0 +1,27 @@
+# PySoy action.Callback class
+#
+# Copyright (C) 2006,2007,2008 PySoy Group
+#
+#  This program is free software; you can redistribute it and/or modify
+#  it under the terms of the GNU General Public License as published by
+#  the Free Software Foundation; either version 3 of the License, or
+#  (at your option) any later version.
+#
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License
+#  along with this program; if not, see http://www.gnu.org/licenses
+#
+# $Id$
+
+cdef class Callback (Action) :
+  def __cinit__(self, callback) :
+    self._callback = callback
+
+  cdef void _perform(self, unsigned int _duration):
+    # This is pseudo-code
+    callback_queue.add(self._callback)
+


Property changes on: trunk/pysoy/src/actions/Callback.pxi
___________________________________________________________________
Name: svn:keywords
   + Id

Modified: trunk/pysoy/src/actions/soy.actions.pxd
===================================================================
--- trunk/pysoy/src/actions/soy.actions.pxd     2008-01-04 06:56:23 UTC (rev 
740)
+++ trunk/pysoy/src/actions/soy.actions.pxd     2008-01-04 07:09:35 UTC (rev 
741)
@@ -29,4 +29,8 @@
   cdef int _zforce
 
 cdef class Stdout (Action) :
-  cdef char *text
\ No newline at end of file
+  cdef char *text
+
+cdef class Callback (Action) :
+  cdef object _callback
+

Modified: trunk/pysoy/src/actions/soy.actions.pyx
===================================================================
--- trunk/pysoy/src/actions/soy.actions.pyx     2008-01-04 06:56:23 UTC (rev 
740)
+++ trunk/pysoy/src/actions/soy.actions.pyx     2008-01-04 07:09:35 UTC (rev 
741)
@@ -27,6 +27,7 @@
 cimport stdio
 
 include "Action.pxi"
+#include "Callback.pxi"
 include "Force.pxi"
 include "Quit.pxi"
-include "Stdout.pxi"
\ No newline at end of file
+include "Stdout.pxi"

_______________________________________________
PySoy-SVN mailing list
[email protected]
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to