src/gaim-client.c

changeset 11277
ab3c0b6c5ca5
parent 11241
f62a71823fc3
child 14097
0c340861ab79
equal deleted inserted replaced
11276:aec923529d31 11277:ab3c0b6c5ca5
7 #include "dbus-gaim.h" 7 #include "dbus-gaim.h"
8 #include "gaim-client-bindings.h" 8 #include "gaim-client-bindings.h"
9 9
10 static DBusGConnection *bus; 10 static DBusGConnection *bus;
11 static DBusGProxy *gaim_proxy; 11 static DBusGProxy *gaim_proxy;
12
13 static GList *garray_int_to_glist(GArray *array) {
14 GList *list = NULL;
15 int i;
16
17 for(i = 0; i < array->len; i++)
18 list = g_list_append(list, GINT_TO_POINTER(g_array_index(array,gint,i)));
19
20 g_array_free(array, TRUE);
21 return list;
22 }
23
24 static GSList *garray_int_to_gslist(GArray *array) {
25 GSList *list = NULL;
26 int i;
27
28 for(i = 0; i < array->len; i++)
29 list = g_slist_append(list, GINT_TO_POINTER(g_array_index(array,gint,i)));
30
31 g_array_free(array, TRUE);
32 return list;
33 }
12 34
13 #include "gaim-client-bindings.c" 35 #include "gaim-client-bindings.c"
14 36
15 static void lose (const char *fmt, ...) G_GNUC_NORETURN G_GNUC_PRINTF (1, 2); 37 static void lose (const char *fmt, ...) G_GNUC_NORETURN G_GNUC_PRINTF (1, 2);
16 static void lose_gerror (const char *prefix, GError *error) G_GNUC_NORETURN; 38 static void lose_gerror (const char *prefix, GError *error) G_GNUC_NORETURN;

mercurial