1 /* |
|
2 * gabble-roomlist-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_roomlist_channel_MARSHAL_H__ |
|
26 #define __dbus_glib_marshal_gabble_roomlist_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.Q5SKIT:1) */ |
|
78 extern void dbus_glib_marshal_gabble_roomlist_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_roomlist_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.Q5SKIT:2) */ |
|
125 extern void dbus_glib_marshal_gabble_roomlist_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_roomlist_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:POINTER (/tmp/dbus-binding-tool-c-marshallers.Q5SKIT:3) */ |
|
174 extern void dbus_glib_marshal_gabble_roomlist_channel_BOOLEAN__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_roomlist_channel_BOOLEAN__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__POINTER) (gpointer data1, |
|
189 gpointer arg_1, |
|
190 gpointer data2); |
|
191 register GMarshalFunc_BOOLEAN__POINTER callback; |
|
192 register GCClosure *cc = (GCClosure*) closure; |
|
193 register gpointer data1, data2; |
|
194 gboolean v_return; |
|
195 |
|
196 g_return_if_fail (return_value != NULL); |
|
197 g_return_if_fail (n_param_values == 2); |
|
198 |
|
199 if (G_CCLOSURE_SWAP_DATA (closure)) |
|
200 { |
|
201 data1 = closure->data; |
|
202 data2 = g_value_peek_pointer (param_values + 0); |
|
203 } |
|
204 else |
|
205 { |
|
206 data1 = g_value_peek_pointer (param_values + 0); |
|
207 data2 = closure->data; |
|
208 } |
|
209 callback = (GMarshalFunc_BOOLEAN__POINTER) (marshal_data ? marshal_data : cc->callback); |
|
210 |
|
211 v_return = callback (data1, |
|
212 g_marshal_value_peek_pointer (param_values + 1), |
|
213 data2); |
|
214 |
|
215 g_value_set_boolean (return_value, v_return); |
|
216 } |
|
217 |
|
218 G_END_DECLS |
|
219 |
|
220 #endif /* __dbus_glib_marshal_gabble_roomlist_channel_MARSHAL_H__ */ |
|
221 |
|
222 #include <dbus/dbus-glib.h> |
|
223 static const DBusGMethodInfo dbus_glib_gabble_roomlist_channel_methods[] = { |
|
224 { (GCallback) gabble_roomlist_channel_close, dbus_glib_marshal_gabble_roomlist_channel_BOOLEAN__POINTER, 0 }, |
|
225 { (GCallback) gabble_roomlist_channel_get_channel_type, dbus_glib_marshal_gabble_roomlist_channel_BOOLEAN__POINTER_POINTER, 43 }, |
|
226 { (GCallback) gabble_roomlist_channel_get_handle, dbus_glib_marshal_gabble_roomlist_channel_BOOLEAN__POINTER_POINTER_POINTER, 108 }, |
|
227 { (GCallback) gabble_roomlist_channel_get_interfaces, dbus_glib_marshal_gabble_roomlist_channel_BOOLEAN__POINTER_POINTER, 181 }, |
|
228 { (GCallback) gabble_roomlist_channel_get_listing_rooms, dbus_glib_marshal_gabble_roomlist_channel_BOOLEAN__POINTER_POINTER, 246 }, |
|
229 { (GCallback) gabble_roomlist_channel_list_rooms, dbus_glib_marshal_gabble_roomlist_channel_BOOLEAN__POINTER, 326 }, |
|
230 }; |
|
231 |
|
232 const DBusGObjectInfo dbus_glib_gabble_roomlist_channel_object_info = { |
|
233 0, |
|
234 dbus_glib_gabble_roomlist_channel_methods, |
|
235 6, |
|
236 "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.Type.RoomList\0GetListingRooms\0S\0arg0\0O\0F\0N\0b\0\0org.freedesktop.Telepathy.Channel.Type.RoomList\0ListRooms\0S\0\0\0", |
|
237 "org.freedesktop.Telepathy.Channel\0Closed\0org.freedesktop.Telepathy.Channel.Type.RoomList\0GotRooms\0org.freedesktop.Telepathy.Channel.Type.RoomList\0ListingRooms\0\0", |
|
238 "\0" |
|
239 }; |
|
240 |
|