Get buddies function
[python-purple] / glib.pxd
index d0cf22f..e651a95 100644 (file)
--- a/glib.pxd
+++ b/glib.pxd
@@ -22,13 +22,17 @@ cdef extern from "glib.h":
     ctypedef void *gconstpointer
     ctypedef int gint
     ctypedef unsigned int guint
     ctypedef void *gconstpointer
     ctypedef int gint
     ctypedef unsigned int guint
+    ctypedef unsigned long gulong
     ctypedef gint gboolean
     ctypedef gboolean (*GSourceFunc) (gpointer data)
     ctypedef gint gboolean
     ctypedef gboolean (*GSourceFunc) (gpointer data)
+    ctypedef unsigned int gsize
 
 
-    # GHashTable is an opaque data structure
     ctypedef struct GHashTable:
         pass
 
     ctypedef struct GHashTable:
         pass
 
+    ctypedef struct GMainContext:
+        pass
+
     struct _GSList:
         gpointer data
         _GSList *next
     struct _GSList:
         gpointer data
         _GSList *next
@@ -48,8 +52,11 @@ cdef extern from "glib.h":
 
     GHashTable *g_hash_table_new (GHashFunc, GEqualFunc)
     void g_hash_table_insert (GHashTable*, gpointer, gpointer)
 
     GHashTable *g_hash_table_new (GHashFunc, GEqualFunc)
     void g_hash_table_insert (GHashTable*, gpointer, gpointer)
+    void g_hash_table_destroy (GHashTable*)
 
     guint g_timeout_add(guint interval, GSourceFunc function, gpointer data)
     guint g_timeout_add_seconds(guint interval, GSourceFunc function, gpointer data)
 
 
     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)
     gboolean g_source_remove(guint tag)