X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=glib.pxd;h=9b589c552ea7de189df2f1caeccd62d301b8b0cf;hp=e24b2eda9f7903809c98c72ad494b59d5e129a78;hb=f73c4168c56d09ed8a2e280d391d0ca094892056;hpb=4dd540b8a4896ede6e99f7c7869fddf417d90f1a diff --git a/glib.pxd b/glib.pxd index e24b2ed..9b589c5 100644 --- a/glib.pxd +++ b/glib.pxd @@ -22,12 +22,15 @@ cdef extern from "glib.h": ctypedef void *gconstpointer ctypedef int gint ctypedef unsigned int guint + ctypedef unsigned long gulong ctypedef gint gboolean ctypedef gboolean (*GSourceFunc) (gpointer data) - # GHashTable is an opaque data structure ctypedef struct GHashTable: - void *none + pass + + ctypedef struct GMainContext: + pass struct _GSList: gpointer data @@ -41,14 +44,17 @@ cdef extern from "glib.h": ctypedef _GList GList ctypedef guint GHashFunc (gconstpointer) + ctypedef gboolean GEqualFunc (gconstpointer, 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 ) + 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_main_context_iteration (GMainContext *context, gboolean may_block) + gboolean g_source_remove(guint tag)