1 /* tp-conn-iface-presence-gen.h |
|
2 * |
|
3 * Copyright (C) 2005 Collabora Ltd. |
|
4 * |
|
5 * |
|
6 * This library is free software; you can redistribute it and/or |
|
7 * modify it under the terms of the GNU Lesser General Public |
|
8 * License as published by the Free Software Foundation; either |
|
9 * version 2.1 of the License, or (at your option) any later version. |
|
10 * |
|
11 * This library 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 GNU |
|
14 * Lesser General Public License for more details. |
|
15 * |
|
16 * You should have received a copy of the GNU Lesser General Public |
|
17 * License along with this library; if not, write to the Free Software |
|
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
19 * |
|
20 */ |
|
21 /* Generated by dbus-binding-tool; do not edit! */ |
|
22 |
|
23 #include <glib/gtypes.h> |
|
24 #include <glib/gerror.h> |
|
25 #include <dbus/dbus-glib.h> |
|
26 |
|
27 G_BEGIN_DECLS |
|
28 |
|
29 #ifndef DBUS_GLIB_CLIENT_WRAPPERS_org_freedesktop_Telepathy_Connection_Interface_Presence |
|
30 #define DBUS_GLIB_CLIENT_WRAPPERS_org_freedesktop_Telepathy_Connection_Interface_Presence |
|
31 |
|
32 static |
|
33 #ifdef G_HAVE_INLINE |
|
34 inline |
|
35 #endif |
|
36 gboolean |
|
37 tp_conn_iface_presence_add_status (DBusGProxy *proxy, const char * IN_status, const GHashTable* IN_parms, GError **error) |
|
38 |
|
39 { |
|
40 return dbus_g_proxy_call (proxy, "AddStatus", error, G_TYPE_STRING, IN_status, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE), IN_parms, G_TYPE_INVALID, G_TYPE_INVALID); |
|
41 } |
|
42 |
|
43 typedef void (*tp_conn_iface_presence_add_status_reply) (DBusGProxy *proxy, GError *error, gpointer userdata); |
|
44 |
|
45 static void |
|
46 tp_conn_iface_presence_add_status_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data) |
|
47 { |
|
48 DBusGAsyncData *data = (DBusGAsyncData*)user_data; |
|
49 GError *error = NULL; |
|
50 dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INVALID); |
|
51 (*(tp_conn_iface_presence_add_status_reply)data->cb) (proxy, error, data->userdata); |
|
52 return; |
|
53 } |
|
54 |
|
55 static |
|
56 #ifdef G_HAVE_INLINE |
|
57 inline |
|
58 #endif |
|
59 DBusGProxyCall* |
|
60 tp_conn_iface_presence_add_status_async (DBusGProxy *proxy, const char * IN_status, const GHashTable* IN_parms, tp_conn_iface_presence_add_status_reply callback, gpointer userdata) |
|
61 |
|
62 { |
|
63 DBusGAsyncData *stuff; |
|
64 stuff = g_new (DBusGAsyncData, 1); |
|
65 stuff->cb = G_CALLBACK (callback); |
|
66 stuff->userdata = userdata; |
|
67 return dbus_g_proxy_begin_call (proxy, "AddStatus", tp_conn_iface_presence_add_status_async_callback, stuff, g_free, G_TYPE_STRING, IN_status, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE), IN_parms, G_TYPE_INVALID); |
|
68 } |
|
69 static |
|
70 #ifdef G_HAVE_INLINE |
|
71 inline |
|
72 #endif |
|
73 gboolean |
|
74 tp_conn_iface_presence_clear_status (DBusGProxy *proxy, GError **error) |
|
75 |
|
76 { |
|
77 return dbus_g_proxy_call (proxy, "ClearStatus", error, G_TYPE_INVALID, G_TYPE_INVALID); |
|
78 } |
|
79 |
|
80 typedef void (*tp_conn_iface_presence_clear_status_reply) (DBusGProxy *proxy, GError *error, gpointer userdata); |
|
81 |
|
82 static void |
|
83 tp_conn_iface_presence_clear_status_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data) |
|
84 { |
|
85 DBusGAsyncData *data = (DBusGAsyncData*)user_data; |
|
86 GError *error = NULL; |
|
87 dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INVALID); |
|
88 (*(tp_conn_iface_presence_clear_status_reply)data->cb) (proxy, error, data->userdata); |
|
89 return; |
|
90 } |
|
91 |
|
92 static |
|
93 #ifdef G_HAVE_INLINE |
|
94 inline |
|
95 #endif |
|
96 DBusGProxyCall* |
|
97 tp_conn_iface_presence_clear_status_async (DBusGProxy *proxy, tp_conn_iface_presence_clear_status_reply callback, gpointer userdata) |
|
98 |
|
99 { |
|
100 DBusGAsyncData *stuff; |
|
101 stuff = g_new (DBusGAsyncData, 1); |
|
102 stuff->cb = G_CALLBACK (callback); |
|
103 stuff->userdata = userdata; |
|
104 return dbus_g_proxy_begin_call (proxy, "ClearStatus", tp_conn_iface_presence_clear_status_async_callback, stuff, g_free, G_TYPE_INVALID); |
|
105 } |
|
106 static |
|
107 #ifdef G_HAVE_INLINE |
|
108 inline |
|
109 #endif |
|
110 gboolean |
|
111 tp_conn_iface_presence_get_statuses (DBusGProxy *proxy, GHashTable** OUT_arg0, GError **error) |
|
112 |
|
113 { |
|
114 return dbus_g_proxy_call (proxy, "GetStatuses", error, G_TYPE_INVALID, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, dbus_g_type_get_struct ("GValueArray", G_TYPE_UINT, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_STRING), G_TYPE_INVALID)), OUT_arg0, G_TYPE_INVALID); |
|
115 } |
|
116 |
|
117 typedef void (*tp_conn_iface_presence_get_statuses_reply) (DBusGProxy *proxy, GHashTable *OUT_arg0, GError *error, gpointer userdata); |
|
118 |
|
119 static void |
|
120 tp_conn_iface_presence_get_statuses_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data) |
|
121 { |
|
122 DBusGAsyncData *data = (DBusGAsyncData*)user_data; |
|
123 GError *error = NULL; |
|
124 GHashTable* OUT_arg0; |
|
125 dbus_g_proxy_end_call (proxy, call, &error, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, dbus_g_type_get_struct ("GValueArray", G_TYPE_UINT, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_STRING), G_TYPE_INVALID)), &OUT_arg0, G_TYPE_INVALID); |
|
126 (*(tp_conn_iface_presence_get_statuses_reply)data->cb) (proxy, OUT_arg0, error, data->userdata); |
|
127 return; |
|
128 } |
|
129 |
|
130 static |
|
131 #ifdef G_HAVE_INLINE |
|
132 inline |
|
133 #endif |
|
134 DBusGProxyCall* |
|
135 tp_conn_iface_presence_get_statuses_async (DBusGProxy *proxy, tp_conn_iface_presence_get_statuses_reply callback, gpointer userdata) |
|
136 |
|
137 { |
|
138 DBusGAsyncData *stuff; |
|
139 stuff = g_new (DBusGAsyncData, 1); |
|
140 stuff->cb = G_CALLBACK (callback); |
|
141 stuff->userdata = userdata; |
|
142 return dbus_g_proxy_begin_call (proxy, "GetStatuses", tp_conn_iface_presence_get_statuses_async_callback, stuff, g_free, G_TYPE_INVALID); |
|
143 } |
|
144 static |
|
145 #ifdef G_HAVE_INLINE |
|
146 inline |
|
147 #endif |
|
148 gboolean |
|
149 tp_conn_iface_presence_remove_status (DBusGProxy *proxy, const char * IN_status, GError **error) |
|
150 |
|
151 { |
|
152 return dbus_g_proxy_call (proxy, "RemoveStatus", error, G_TYPE_STRING, IN_status, G_TYPE_INVALID, G_TYPE_INVALID); |
|
153 } |
|
154 |
|
155 typedef void (*tp_conn_iface_presence_remove_status_reply) (DBusGProxy *proxy, GError *error, gpointer userdata); |
|
156 |
|
157 static void |
|
158 tp_conn_iface_presence_remove_status_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data) |
|
159 { |
|
160 DBusGAsyncData *data = (DBusGAsyncData*)user_data; |
|
161 GError *error = NULL; |
|
162 dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INVALID); |
|
163 (*(tp_conn_iface_presence_remove_status_reply)data->cb) (proxy, error, data->userdata); |
|
164 return; |
|
165 } |
|
166 |
|
167 static |
|
168 #ifdef G_HAVE_INLINE |
|
169 inline |
|
170 #endif |
|
171 DBusGProxyCall* |
|
172 tp_conn_iface_presence_remove_status_async (DBusGProxy *proxy, const char * IN_status, tp_conn_iface_presence_remove_status_reply callback, gpointer userdata) |
|
173 |
|
174 { |
|
175 DBusGAsyncData *stuff; |
|
176 stuff = g_new (DBusGAsyncData, 1); |
|
177 stuff->cb = G_CALLBACK (callback); |
|
178 stuff->userdata = userdata; |
|
179 return dbus_g_proxy_begin_call (proxy, "RemoveStatus", tp_conn_iface_presence_remove_status_async_callback, stuff, g_free, G_TYPE_STRING, IN_status, G_TYPE_INVALID); |
|
180 } |
|
181 static |
|
182 #ifdef G_HAVE_INLINE |
|
183 inline |
|
184 #endif |
|
185 gboolean |
|
186 tp_conn_iface_presence_request_presence (DBusGProxy *proxy, const GArray* IN_contacts, GError **error) |
|
187 |
|
188 { |
|
189 return dbus_g_proxy_call (proxy, "RequestPresence", error, dbus_g_type_get_collection ("GArray", G_TYPE_UINT), IN_contacts, G_TYPE_INVALID, G_TYPE_INVALID); |
|
190 } |
|
191 |
|
192 typedef void (*tp_conn_iface_presence_request_presence_reply) (DBusGProxy *proxy, GError *error, gpointer userdata); |
|
193 |
|
194 static void |
|
195 tp_conn_iface_presence_request_presence_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data) |
|
196 { |
|
197 DBusGAsyncData *data = (DBusGAsyncData*)user_data; |
|
198 GError *error = NULL; |
|
199 dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INVALID); |
|
200 (*(tp_conn_iface_presence_request_presence_reply)data->cb) (proxy, error, data->userdata); |
|
201 return; |
|
202 } |
|
203 |
|
204 static |
|
205 #ifdef G_HAVE_INLINE |
|
206 inline |
|
207 #endif |
|
208 DBusGProxyCall* |
|
209 tp_conn_iface_presence_request_presence_async (DBusGProxy *proxy, const GArray* IN_contacts, tp_conn_iface_presence_request_presence_reply callback, gpointer userdata) |
|
210 |
|
211 { |
|
212 DBusGAsyncData *stuff; |
|
213 stuff = g_new (DBusGAsyncData, 1); |
|
214 stuff->cb = G_CALLBACK (callback); |
|
215 stuff->userdata = userdata; |
|
216 return dbus_g_proxy_begin_call (proxy, "RequestPresence", tp_conn_iface_presence_request_presence_async_callback, stuff, g_free, dbus_g_type_get_collection ("GArray", G_TYPE_UINT), IN_contacts, G_TYPE_INVALID); |
|
217 } |
|
218 static |
|
219 #ifdef G_HAVE_INLINE |
|
220 inline |
|
221 #endif |
|
222 gboolean |
|
223 tp_conn_iface_presence_set_last_activity_time (DBusGProxy *proxy, const guint IN_time, GError **error) |
|
224 |
|
225 { |
|
226 return dbus_g_proxy_call (proxy, "SetLastActivityTime", error, G_TYPE_UINT, IN_time, G_TYPE_INVALID, G_TYPE_INVALID); |
|
227 } |
|
228 |
|
229 typedef void (*tp_conn_iface_presence_set_last_activity_time_reply) (DBusGProxy *proxy, GError *error, gpointer userdata); |
|
230 |
|
231 static void |
|
232 tp_conn_iface_presence_set_last_activity_time_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data) |
|
233 { |
|
234 DBusGAsyncData *data = (DBusGAsyncData*)user_data; |
|
235 GError *error = NULL; |
|
236 dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INVALID); |
|
237 (*(tp_conn_iface_presence_set_last_activity_time_reply)data->cb) (proxy, error, data->userdata); |
|
238 return; |
|
239 } |
|
240 |
|
241 static |
|
242 #ifdef G_HAVE_INLINE |
|
243 inline |
|
244 #endif |
|
245 DBusGProxyCall* |
|
246 tp_conn_iface_presence_set_last_activity_time_async (DBusGProxy *proxy, const guint IN_time, tp_conn_iface_presence_set_last_activity_time_reply callback, gpointer userdata) |
|
247 |
|
248 { |
|
249 DBusGAsyncData *stuff; |
|
250 stuff = g_new (DBusGAsyncData, 1); |
|
251 stuff->cb = G_CALLBACK (callback); |
|
252 stuff->userdata = userdata; |
|
253 return dbus_g_proxy_begin_call (proxy, "SetLastActivityTime", tp_conn_iface_presence_set_last_activity_time_async_callback, stuff, g_free, G_TYPE_UINT, IN_time, G_TYPE_INVALID); |
|
254 } |
|
255 static |
|
256 #ifdef G_HAVE_INLINE |
|
257 inline |
|
258 #endif |
|
259 gboolean |
|
260 tp_conn_iface_presence_set_status (DBusGProxy *proxy, const GHashTable* IN_statuses, GError **error) |
|
261 |
|
262 { |
|
263 return dbus_g_proxy_call (proxy, "SetStatus", error, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE)), IN_statuses, G_TYPE_INVALID, G_TYPE_INVALID); |
|
264 } |
|
265 |
|
266 typedef void (*tp_conn_iface_presence_set_status_reply) (DBusGProxy *proxy, GError *error, gpointer userdata); |
|
267 |
|
268 static void |
|
269 tp_conn_iface_presence_set_status_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data) |
|
270 { |
|
271 DBusGAsyncData *data = (DBusGAsyncData*)user_data; |
|
272 GError *error = NULL; |
|
273 dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INVALID); |
|
274 (*(tp_conn_iface_presence_set_status_reply)data->cb) (proxy, error, data->userdata); |
|
275 return; |
|
276 } |
|
277 |
|
278 static |
|
279 #ifdef G_HAVE_INLINE |
|
280 inline |
|
281 #endif |
|
282 DBusGProxyCall* |
|
283 tp_conn_iface_presence_set_status_async (DBusGProxy *proxy, const GHashTable* IN_statuses, tp_conn_iface_presence_set_status_reply callback, gpointer userdata) |
|
284 |
|
285 { |
|
286 DBusGAsyncData *stuff; |
|
287 stuff = g_new (DBusGAsyncData, 1); |
|
288 stuff->cb = G_CALLBACK (callback); |
|
289 stuff->userdata = userdata; |
|
290 return dbus_g_proxy_begin_call (proxy, "SetStatus", tp_conn_iface_presence_set_status_async_callback, stuff, g_free, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE)), IN_statuses, G_TYPE_INVALID); |
|
291 } |
|
292 #endif /* defined DBUS_GLIB_CLIENT_WRAPPERS_org_freedesktop_Telepathy_Connection_Interface_Presence */ |
|
293 |
|
294 G_END_DECLS |
|