Author: EricStein
Date: 2008-01-04 07:42:00 +0000 (Fri, 04 Jan 2008)
New Revision: 742

Added:
   trunk/pysoy/src/_datatypes/AsyncQueue.pxi
Modified:
   trunk/pysoy/include/glib.pxd
   trunk/pysoy/src/_datatypes/soy._datatypes.pxd
   trunk/pysoy/src/_datatypes/soy._datatypes.pyx
Log:
how this is segfaulting shapes.py, I have no idea.  It doesn't even seem 
possible.


Modified: trunk/pysoy/include/glib.pxd
===================================================================
--- trunk/pysoy/include/glib.pxd        2008-01-04 07:09:35 UTC (rev 741)
+++ trunk/pysoy/include/glib.pxd        2008-01-04 07:42:00 UTC (rev 742)
@@ -39,6 +39,9 @@
   ctypedef struct GHashTable :
     void* none
 
+  ctypedef struct GAsyncQueue :
+    void* none
+
   ctypedef gboolean  GHRFunc           ( gpointer, gpointer, gpointer )
   ctypedef gint      GCompareFunc      ( gconstpointer, gconstpointer )
   ctypedef gint      GCompareDataFunc  ( gconstpointer, gconstpointer, 
gpointer )
@@ -76,4 +79,6 @@
   cdef GHashTable* g_hash_table_ref               ( GHashTable* )
   cdef void        g_hash_table_unref             ( GHashTable* )
 
+  cdef GAsyncQueue*    g_async_queue_new         ( )
+
   cdef gchar*      g_strdup                       ( gchar* )

Added: trunk/pysoy/src/_datatypes/AsyncQueue.pxi
===================================================================
--- trunk/pysoy/src/_datatypes/AsyncQueue.pxi                           (rev 0)
+++ trunk/pysoy/src/_datatypes/AsyncQueue.pxi   2008-01-04 07:42:00 UTC (rev 
742)
@@ -0,0 +1,27 @@
+# PySoy AsyncQueue 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: HashTable.pxi 703 2008-01-01 22:37:47Z ArcRiley $
+
+cdef class AsyncQueue :
+  '''GLib AsyncQueue
+
+  wrapped to allow ease of use by other PySoy classes.
+  '''
+
+  def __cinit__(self) :
+    self._asyncqueue = glib.g_async_queue_new()

Modified: trunk/pysoy/src/_datatypes/soy._datatypes.pxd
===================================================================
--- trunk/pysoy/src/_datatypes/soy._datatypes.pxd       2008-01-04 07:09:35 UTC 
(rev 741)
+++ trunk/pysoy/src/_datatypes/soy._datatypes.pxd       2008-01-04 07:42:00 UTC 
(rev 742)
@@ -46,6 +46,8 @@
   int offset
   int length
 
+cdef class AsyncQueue :
+  cdef glib.GAsyncQueue* _asyncqueue
 
 cdef class HashTable :
   cdef glib.GHashTable*  _hashtable

Modified: trunk/pysoy/src/_datatypes/soy._datatypes.pyx
===================================================================
--- trunk/pysoy/src/_datatypes/soy._datatypes.pyx       2008-01-04 07:09:35 UTC 
(rev 741)
+++ trunk/pysoy/src/_datatypes/soy._datatypes.pyx       2008-01-04 07:42:00 UTC 
(rev 742)
@@ -30,6 +30,7 @@
 cimport soy.materials
 cimport soy.meshes
 
+include "AsyncQueue.pxi"
 include "Datatype.pxi"
 include "HashTable.pxi"
 include "PointerSet.pxi"

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

Reply via email to