Mercurial > pidgin
annotate libpurple/dbus-bindings.h @ 18117:cd81f8f36788
Fix some weird whitespace in the output.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 16 Jun 2007 19:21:06 +0000 |
parents | 3f3125b91728 |
children | ab6d2763b8d8 |
rev | line source |
---|---|
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
1 /** |
15822 | 2 * @file dbus-bindings.h Purple DBUS Bindings |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
3 * @ingroup core |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
4 * |
15822 | 5 * purple |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
6 * |
15822 | 7 * Purple is the legal property of its developers, whose names are too numerous |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
8 * to list here. Please refer to the COPYRIGHT file distributed with this |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
9 * source distribution. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
10 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
11 * This program is free software; you can redistribute it and/or modify |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
12 * it under the terms of the GNU General Public License as published by |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
13 * the Free Software Foundation; either version 2 of the License, or |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
14 * (at your option) any later version. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
15 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
16 * This program is distributed in the hope that it will be useful, |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
19 * GNU General Public License for more details. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
20 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
21 * You should have received a copy of the GNU General Public License |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
22 * along with this program; if not, write to the Free Software |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
24 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
25 */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
26 |
15822 | 27 #ifndef _PURPLE_DBUS_BINDINGS_H_ |
28 #define _PURPLE_DBUS_BINDINGS_H_ | |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
29 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
30 #include <dbus/dbus.h> |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
31 #include <dbus/dbus-glib-lowlevel.h> |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
32 #include <glib.h> |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
33 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
34 #ifdef __cplusplus |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
35 extern "C" { |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
36 #endif |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
37 |
17428
df911a06e09e
A patch from o_sukhodolsky to fix a couple warnings like this:
Richard Laager <rlaager@wiktel.com>
parents:
17426
diff
changeset
|
38 gint purple_dbus_pointer_to_id(gconstpointer node); |
15822 | 39 gpointer purple_dbus_id_to_pointer(gint id, PurpleDBusType *type); |
17428
df911a06e09e
A patch from o_sukhodolsky to fix a couple warnings like this:
Richard Laager <rlaager@wiktel.com>
parents:
17426
diff
changeset
|
40 gint purple_dbus_pointer_to_id_error(gconstpointer ptr, DBusError *error); |
15822 | 41 gpointer purple_dbus_id_to_pointer_error(gint id, PurpleDBusType *type, |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
42 const char *typename, DBusError *error); |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
43 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
44 #define NULLIFY(id) id = empty_to_null(id) |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
45 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
46 #define CHECK_ERROR(error) if (dbus_error_is_set(error)) return NULL; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
47 |
15822 | 48 #define PURPLE_DBUS_ID_TO_POINTER(ptr, id, type, error) \ |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
49 G_STMT_START { \ |
15822 | 50 ptr = (type*) purple_dbus_id_to_pointer_error \ |
51 (id, PURPLE_DBUS_TYPE(type), #type, error); \ | |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
52 CHECK_ERROR(error); \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
53 } G_STMT_END |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
54 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
55 |
15822 | 56 #define PURPLE_DBUS_POINTER_TO_ID(id, ptr, error) \ |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
57 G_STMT_START { \ |
15822 | 58 id = purple_dbus_pointer_to_id_error(ptr,error); \ |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
59 CHECK_ERROR(error); \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
60 } G_STMT_END |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
61 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
62 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
63 dbus_bool_t |
15822 | 64 purple_dbus_message_get_args (DBusMessage *message, |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
65 DBusError *error, |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
66 int first_arg_type, |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
67 ...); |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
68 dbus_bool_t |
15822 | 69 purple_dbus_message_get_args_valist (DBusMessage *message, |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
70 DBusError *error, |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
71 int first_arg_type, |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
72 va_list var_args); |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
73 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
74 dbus_bool_t |
15822 | 75 purple_dbus_message_iter_get_args (DBusMessageIter *iter, |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
76 DBusError *error, |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
77 int first_arg_type, |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
78 ...); |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
79 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
80 dbus_bool_t |
15822 | 81 purple_dbus_message_iter_get_args_valist (DBusMessageIter *iter, |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
82 DBusError *error, |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
83 int first_arg_type, |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
84 va_list var_args); |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
85 |
18059
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
86 /** |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
87 * @deprecated In 3.0.0, this method will have a signature and behavior |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
88 * like that of purple_dbusify_const_GList(). |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
89 */ |
15822 | 90 dbus_int32_t* purple_dbusify_GList(GList *list, gboolean free_memory, |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
91 dbus_int32_t *len); |
18059
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
92 /** |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
93 * @deprecated In 3.0.0, this method will have a signature and behavior |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
94 * like that of purple_dbusify_const_GSList(). |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
95 */ |
15822 | 96 dbus_int32_t* purple_dbusify_GSList(GSList *list, gboolean free_memory, |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
97 dbus_int32_t *len); |
18059
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
98 |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
99 /** |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
100 * @since 2.1.0 |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
101 */ |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
102 dbus_int32_t* purple_dbusify_const_GList(const GList *list, dbus_int32_t *len); |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
103 |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
104 /** |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
105 * @since 2.1.0 |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
106 */ |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
107 dbus_int32_t* purple_dbusify_const_GSList(const GSList *list, dbus_int32_t *len); |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
108 |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
109 /** |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
110 * @deprecated In 3.0.0, this method will have a signature and behavior |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
111 * like that of purple_const_GList_to_array(). |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
112 */ |
15822 | 113 gpointer* purple_GList_to_array(GList *list, gboolean free_memory, |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
114 dbus_int32_t *len); |
18059
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
115 /** |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
116 * @deprecated In 3.0.0, this method will have a signature and behavior |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
117 * like that of purple_const_GSList_to_array(). |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
118 */ |
15822 | 119 gpointer* purple_GSList_to_array(GSList *list, gboolean free_memory, |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
120 dbus_int32_t *len); |
18059
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
121 |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
122 /** |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
123 * @since 2.1.0 |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
124 */ |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
125 gpointer* purple_const_GList_to_array(const GList *list, dbus_int32_t *len); |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
126 |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
127 /** |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
128 * @since 2.1.0 |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
129 */ |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
130 gpointer* purple_const_GSList_to_array(const GSList *list, dbus_int32_t *len); |
3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
Richard Laager <rlaager@wiktel.com>
parents:
17428
diff
changeset
|
131 |
15822 | 132 GHashTable *purple_dbus_iter_hash_table(DBusMessageIter *iter, DBusError *error); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
133 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
134 const char* empty_to_null(const char *str); |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
135 const char* null_to_empty(const char *s); |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
136 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
137 typedef struct { |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
138 const char *name; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
139 const char *parameters; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
140 DBusMessage* (*handler)(DBusMessage *request, DBusError *error); |
15822 | 141 } PurpleDBusBinding; |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
142 |
15822 | 143 void purple_dbus_register_bindings(void *handle, PurpleDBusBinding *bindings); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
144 |
15822 | 145 DBusConnection *purple_dbus_get_connection(void); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
146 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
147 #ifdef __cplusplus |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
148 } |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
149 #endif |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
150 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
151 #endif |