Adding function __set_protocol_options
[python-purple] / libpurple / glib.pxd
1 #
2 #  Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia
3 #
4 #  This file is part of python-purple.
5 #
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.
10 #
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.
15 #
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/>.
18 #
19
20 cdef extern from *:
21     ctypedef int volatile_gint "volatile int"
22
23 cdef extern from "glib.h":
24     ctypedef void *gpointer
25     ctypedef void *gconstpointer
26     ctypedef int gint
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
35     ctypedef char gchar
36     ctypedef unsigned char guchar
37
38     ctypedef void (*GCallback) ()
39     ctypedef void (*GDestroyNotify) (gpointer)
40
41     ctypedef guint GHashFunc (gconstpointer)
42     ctypedef gboolean GEqualFunc (gconstpointer, gconstpointer)
43
44     ctypedef struct GObject:
45         pass
46
47     ctypedef struct GHashNode:
48         gpointer key
49         gpointer value
50         GHashNode *next
51         guint key_hash
52
53     ctypedef struct GHashTable:
54         gint size
55         gint nnodes
56         GHashNode **nodes
57         GHashFunc hash_func
58         GEqualFunc key_equal_func
59         volatile_gint ref_count
60         int version
61         GDestroyNotify key_destroy_func
62         GDestroyNotify value_destroy_func
63
64     ctypedef struct GMainContext:
65         pass
66
67     ctypedef struct GSList:
68         gpointer data
69         GSList *next
70
71     ctypedef struct GList:
72         gpointer data
73         GList *next
74         GList *prev
75
76     void g_list_free (GList*)
77
78     gboolean g_str_equal (gconstpointer, gconstpointer)
79     guint g_str_hash (gconstpointer)
80
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)
87
88     guint g_timeout_add(guint interval, GSourceFunc function, gpointer data)
89     guint g_timeout_add_seconds(guint interval, GSourceFunc function, gpointer data)
90
91     gboolean g_main_context_iteration (GMainContext *context, gboolean may_block)
92
93     gboolean g_source_remove(guint tag)
94
95     gchar *g_markup_escape_text (gchar *text, gssize length)