X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=inline;f=glib.pxd;h=e24b2eda9f7903809c98c72ad494b59d5e129a78;hb=4dd540b8a4896ede6e99f7c7869fddf417d90f1a;hp=b0a5d32833f8d96a2868a18799ca9840a6d05f28;hpb=7812f09fe236356859d21a78a0b52b767eb949d8;p=python-purple diff --git a/glib.pxd b/glib.pxd index b0a5d32..e24b2ed 100644 --- 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)