2 # Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia
4 # This file is part of python-purple.
6 # python-purple is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # python-purple is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21 ctypedef int volatile_gint "volatile int"
23 cdef extern from "glib.h":
24 ctypedef void *gpointer
25 ctypedef void *gconstpointer
27 ctypedef unsigned int guint
28 ctypedef unsigned long gulong
29 ctypedef signed long long gint64
30 ctypedef unsigned long long guint64
31 ctypedef gint gboolean
32 ctypedef gboolean (*GSourceFunc) (gpointer data)
33 ctypedef unsigned int gsize
34 ctypedef signed int gssize
36 ctypedef unsigned char guchar
38 ctypedef void (*GCallback) ()
39 ctypedef void (*GDestroyNotify) (gpointer)
41 ctypedef guint GHashFunc (gconstpointer)
42 ctypedef gboolean GEqualFunc (gconstpointer, gconstpointer)
44 ctypedef struct GObject:
47 ctypedef struct GHashNode:
53 ctypedef struct GHashTable:
58 GEqualFunc key_equal_func
59 volatile_gint ref_count
61 GDestroyNotify key_destroy_func
62 GDestroyNotify value_destroy_func
64 ctypedef struct GMainContext:
67 ctypedef struct GSList:
71 ctypedef struct GList:
76 void g_list_free (GList*)
78 gboolean g_str_equal (gconstpointer, gconstpointer)
79 guint g_str_hash (gconstpointer)
81 GHashTable *g_hash_table_new (GHashFunc, GEqualFunc)
82 void g_hash_table_destroy (GHashTable*)
83 GList *g_hash_table_get_keys (GHashTable*)
84 GList *g_hash_table_get_values (GHashTable*)
85 void g_hash_table_insert (GHashTable*, gpointer, gpointer)
86 gpointer g_hash_table_lookup (GHashTable*, gconstpointer)
88 guint g_timeout_add(guint interval, GSourceFunc function, gpointer data)
89 guint g_timeout_add_seconds(guint interval, GSourceFunc function, gpointer data)
91 gboolean g_main_context_iteration (GMainContext *context, gboolean may_block)
93 gboolean g_source_remove(guint tag)
95 gchar *g_markup_escape_text (gchar *text, gssize length)