X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=glib.pxd;h=d71cb329e90bd5ca9e4bb6b24b5595478a6e9796;hp=d00dfdf04cd2eb3aa80e0664039cb7da8e39fd85;hb=259f9a64714a5bd29616572dae287b90abe1354e;hpb=aa542c72d1d3cb8bb567f8a890cd37237b0e08c1 diff --git a/glib.pxd b/glib.pxd index d00dfdf..d71cb32 100644 --- a/glib.pxd +++ b/glib.pxd @@ -18,14 +18,15 @@ # cdef extern from "glib.h": - ctypedef void* gpointer + ctypedef void *gpointer ctypedef int gint ctypedef unsigned int guint ctypedef gint gboolean + ctypedef gboolean (*GSourceFunc) (gpointer data) # GHashTable is an opaque data structure ctypedef struct GHashTable: - void* none + void *none struct _GSList: gpointer data @@ -37,3 +38,6 @@ cdef extern from "glib.h": _GList *next _GList *prev ctypedef _GList GList + + guint g_timeout_add(guint interval, GSourceFunc function, gpointer data) + gboolean g_source_remove(guint tag)