1 /* |
|
2 * gabble-connection-manager-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 */ |
|
23 |
|
24 /* Generated by dbus-binding-tool; do not edit! */ |
|
25 |
|
26 |
|
27 #ifndef __dbus_glib_marshal_gabble_connection_manager_MARSHAL_H__ |
|
28 #define __dbus_glib_marshal_gabble_connection_manager_MARSHAL_H__ |
|
29 |
|
30 #include <glib-object.h> |
|
31 |
|
32 G_BEGIN_DECLS |
|
33 |
|
34 #ifdef G_ENABLE_DEBUG |
|
35 #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) |
|
36 #define g_marshal_value_peek_char(v) g_value_get_char (v) |
|
37 #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) |
|
38 #define g_marshal_value_peek_int(v) g_value_get_int (v) |
|
39 #define g_marshal_value_peek_uint(v) g_value_get_uint (v) |
|
40 #define g_marshal_value_peek_long(v) g_value_get_long (v) |
|
41 #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) |
|
42 #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) |
|
43 #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) |
|
44 #define g_marshal_value_peek_enum(v) g_value_get_enum (v) |
|
45 #define g_marshal_value_peek_flags(v) g_value_get_flags (v) |
|
46 #define g_marshal_value_peek_float(v) g_value_get_float (v) |
|
47 #define g_marshal_value_peek_double(v) g_value_get_double (v) |
|
48 #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) |
|
49 #define g_marshal_value_peek_param(v) g_value_get_param (v) |
|
50 #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) |
|
51 #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) |
|
52 #define g_marshal_value_peek_object(v) g_value_get_object (v) |
|
53 #else /* !G_ENABLE_DEBUG */ |
|
54 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. |
|
55 * Do not access GValues directly in your code. Instead, use the |
|
56 * g_value_get_*() functions |
|
57 */ |
|
58 #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int |
|
59 #define g_marshal_value_peek_char(v) (v)->data[0].v_int |
|
60 #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint |
|
61 #define g_marshal_value_peek_int(v) (v)->data[0].v_int |
|
62 #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint |
|
63 #define g_marshal_value_peek_long(v) (v)->data[0].v_long |
|
64 #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong |
|
65 #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 |
|
66 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 |
|
67 #define g_marshal_value_peek_enum(v) (v)->data[0].v_long |
|
68 #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong |
|
69 #define g_marshal_value_peek_float(v) (v)->data[0].v_float |
|
70 #define g_marshal_value_peek_double(v) (v)->data[0].v_double |
|
71 #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer |
|
72 #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer |
|
73 #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer |
|
74 #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer |
|
75 #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer |
|
76 #endif /* !G_ENABLE_DEBUG */ |
|
77 |
|
78 |
|
79 /* BOOLEAN:POINTER,POINTER (/tmp/dbus-binding-tool-c-marshallers.H9O3HT:1) */ |
|
80 extern void dbus_glib_marshal_gabble_connection_manager_BOOLEAN__POINTER_POINTER (GClosure *closure, |
|
81 GValue *return_value, |
|
82 guint n_param_values, |
|
83 const GValue *param_values, |
|
84 gpointer invocation_hint, |
|
85 gpointer marshal_data); |
|
86 void |
|
87 dbus_glib_marshal_gabble_connection_manager_BOOLEAN__POINTER_POINTER (GClosure *closure, |
|
88 GValue *return_value, |
|
89 guint n_param_values, |
|
90 const GValue *param_values, |
|
91 gpointer invocation_hint, |
|
92 gpointer marshal_data) |
|
93 { |
|
94 typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER_POINTER) (gpointer data1, |
|
95 gpointer arg_1, |
|
96 gpointer arg_2, |
|
97 gpointer data2); |
|
98 register GMarshalFunc_BOOLEAN__POINTER_POINTER callback; |
|
99 register GCClosure *cc = (GCClosure*) closure; |
|
100 register gpointer data1, data2; |
|
101 gboolean v_return; |
|
102 |
|
103 g_return_if_fail (return_value != NULL); |
|
104 g_return_if_fail (n_param_values == 3); |
|
105 |
|
106 if (G_CCLOSURE_SWAP_DATA (closure)) |
|
107 { |
|
108 data1 = closure->data; |
|
109 data2 = g_value_peek_pointer (param_values + 0); |
|
110 } |
|
111 else |
|
112 { |
|
113 data1 = g_value_peek_pointer (param_values + 0); |
|
114 data2 = closure->data; |
|
115 } |
|
116 callback = (GMarshalFunc_BOOLEAN__POINTER_POINTER) (marshal_data ? marshal_data : cc->callback); |
|
117 |
|
118 v_return = callback (data1, |
|
119 g_marshal_value_peek_pointer (param_values + 1), |
|
120 g_marshal_value_peek_pointer (param_values + 2), |
|
121 data2); |
|
122 |
|
123 g_value_set_boolean (return_value, v_return); |
|
124 } |
|
125 |
|
126 /* BOOLEAN:STRING,POINTER,POINTER (/tmp/dbus-binding-tool-c-marshallers.H9O3HT:2) */ |
|
127 extern void dbus_glib_marshal_gabble_connection_manager_BOOLEAN__STRING_POINTER_POINTER (GClosure *closure, |
|
128 GValue *return_value, |
|
129 guint n_param_values, |
|
130 const GValue *param_values, |
|
131 gpointer invocation_hint, |
|
132 gpointer marshal_data); |
|
133 void |
|
134 dbus_glib_marshal_gabble_connection_manager_BOOLEAN__STRING_POINTER_POINTER (GClosure *closure, |
|
135 GValue *return_value, |
|
136 guint n_param_values, |
|
137 const GValue *param_values, |
|
138 gpointer invocation_hint, |
|
139 gpointer marshal_data) |
|
140 { |
|
141 typedef gboolean (*GMarshalFunc_BOOLEAN__STRING_POINTER_POINTER) (gpointer data1, |
|
142 gpointer arg_1, |
|
143 gpointer arg_2, |
|
144 gpointer arg_3, |
|
145 gpointer data2); |
|
146 register GMarshalFunc_BOOLEAN__STRING_POINTER_POINTER callback; |
|
147 register GCClosure *cc = (GCClosure*) closure; |
|
148 register gpointer data1, data2; |
|
149 gboolean v_return; |
|
150 |
|
151 g_return_if_fail (return_value != NULL); |
|
152 g_return_if_fail (n_param_values == 4); |
|
153 |
|
154 if (G_CCLOSURE_SWAP_DATA (closure)) |
|
155 { |
|
156 data1 = closure->data; |
|
157 data2 = g_value_peek_pointer (param_values + 0); |
|
158 } |
|
159 else |
|
160 { |
|
161 data1 = g_value_peek_pointer (param_values + 0); |
|
162 data2 = closure->data; |
|
163 } |
|
164 callback = (GMarshalFunc_BOOLEAN__STRING_POINTER_POINTER) (marshal_data ? marshal_data : cc->callback); |
|
165 |
|
166 v_return = callback (data1, |
|
167 g_marshal_value_peek_string (param_values + 1), |
|
168 g_marshal_value_peek_pointer (param_values + 2), |
|
169 g_marshal_value_peek_pointer (param_values + 3), |
|
170 data2); |
|
171 |
|
172 g_value_set_boolean (return_value, v_return); |
|
173 } |
|
174 |
|
175 /* BOOLEAN:STRING,BOXED,POINTER,POINTER,POINTER (/tmp/dbus-binding-tool-c-marshallers.H9O3HT:3) */ |
|
176 extern void dbus_glib_marshal_gabble_connection_manager_BOOLEAN__STRING_BOXED_POINTER_POINTER_POINTER (GClosure *closure, |
|
177 GValue *return_value, |
|
178 guint n_param_values, |
|
179 const GValue *param_values, |
|
180 gpointer invocation_hint, |
|
181 gpointer marshal_data); |
|
182 void |
|
183 dbus_glib_marshal_gabble_connection_manager_BOOLEAN__STRING_BOXED_POINTER_POINTER_POINTER (GClosure *closure, |
|
184 GValue *return_value, |
|
185 guint n_param_values, |
|
186 const GValue *param_values, |
|
187 gpointer invocation_hint, |
|
188 gpointer marshal_data) |
|
189 { |
|
190 typedef gboolean (*GMarshalFunc_BOOLEAN__STRING_BOXED_POINTER_POINTER_POINTER) (gpointer data1, |
|
191 gpointer arg_1, |
|
192 gpointer arg_2, |
|
193 gpointer arg_3, |
|
194 gpointer arg_4, |
|
195 gpointer arg_5, |
|
196 gpointer data2); |
|
197 register GMarshalFunc_BOOLEAN__STRING_BOXED_POINTER_POINTER_POINTER callback; |
|
198 register GCClosure *cc = (GCClosure*) closure; |
|
199 register gpointer data1, data2; |
|
200 gboolean v_return; |
|
201 |
|
202 g_return_if_fail (return_value != NULL); |
|
203 g_return_if_fail (n_param_values == 6); |
|
204 |
|
205 if (G_CCLOSURE_SWAP_DATA (closure)) |
|
206 { |
|
207 data1 = closure->data; |
|
208 data2 = g_value_peek_pointer (param_values + 0); |
|
209 } |
|
210 else |
|
211 { |
|
212 data1 = g_value_peek_pointer (param_values + 0); |
|
213 data2 = closure->data; |
|
214 } |
|
215 callback = (GMarshalFunc_BOOLEAN__STRING_BOXED_POINTER_POINTER_POINTER) (marshal_data ? marshal_data : cc->callback); |
|
216 |
|
217 v_return = callback (data1, |
|
218 g_marshal_value_peek_string (param_values + 1), |
|
219 g_marshal_value_peek_boxed (param_values + 2), |
|
220 g_marshal_value_peek_pointer (param_values + 3), |
|
221 g_marshal_value_peek_pointer (param_values + 4), |
|
222 g_marshal_value_peek_pointer (param_values + 5), |
|
223 data2); |
|
224 |
|
225 g_value_set_boolean (return_value, v_return); |
|
226 } |
|
227 |
|
228 G_END_DECLS |
|
229 |
|
230 #endif /* __dbus_glib_marshal_gabble_connection_manager_MARSHAL_H__ */ |
|
231 |
|
232 #include <dbus/dbus-glib.h> |
|
233 static const DBusGMethodInfo dbus_glib_gabble_connection_manager_methods[] = { |
|
234 { (GCallback) gabble_connection_manager_get_parameters, dbus_glib_marshal_gabble_connection_manager_BOOLEAN__STRING_POINTER_POINTER, 0 }, |
|
235 { (GCallback) gabble_connection_manager_list_protocols, dbus_glib_marshal_gabble_connection_manager_BOOLEAN__POINTER_POINTER, 90 }, |
|
236 { (GCallback) gabble_connection_manager_request_connection, dbus_glib_marshal_gabble_connection_manager_BOOLEAN__STRING_BOXED_POINTER_POINTER_POINTER, 165 }, |
|
237 }; |
|
238 |
|
239 const DBusGObjectInfo dbus_glib_gabble_connection_manager_object_info = { |
|
240 0, |
|
241 dbus_glib_gabble_connection_manager_methods, |
|
242 3, |
|
243 "org.freedesktop.Telepathy.ConnectionManager\0GetParameters\0S\0proto\0I\0s\0arg1\0O\0F\0N\0a(susv)\0\0org.freedesktop.Telepathy.ConnectionManager\0ListProtocols\0S\0arg0\0O\0F\0N\0as\0\0org.freedesktop.Telepathy.ConnectionManager\0RequestConnection\0S\0proto\0I\0s\0parameters\0I\0a{sv}\0arg2\0O\0F\0N\0s\0arg3\0O\0F\0N\0o\0\0\0", |
|
244 "org.freedesktop.Telepathy.ConnectionManager\0NewConnection\0\0", |
|
245 "\0" |
|
246 }; |
|
247 |
|