X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=glib.pxd;h=014a177e7a1e1517cecf1416fc603b4e30c2153c;hp=d0cf22f996c621894f5e257dc989ff360db7b663;hb=3b6e95efe2d3101588da8c1fdbbf18c1ce84cfe3;hpb=61d2c35c5084836d751dda7bd0ee63ad09a9e9ea diff --git a/glib.pxd b/glib.pxd index d0cf22f..014a177 100644 --- a/glib.pxd +++ b/glib.pxd @@ -25,10 +25,12 @@ cdef extern from "glib.h": ctypedef gint gboolean ctypedef gboolean (*GSourceFunc) (gpointer data) - # GHashTable is an opaque data structure ctypedef struct GHashTable: pass + ctypedef struct GMainContext: + pass + struct _GSList: gpointer data _GSList *next @@ -52,4 +54,6 @@ cdef extern from "glib.h": guint g_timeout_add(guint interval, GSourceFunc function, gpointer data) guint g_timeout_add_seconds(guint interval, GSourceFunc function, gpointer data) + gboolean g_main_context_iteration (GMainContext *context, gboolean may_block) + gboolean g_source_remove(guint tag)