|
1 /* |
|
2 * gabble-roster-channel-glue.h |
|
3 * |
|
4 * Copyright (C) 2006 Collabora Ltd. |
|
5 * |
|
6 * |
|
7 * This library is free software; you can redistribute it and/or |
|
8 * modify it under the terms of the GNU Lesser General Public |
|
9 * License as published by the Free Software Foundation; either |
|
10 * version 2.1 of the License, or (at your option) any later version. |
|
11 * |
|
12 * This library is distributed in the hope that it will be useful, |
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
15 * Lesser General Public License for more details. |
|
16 * |
|
17 * You should have received a copy of the GNU Lesser General Public |
|
18 * License along with this library; if not, write to the Free Software |
|
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|
20 * |
|
21 */ |
|
22 /* Generated by dbus-binding-tool; do not edit! */ |
|
23 |
|
24 |
|
25 #ifndef __dbus_glib_marshal_gabble_roster_channel_MARSHAL_H__ |
|
26 #define __dbus_glib_marshal_gabble_roster_channel_MARSHAL_H__ |
|
27 |
|
28 #include <glib-object.h> |
|
29 |
|
30 G_BEGIN_DECLS |
|
31 |
|
32 #ifdef G_ENABLE_DEBUG |
|
33 #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) |
|
34 #define g_marshal_value_peek_char(v) g_value_get_char (v) |
|
35 #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) |
|
36 #define g_marshal_value_peek_int(v) g_value_get_int (v) |
|
37 #define g_marshal_value_peek_uint(v) g_value_get_uint (v) |
|
38 #define g_marshal_value_peek_long(v) g_value_get_long (v) |
|
39 #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) |
|
40 #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) |
|
41 #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) |
|
42 #define g_marshal_value_peek_enum(v) g_value_get_enum (v) |
|
43 #define g_marshal_value_peek_flags(v) g_value_get_flags (v) |
|
44 #define g_marshal_value_peek_float(v) g_value_get_float (v) |
|
45 #define g_marshal_value_peek_double(v) g_value_get_double (v) |
|
46 #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) |
|
47 #define g_marshal_value_peek_param(v) g_value_get_param (v) |
|
48 #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) |
|
49 #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) |
|
50 #define g_marshal_value_peek_object(v) g_value_get_object (v) |
|
51 #else /* !G_ENABLE_DEBUG */ |
|
52 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. |
|
53 * Do not access GValues directly in your code. Instead, use the |
|
54 * g_value_get_*() functions |
|
55 */ |
|
56 #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int |
|
57 #define g_marshal_value_peek_char(v) (v)->data[0].v_int |
|
58 #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint |
|
59 #define g_marshal_value_peek_int(v) (v)->data[0].v_int |
|
60 #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint |
|
61 #define g_marshal_value_peek_long(v) (v)->data[0].v_long |
|
62 #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong |
|
63 #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 |
|
64 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 |
|
65 #define g_marshal_value_peek_enum(v) (v)->data[0].v_long |
|
66 #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong |
|
67 #define g_marshal_value_peek_float(v) (v)->data[0].v_float |
|
68 #define g_marshal_value_peek_double(v) (v)->data[0].v_double |
|
69 #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer |
|
70 #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer |
|
71 #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer |
|
72 #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer |
|
73 #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer |
|
74 #endif /* !G_ENABLE_DEBUG */ |
|
75 |
|
76 |
|
77 /* BOOLEAN:POINTER,POINTER (/tmp/dbus-binding-tool-c-marshallers.KKEKIT:1) */ |
|
78 extern void dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER_POINTER (GClosure *closure, |
|
79 GValue *return_value, |
|
80 guint n_param_values, |
|
81 const GValue *param_values, |
|
82 gpointer invocation_hint, |
|
83 gpointer marshal_data); |
|
84 void |
|
85 dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER_POINTER (GClosure *closure, |
|
86 GValue *return_value, |
|
87 guint n_param_values, |
|
88 const GValue *param_values, |
|
89 gpointer invocation_hint, |
|
90 gpointer marshal_data) |
|
91 { |
|
92 typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER_POINTER) (gpointer data1, |
|
93 gpointer arg_1, |
|
94 gpointer arg_2, |
|
95 gpointer data2); |
|
96 register GMarshalFunc_BOOLEAN__POINTER_POINTER callback; |
|
97 register GCClosure *cc = (GCClosure*) closure; |
|
98 register gpointer data1, data2; |
|
99 gboolean v_return; |
|
100 |
|
101 g_return_if_fail (return_value != NULL); |
|
102 g_return_if_fail (n_param_values == 3); |
|
103 |
|
104 if (G_CCLOSURE_SWAP_DATA (closure)) |
|
105 { |
|
106 data1 = closure->data; |
|
107 data2 = g_value_peek_pointer (param_values + 0); |
|
108 } |
|
109 else |
|
110 { |
|
111 data1 = g_value_peek_pointer (param_values + 0); |
|
112 data2 = closure->data; |
|
113 } |
|
114 callback = (GMarshalFunc_BOOLEAN__POINTER_POINTER) (marshal_data ? marshal_data : cc->callback); |
|
115 |
|
116 v_return = callback (data1, |
|
117 g_marshal_value_peek_pointer (param_values + 1), |
|
118 g_marshal_value_peek_pointer (param_values + 2), |
|
119 data2); |
|
120 |
|
121 g_value_set_boolean (return_value, v_return); |
|
122 } |
|
123 |
|
124 /* BOOLEAN:POINTER,POINTER,POINTER (/tmp/dbus-binding-tool-c-marshallers.KKEKIT:2) */ |
|
125 extern void dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER_POINTER_POINTER (GClosure *closure, |
|
126 GValue *return_value, |
|
127 guint n_param_values, |
|
128 const GValue *param_values, |
|
129 gpointer invocation_hint, |
|
130 gpointer marshal_data); |
|
131 void |
|
132 dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER_POINTER_POINTER (GClosure *closure, |
|
133 GValue *return_value, |
|
134 guint n_param_values, |
|
135 const GValue *param_values, |
|
136 gpointer invocation_hint, |
|
137 gpointer marshal_data) |
|
138 { |
|
139 typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER_POINTER_POINTER) (gpointer data1, |
|
140 gpointer arg_1, |
|
141 gpointer arg_2, |
|
142 gpointer arg_3, |
|
143 gpointer data2); |
|
144 register GMarshalFunc_BOOLEAN__POINTER_POINTER_POINTER callback; |
|
145 register GCClosure *cc = (GCClosure*) closure; |
|
146 register gpointer data1, data2; |
|
147 gboolean v_return; |
|
148 |
|
149 g_return_if_fail (return_value != NULL); |
|
150 g_return_if_fail (n_param_values == 4); |
|
151 |
|
152 if (G_CCLOSURE_SWAP_DATA (closure)) |
|
153 { |
|
154 data1 = closure->data; |
|
155 data2 = g_value_peek_pointer (param_values + 0); |
|
156 } |
|
157 else |
|
158 { |
|
159 data1 = g_value_peek_pointer (param_values + 0); |
|
160 data2 = closure->data; |
|
161 } |
|
162 callback = (GMarshalFunc_BOOLEAN__POINTER_POINTER_POINTER) (marshal_data ? marshal_data : cc->callback); |
|
163 |
|
164 v_return = callback (data1, |
|
165 g_marshal_value_peek_pointer (param_values + 1), |
|
166 g_marshal_value_peek_pointer (param_values + 2), |
|
167 g_marshal_value_peek_pointer (param_values + 3), |
|
168 data2); |
|
169 |
|
170 g_value_set_boolean (return_value, v_return); |
|
171 } |
|
172 |
|
173 /* BOOLEAN:BOXED,STRING,POINTER (/tmp/dbus-binding-tool-c-marshallers.KKEKIT:3) */ |
|
174 extern void dbus_glib_marshal_gabble_roster_channel_BOOLEAN__BOXED_STRING_POINTER (GClosure *closure, |
|
175 GValue *return_value, |
|
176 guint n_param_values, |
|
177 const GValue *param_values, |
|
178 gpointer invocation_hint, |
|
179 gpointer marshal_data); |
|
180 void |
|
181 dbus_glib_marshal_gabble_roster_channel_BOOLEAN__BOXED_STRING_POINTER (GClosure *closure, |
|
182 GValue *return_value, |
|
183 guint n_param_values, |
|
184 const GValue *param_values, |
|
185 gpointer invocation_hint, |
|
186 gpointer marshal_data) |
|
187 { |
|
188 typedef gboolean (*GMarshalFunc_BOOLEAN__BOXED_STRING_POINTER) (gpointer data1, |
|
189 gpointer arg_1, |
|
190 gpointer arg_2, |
|
191 gpointer arg_3, |
|
192 gpointer data2); |
|
193 register GMarshalFunc_BOOLEAN__BOXED_STRING_POINTER callback; |
|
194 register GCClosure *cc = (GCClosure*) closure; |
|
195 register gpointer data1, data2; |
|
196 gboolean v_return; |
|
197 |
|
198 g_return_if_fail (return_value != NULL); |
|
199 g_return_if_fail (n_param_values == 4); |
|
200 |
|
201 if (G_CCLOSURE_SWAP_DATA (closure)) |
|
202 { |
|
203 data1 = closure->data; |
|
204 data2 = g_value_peek_pointer (param_values + 0); |
|
205 } |
|
206 else |
|
207 { |
|
208 data1 = g_value_peek_pointer (param_values + 0); |
|
209 data2 = closure->data; |
|
210 } |
|
211 callback = (GMarshalFunc_BOOLEAN__BOXED_STRING_POINTER) (marshal_data ? marshal_data : cc->callback); |
|
212 |
|
213 v_return = callback (data1, |
|
214 g_marshal_value_peek_boxed (param_values + 1), |
|
215 g_marshal_value_peek_string (param_values + 2), |
|
216 g_marshal_value_peek_pointer (param_values + 3), |
|
217 data2); |
|
218 |
|
219 g_value_set_boolean (return_value, v_return); |
|
220 } |
|
221 |
|
222 /* BOOLEAN:BOXED,POINTER,POINTER (/tmp/dbus-binding-tool-c-marshallers.KKEKIT:4) */ |
|
223 extern void dbus_glib_marshal_gabble_roster_channel_BOOLEAN__BOXED_POINTER_POINTER (GClosure *closure, |
|
224 GValue *return_value, |
|
225 guint n_param_values, |
|
226 const GValue *param_values, |
|
227 gpointer invocation_hint, |
|
228 gpointer marshal_data); |
|
229 void |
|
230 dbus_glib_marshal_gabble_roster_channel_BOOLEAN__BOXED_POINTER_POINTER (GClosure *closure, |
|
231 GValue *return_value, |
|
232 guint n_param_values, |
|
233 const GValue *param_values, |
|
234 gpointer invocation_hint, |
|
235 gpointer marshal_data) |
|
236 { |
|
237 typedef gboolean (*GMarshalFunc_BOOLEAN__BOXED_POINTER_POINTER) (gpointer data1, |
|
238 gpointer arg_1, |
|
239 gpointer arg_2, |
|
240 gpointer arg_3, |
|
241 gpointer data2); |
|
242 register GMarshalFunc_BOOLEAN__BOXED_POINTER_POINTER callback; |
|
243 register GCClosure *cc = (GCClosure*) closure; |
|
244 register gpointer data1, data2; |
|
245 gboolean v_return; |
|
246 |
|
247 g_return_if_fail (return_value != NULL); |
|
248 g_return_if_fail (n_param_values == 4); |
|
249 |
|
250 if (G_CCLOSURE_SWAP_DATA (closure)) |
|
251 { |
|
252 data1 = closure->data; |
|
253 data2 = g_value_peek_pointer (param_values + 0); |
|
254 } |
|
255 else |
|
256 { |
|
257 data1 = g_value_peek_pointer (param_values + 0); |
|
258 data2 = closure->data; |
|
259 } |
|
260 callback = (GMarshalFunc_BOOLEAN__BOXED_POINTER_POINTER) (marshal_data ? marshal_data : cc->callback); |
|
261 |
|
262 v_return = callback (data1, |
|
263 g_marshal_value_peek_boxed (param_values + 1), |
|
264 g_marshal_value_peek_pointer (param_values + 2), |
|
265 g_marshal_value_peek_pointer (param_values + 3), |
|
266 data2); |
|
267 |
|
268 g_value_set_boolean (return_value, v_return); |
|
269 } |
|
270 |
|
271 /* BOOLEAN:POINTER (/tmp/dbus-binding-tool-c-marshallers.KKEKIT:5) */ |
|
272 extern void dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER (GClosure *closure, |
|
273 GValue *return_value, |
|
274 guint n_param_values, |
|
275 const GValue *param_values, |
|
276 gpointer invocation_hint, |
|
277 gpointer marshal_data); |
|
278 void |
|
279 dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER (GClosure *closure, |
|
280 GValue *return_value, |
|
281 guint n_param_values, |
|
282 const GValue *param_values, |
|
283 gpointer invocation_hint, |
|
284 gpointer marshal_data) |
|
285 { |
|
286 typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER) (gpointer data1, |
|
287 gpointer arg_1, |
|
288 gpointer data2); |
|
289 register GMarshalFunc_BOOLEAN__POINTER callback; |
|
290 register GCClosure *cc = (GCClosure*) closure; |
|
291 register gpointer data1, data2; |
|
292 gboolean v_return; |
|
293 |
|
294 g_return_if_fail (return_value != NULL); |
|
295 g_return_if_fail (n_param_values == 2); |
|
296 |
|
297 if (G_CCLOSURE_SWAP_DATA (closure)) |
|
298 { |
|
299 data1 = closure->data; |
|
300 data2 = g_value_peek_pointer (param_values + 0); |
|
301 } |
|
302 else |
|
303 { |
|
304 data1 = g_value_peek_pointer (param_values + 0); |
|
305 data2 = closure->data; |
|
306 } |
|
307 callback = (GMarshalFunc_BOOLEAN__POINTER) (marshal_data ? marshal_data : cc->callback); |
|
308 |
|
309 v_return = callback (data1, |
|
310 g_marshal_value_peek_pointer (param_values + 1), |
|
311 data2); |
|
312 |
|
313 g_value_set_boolean (return_value, v_return); |
|
314 } |
|
315 |
|
316 /* BOOLEAN:POINTER,POINTER,POINTER,POINTER (/tmp/dbus-binding-tool-c-marshallers.KKEKIT:6) */ |
|
317 extern void dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER_POINTER_POINTER_POINTER (GClosure *closure, |
|
318 GValue *return_value, |
|
319 guint n_param_values, |
|
320 const GValue *param_values, |
|
321 gpointer invocation_hint, |
|
322 gpointer marshal_data); |
|
323 void |
|
324 dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER_POINTER_POINTER_POINTER (GClosure *closure, |
|
325 GValue *return_value, |
|
326 guint n_param_values, |
|
327 const GValue *param_values, |
|
328 gpointer invocation_hint, |
|
329 gpointer marshal_data) |
|
330 { |
|
331 typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER_POINTER_POINTER_POINTER) (gpointer data1, |
|
332 gpointer arg_1, |
|
333 gpointer arg_2, |
|
334 gpointer arg_3, |
|
335 gpointer arg_4, |
|
336 gpointer data2); |
|
337 register GMarshalFunc_BOOLEAN__POINTER_POINTER_POINTER_POINTER callback; |
|
338 register GCClosure *cc = (GCClosure*) closure; |
|
339 register gpointer data1, data2; |
|
340 gboolean v_return; |
|
341 |
|
342 g_return_if_fail (return_value != NULL); |
|
343 g_return_if_fail (n_param_values == 5); |
|
344 |
|
345 if (G_CCLOSURE_SWAP_DATA (closure)) |
|
346 { |
|
347 data1 = closure->data; |
|
348 data2 = g_value_peek_pointer (param_values + 0); |
|
349 } |
|
350 else |
|
351 { |
|
352 data1 = g_value_peek_pointer (param_values + 0); |
|
353 data2 = closure->data; |
|
354 } |
|
355 callback = (GMarshalFunc_BOOLEAN__POINTER_POINTER_POINTER_POINTER) (marshal_data ? marshal_data : cc->callback); |
|
356 |
|
357 v_return = callback (data1, |
|
358 g_marshal_value_peek_pointer (param_values + 1), |
|
359 g_marshal_value_peek_pointer (param_values + 2), |
|
360 g_marshal_value_peek_pointer (param_values + 3), |
|
361 g_marshal_value_peek_pointer (param_values + 4), |
|
362 data2); |
|
363 |
|
364 g_value_set_boolean (return_value, v_return); |
|
365 } |
|
366 |
|
367 G_END_DECLS |
|
368 |
|
369 #endif /* __dbus_glib_marshal_gabble_roster_channel_MARSHAL_H__ */ |
|
370 |
|
371 #include <dbus/dbus-glib.h> |
|
372 static const DBusGMethodInfo dbus_glib_gabble_roster_channel_methods[] = { |
|
373 { (GCallback) gabble_roster_channel_close, dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER, 0 }, |
|
374 { (GCallback) gabble_roster_channel_get_channel_type, dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER_POINTER, 43 }, |
|
375 { (GCallback) gabble_roster_channel_get_handle, dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER_POINTER_POINTER, 108 }, |
|
376 { (GCallback) gabble_roster_channel_get_interfaces, dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER_POINTER, 181 }, |
|
377 { (GCallback) gabble_roster_channel_add_members, dbus_glib_marshal_gabble_roster_channel_BOOLEAN__BOXED_STRING_POINTER, 246 }, |
|
378 { (GCallback) gabble_roster_channel_get_all_members, dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER_POINTER_POINTER_POINTER, 336 }, |
|
379 { (GCallback) gabble_roster_channel_get_group_flags, dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER_POINTER, 445 }, |
|
380 { (GCallback) gabble_roster_channel_get_handle_owners, dbus_glib_marshal_gabble_roster_channel_BOOLEAN__BOXED_POINTER_POINTER, 525 }, |
|
381 { (GCallback) gabble_roster_channel_get_local_pending_members, dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER_POINTER, 621 }, |
|
382 { (GCallback) gabble_roster_channel_get_members, dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER_POINTER, 711 }, |
|
383 { (GCallback) gabble_roster_channel_get_remote_pending_members, dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER_POINTER, 789 }, |
|
384 { (GCallback) gabble_roster_channel_get_self_handle, dbus_glib_marshal_gabble_roster_channel_BOOLEAN__POINTER_POINTER, 880 }, |
|
385 { (GCallback) gabble_roster_channel_remove_members, dbus_glib_marshal_gabble_roster_channel_BOOLEAN__BOXED_STRING_POINTER, 960 }, |
|
386 }; |
|
387 |
|
388 const DBusGObjectInfo dbus_glib_gabble_roster_channel_object_info = { |
|
389 0, |
|
390 dbus_glib_gabble_roster_channel_methods, |
|
391 13, |
|
392 "org.freedesktop.Telepathy.Channel\0Close\0S\0\0org.freedesktop.Telepathy.Channel\0GetChannelType\0S\0arg0\0O\0F\0N\0s\0\0org.freedesktop.Telepathy.Channel\0GetHandle\0S\0arg0\0O\0F\0N\0u\0arg1\0O\0F\0N\0u\0\0org.freedesktop.Telepathy.Channel\0GetInterfaces\0S\0arg0\0O\0F\0N\0as\0\0org.freedesktop.Telepathy.Channel.Interface.Group\0AddMembers\0S\0contacts\0I\0au\0message\0I\0s\0\0org.freedesktop.Telepathy.Channel.Interface.Group\0GetAllMembers\0S\0arg0\0O\0F\0N\0au\0arg1\0O\0F\0N\0au\0arg2\0O\0F\0N\0au\0\0org.freedesktop.Telepathy.Channel.Interface.Group\0GetGroupFlags\0S\0arg0\0O\0F\0N\0u\0\0org.freedesktop.Telepathy.Channel.Interface.Group\0GetHandleOwners\0S\0handles\0I\0au\0arg1\0O\0F\0N\0au\0\0org.freedesktop.Telepathy.Channel.Interface.Group\0GetLocalPendingMembers\0S\0arg0\0O\0F\0N\0au\0\0org.freedesktop.Telepathy.Channel.Interface.Group\0GetMembers\0S\0arg0\0O\0F\0N\0au\0\0org.freedesktop.Telepathy.Channel.Interface.Group\0GetRemotePendingMembers\0S\0arg0\0O\0F\0N\0au\0\0org.freedesktop.Telepathy.Channel.Interface.Group\0GetSelfHandle\0S\0arg0\0O\0F\0N\0u\0\0org.freedesktop.Telepathy.Channel.Interface.Group\0RemoveMembers\0S\0contacts\0I\0au\0message\0I\0s\0\0\0", |
|
393 "org.freedesktop.Telepathy.Channel\0Closed\0org.freedesktop.Telepathy.Channel.Interface.Group\0GroupFlagsChanged\0org.freedesktop.Telepathy.Channel.Interface.Group\0MembersChanged\0\0", |
|
394 "\0" |
|
395 }; |
|
396 |