Moved debug methods outside Purple class, added core ui ops callback examples.
[python-purple] / glib.pxd
index b0a5d32..e24b2ed 100644 (file)
--- 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
@@ -38,3 +39,16 @@ cdef extern from "glib.h":
         _GList *next
         _GList *prev
     ctypedef _GList GList
+
+    ctypedef guint GHashFunc (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)