Author: EricStein Date: 2007-07-07 23:09:30 -0400 (Sat, 07 Jul 2007) New Revision: 408
Modified: trunk/pysoy/include/glib.pxd Log: Added hashtable functions Modified: trunk/pysoy/include/glib.pxd =================================================================== --- trunk/pysoy/include/glib.pxd 2007-07-08 02:43:03 UTC (rev 407) +++ trunk/pysoy/include/glib.pxd 2007-07-08 03:09:30 UTC (rev 408) @@ -19,4 +19,49 @@ cdef extern from "glib.h" : - ctypedef void* gpointer + ctypedef void* gpointer + ctypedef char gchar; + ctypedef short gshort; + ctypedef long glong; + ctypedef int gint; + ctypedef gint gboolean; + ctypedef unsigned char guchar; + ctypedef unsigned short gushort; + ctypedef unsigned long gulong; + ctypedef unsigned int guint; + ctypedef float gfloat; + ctypedef double gdouble; + + cdef struct GHashTable : + void* none + + ctypedef gboolean GHRFunc ( gpointer, gpointer, gpointer ) + ctypedef gint GCompareFunc ( gconstpointer, gconstpointer ) + ctypedef gint GCompareDataFunc ( gconstpointer, gconstpointer, gpointer ) + ctypedef gboolean GEqualFunc ( gconstpointer, gconstpointer ) + ctypedef void GDestroyNotify ( gpointer ) + ctypedef void GFunc ( gpointer, gpointer ) + ctypedef guint GHashFunc ( gconstpointer ) + ctypedef void GHFunc ( gpointer,gpointer,gpointer ) + ctypedef void GFreeFunc ( gpointer ) + ctypedef gchar* GTranslateFunc ( gchar*, gpointer ) + + cdef GHashTable* g_hash_table_new ( GHashFunc, GEqualFunc ) + cdef GHashTable* g_hash_table_new_full ( GHashFunc, GEqualFunc, GDestroyNotify, GDestroyNotify ) + cdef void g_hash_table_destroy ( GHashTable* ) + cdef void g_hash_table_insert ( GHashTable*, gpointer, gpointer ) + cdef void g_hash_table_replace ( GHashTable*, gpointer, gpointer ) + cdef gboolean g_hash_table_remove ( GHashTable*, gconstpointer ) + cdef void g_hash_table_remove_all ( GHashTable* ) + cdef gboolean g_hash_table_steal ( GHashTable*, gconstpointer ) + cdef void g_hash_table_steal_all ( GHashTable* ) + cdef gpointer g_hash_table_lookup ( GHashTable*, gconstpointer ) + cdef gboolean g_hash_table_lookup_extended ( GHashTable*, gconstpointer, gpointer*, gpointer* ) + cdef void g_hash_table_foreach ( GHashTable*, GHFunc, gpointer ) + cdef gpointer g_hash_table_find ( GHashTable*, GHRFunc, gpointer ) + cdef guint g_hash_table_foreach_remove ( GHashTable*, GHRFunc, gpointer ) + cdef guint g_hash_table_foreach_steal ( GHashTable*, GHRFunc, gpointer ) + cdef guint g_hash_table_size ( GHashTable* ) + cdef GHashTable* g_hash_table_ref ( GHashTable* ) + cdef void g_hash_table_unref ( GHashTable* ) + _______________________________________________ PySoy-SVN mailing list [email protected] http://www.pysoy.org/mailman/listinfo/pysoy-svn
