Moved purple core ui ops to Cython code.
[python-purple] / glib.pxd
index d00dfdf..d71cb32 100644 (file)
--- a/glib.pxd
+++ b/glib.pxd
 #
 
 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)