X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=glib.pxd;h=d0cf22f996c621894f5e257dc989ff360db7b663;hp=b0a5d32833f8d96a2868a18799ca9840a6d05f28;hb=61d2c35c5084836d751dda7bd0ee63ad09a9e9ea;hpb=7812f09fe236356859d21a78a0b52b767eb949d8;ds=sidebyside diff --git a/glib.pxd b/glib.pxd index b0a5d32..d0cf22f 100644 --- a/glib.pxd +++ b/glib.pxd @@ -19,6 +19,7 @@ cdef extern from "glib.h": ctypedef void *gpointer + ctypedef void *gconstpointer ctypedef int gint ctypedef unsigned int guint ctypedef gint gboolean @@ -26,7 +27,7 @@ cdef extern from "glib.h": # GHashTable is an opaque data structure ctypedef struct GHashTable: - void *none + pass struct _GSList: gpointer data @@ -38,3 +39,17 @@ cdef extern from "glib.h": _GList *next _GList *prev ctypedef _GList GList + + ctypedef guint GHashFunc (gconstpointer) + ctypedef gboolean GEqualFunc (gconstpointer, gconstpointer) + + gboolean g_str_equal (gconstpointer, gconstpointer) + guint g_str_hash (gconstpointer) + + GHashTable *g_hash_table_new (GHashFunc, GEqualFunc) + void g_hash_table_insert (GHashTable*, gpointer, gpointer) + + guint g_timeout_add(guint interval, GSourceFunc function, gpointer data) + guint g_timeout_add_seconds(guint interval, GSourceFunc function, gpointer data) + + gboolean g_source_remove(guint tag)