1 /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */
2 #include <glib-object.h>
3
4 #ifdef G_ENABLE_DEBUG
5 #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
6 #define g_marshal_value_peek_char(v) g_value_get_schar (v)
7 #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v)
8 #define g_marshal_value_peek_int(v) g_value_get_int (v)
9 #define g_marshal_value_peek_uint(v) g_value_get_uint (v)
10 #define g_marshal_value_peek_long(v) g_value_get_long (v)
11 #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v)
12 #define g_marshal_value_peek_int64(v) g_value_get_int64 (v)
13 #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v)
14 #define g_marshal_value_peek_enum(v) g_value_get_enum (v)
15 #define g_marshal_value_peek_flags(v) g_value_get_flags (v)
16 #define g_marshal_value_peek_float(v) g_value_get_float (v)
17 #define g_marshal_value_peek_double(v) g_value_get_double (v)
18 #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v)
19 #define g_marshal_value_peek_param(v) g_value_get_param (v)
20 #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v)
21 #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v)
22 #define g_marshal_value_peek_object(v) g_value_get_object (v)
23 #define g_marshal_value_peek_variant(v) g_value_get_variant (v)
24 #else /* !G_ENABLE_DEBUG */
25 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
26 * Do not access GValues directly in your code. Instead, use the
27 * g_value_get_*() functions
28 */
29 #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int
30 #define g_marshal_value_peek_char(v) (v)->data[0].v_int
31 #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint
32 #define g_marshal_value_peek_int(v) (v)->data[0].v_int
33 #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint
34 #define g_marshal_value_peek_long(v) (v)->data[0].v_long
35 #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong
36 #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64
37 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64
38 #define g_marshal_value_peek_enum(v) (v)->data[0].v_long
39 #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong
40 #define g_marshal_value_peek_float(v) (v)->data[0].v_float
41 #define g_marshal_value_peek_double(v) (v)->data[0].v_double
42 #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer
43 #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer
44 #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer
45 #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
46 #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
47 #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer
48 #endif /* !G_ENABLE_DEBUG */
49
50 /* VOID:INT,POINTER (claws-marshal.list:2) */
51 void
claws_marshal_VOID__INT_POINTER(GClosure * closure,GValue * return_value G_GNUC_UNUSED,guint n_param_values,const GValue * param_values,gpointer invocation_hint G_GNUC_UNUSED,gpointer marshal_data)52 claws_marshal_VOID__INT_POINTER (GClosure *closure,
53 GValue *return_value G_GNUC_UNUSED,
54 guint n_param_values,
55 const GValue *param_values,
56 gpointer invocation_hint G_GNUC_UNUSED,
57 gpointer marshal_data)
58 {
59 typedef void (*GMarshalFunc_VOID__INT_POINTER) (gpointer data1,
60 gint arg1,
61 gpointer arg2,
62 gpointer data2);
63 GCClosure *cc = (GCClosure *) closure;
64 gpointer data1, data2;
65 GMarshalFunc_VOID__INT_POINTER callback;
66
67 g_return_if_fail (n_param_values == 3);
68
69 if (G_CCLOSURE_SWAP_DATA (closure))
70 {
71 data1 = closure->data;
72 data2 = g_value_peek_pointer (param_values + 0);
73 }
74 else
75 {
76 data1 = g_value_peek_pointer (param_values + 0);
77 data2 = closure->data;
78 }
79 callback = (GMarshalFunc_VOID__INT_POINTER) (marshal_data ? marshal_data : cc->callback);
80
81 callback (data1,
82 g_marshal_value_peek_int (param_values + 1),
83 g_marshal_value_peek_pointer (param_values + 2),
84 data2);
85 }
86
87 /* VOID:OBJECT,OBJECT (claws-marshal.list:3) */
88 void
claws_marshal_VOID__OBJECT_OBJECT(GClosure * closure,GValue * return_value G_GNUC_UNUSED,guint n_param_values,const GValue * param_values,gpointer invocation_hint G_GNUC_UNUSED,gpointer marshal_data)89 claws_marshal_VOID__OBJECT_OBJECT (GClosure *closure,
90 GValue *return_value G_GNUC_UNUSED,
91 guint n_param_values,
92 const GValue *param_values,
93 gpointer invocation_hint G_GNUC_UNUSED,
94 gpointer marshal_data)
95 {
96 typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1,
97 gpointer arg1,
98 gpointer arg2,
99 gpointer data2);
100 GCClosure *cc = (GCClosure *) closure;
101 gpointer data1, data2;
102 GMarshalFunc_VOID__OBJECT_OBJECT callback;
103
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_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
117
118 callback (data1,
119 g_marshal_value_peek_object (param_values + 1),
120 g_marshal_value_peek_object (param_values + 2),
121 data2);
122 }
123
124 /* VOID:INT,INT,BOXED (claws-marshal.list:4) */
125 void
claws_marshal_VOID__INT_INT_BOXED(GClosure * closure,GValue * return_value G_GNUC_UNUSED,guint n_param_values,const GValue * param_values,gpointer invocation_hint G_GNUC_UNUSED,gpointer marshal_data)126 claws_marshal_VOID__INT_INT_BOXED (GClosure *closure,
127 GValue *return_value G_GNUC_UNUSED,
128 guint n_param_values,
129 const GValue *param_values,
130 gpointer invocation_hint G_GNUC_UNUSED,
131 gpointer marshal_data)
132 {
133 typedef void (*GMarshalFunc_VOID__INT_INT_BOXED) (gpointer data1,
134 gint arg1,
135 gint arg2,
136 gpointer arg3,
137 gpointer data2);
138 GCClosure *cc = (GCClosure *) closure;
139 gpointer data1, data2;
140 GMarshalFunc_VOID__INT_INT_BOXED callback;
141
142 g_return_if_fail (n_param_values == 4);
143
144 if (G_CCLOSURE_SWAP_DATA (closure))
145 {
146 data1 = closure->data;
147 data2 = g_value_peek_pointer (param_values + 0);
148 }
149 else
150 {
151 data1 = g_value_peek_pointer (param_values + 0);
152 data2 = closure->data;
153 }
154 callback = (GMarshalFunc_VOID__INT_INT_BOXED) (marshal_data ? marshal_data : cc->callback);
155
156 callback (data1,
157 g_marshal_value_peek_int (param_values + 1),
158 g_marshal_value_peek_int (param_values + 2),
159 g_marshal_value_peek_boxed (param_values + 3),
160 data2);
161 }
162
163 /* VOID:INT,INT (claws-marshal.list:5) */
164 void
claws_marshal_VOID__INT_INT(GClosure * closure,GValue * return_value G_GNUC_UNUSED,guint n_param_values,const GValue * param_values,gpointer invocation_hint G_GNUC_UNUSED,gpointer marshal_data)165 claws_marshal_VOID__INT_INT (GClosure *closure,
166 GValue *return_value G_GNUC_UNUSED,
167 guint n_param_values,
168 const GValue *param_values,
169 gpointer invocation_hint G_GNUC_UNUSED,
170 gpointer marshal_data)
171 {
172 typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer data1,
173 gint arg1,
174 gint arg2,
175 gpointer data2);
176 GCClosure *cc = (GCClosure *) closure;
177 gpointer data1, data2;
178 GMarshalFunc_VOID__INT_INT callback;
179
180 g_return_if_fail (n_param_values == 3);
181
182 if (G_CCLOSURE_SWAP_DATA (closure))
183 {
184 data1 = closure->data;
185 data2 = g_value_peek_pointer (param_values + 0);
186 }
187 else
188 {
189 data1 = g_value_peek_pointer (param_values + 0);
190 data2 = closure->data;
191 }
192 callback = (GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback);
193
194 callback (data1,
195 g_marshal_value_peek_int (param_values + 1),
196 g_marshal_value_peek_int (param_values + 2),
197 data2);
198 }
199
200 /* VOID:VOID,VOID (claws-marshal.list:8) */
201 void
claws_marshal_VOID__VOID_VOID(GClosure * closure,GValue * return_value G_GNUC_UNUSED,guint n_param_values,const GValue * param_values,gpointer invocation_hint G_GNUC_UNUSED,gpointer marshal_data)202 claws_marshal_VOID__VOID_VOID (GClosure *closure,
203 GValue *return_value G_GNUC_UNUSED,
204 guint n_param_values,
205 const GValue *param_values,
206 gpointer invocation_hint G_GNUC_UNUSED,
207 gpointer marshal_data)
208 {
209 typedef void (*GMarshalFunc_VOID__VOID_VOID) (gpointer data1,
210 gpointer data2);
211 GCClosure *cc = (GCClosure *) closure;
212 gpointer data1, data2;
213 GMarshalFunc_VOID__VOID_VOID callback;
214
215 g_return_if_fail (n_param_values == 1);
216
217 if (G_CCLOSURE_SWAP_DATA (closure))
218 {
219 data1 = closure->data;
220 data2 = g_value_peek_pointer (param_values + 0);
221 }
222 else
223 {
224 data1 = g_value_peek_pointer (param_values + 0);
225 data2 = closure->data;
226 }
227 callback = (GMarshalFunc_VOID__VOID_VOID) (marshal_data ? marshal_data : cc->callback);
228
229 callback (data1,
230 data2);
231 }
232
233 /* VOID:ENUM,FLOAT,BOOLEAN (claws-marshal.list:9) */
234 void
claws_marshal_VOID__ENUM_FLOAT_BOOLEAN(GClosure * closure,GValue * return_value G_GNUC_UNUSED,guint n_param_values,const GValue * param_values,gpointer invocation_hint G_GNUC_UNUSED,gpointer marshal_data)235 claws_marshal_VOID__ENUM_FLOAT_BOOLEAN (GClosure *closure,
236 GValue *return_value G_GNUC_UNUSED,
237 guint n_param_values,
238 const GValue *param_values,
239 gpointer invocation_hint G_GNUC_UNUSED,
240 gpointer marshal_data)
241 {
242 typedef void (*GMarshalFunc_VOID__ENUM_FLOAT_BOOLEAN) (gpointer data1,
243 gint arg1,
244 gfloat arg2,
245 gboolean arg3,
246 gpointer data2);
247 GCClosure *cc = (GCClosure *) closure;
248 gpointer data1, data2;
249 GMarshalFunc_VOID__ENUM_FLOAT_BOOLEAN callback;
250
251 g_return_if_fail (n_param_values == 4);
252
253 if (G_CCLOSURE_SWAP_DATA (closure))
254 {
255 data1 = closure->data;
256 data2 = g_value_peek_pointer (param_values + 0);
257 }
258 else
259 {
260 data1 = g_value_peek_pointer (param_values + 0);
261 data2 = closure->data;
262 }
263 callback = (GMarshalFunc_VOID__ENUM_FLOAT_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
264
265 callback (data1,
266 g_marshal_value_peek_enum (param_values + 1),
267 g_marshal_value_peek_float (param_values + 2),
268 g_marshal_value_peek_boolean (param_values + 3),
269 data2);
270 }
271
272 /* VOID:ENUM,FLOAT (claws-marshal.list:10) */
273 void
claws_marshal_VOID__ENUM_FLOAT(GClosure * closure,GValue * return_value G_GNUC_UNUSED,guint n_param_values,const GValue * param_values,gpointer invocation_hint G_GNUC_UNUSED,gpointer marshal_data)274 claws_marshal_VOID__ENUM_FLOAT (GClosure *closure,
275 GValue *return_value G_GNUC_UNUSED,
276 guint n_param_values,
277 const GValue *param_values,
278 gpointer invocation_hint G_GNUC_UNUSED,
279 gpointer marshal_data)
280 {
281 typedef void (*GMarshalFunc_VOID__ENUM_FLOAT) (gpointer data1,
282 gint arg1,
283 gfloat arg2,
284 gpointer data2);
285 GCClosure *cc = (GCClosure *) closure;
286 gpointer data1, data2;
287 GMarshalFunc_VOID__ENUM_FLOAT callback;
288
289 g_return_if_fail (n_param_values == 3);
290
291 if (G_CCLOSURE_SWAP_DATA (closure))
292 {
293 data1 = closure->data;
294 data2 = g_value_peek_pointer (param_values + 0);
295 }
296 else
297 {
298 data1 = g_value_peek_pointer (param_values + 0);
299 data2 = closure->data;
300 }
301 callback = (GMarshalFunc_VOID__ENUM_FLOAT) (marshal_data ? marshal_data : cc->callback);
302
303 callback (data1,
304 g_marshal_value_peek_enum (param_values + 1),
305 g_marshal_value_peek_float (param_values + 2),
306 data2);
307 }
308
309 /* VOID:POINTER,INT (claws-marshal.list:11) */
310 void
claws_marshal_VOID__POINTER_INT(GClosure * closure,GValue * return_value G_GNUC_UNUSED,guint n_param_values,const GValue * param_values,gpointer invocation_hint G_GNUC_UNUSED,gpointer marshal_data)311 claws_marshal_VOID__POINTER_INT (GClosure *closure,
312 GValue *return_value G_GNUC_UNUSED,
313 guint n_param_values,
314 const GValue *param_values,
315 gpointer invocation_hint G_GNUC_UNUSED,
316 gpointer marshal_data)
317 {
318 typedef void (*GMarshalFunc_VOID__POINTER_INT) (gpointer data1,
319 gpointer arg1,
320 gint arg2,
321 gpointer data2);
322 GCClosure *cc = (GCClosure *) closure;
323 gpointer data1, data2;
324 GMarshalFunc_VOID__POINTER_INT callback;
325
326 g_return_if_fail (n_param_values == 3);
327
328 if (G_CCLOSURE_SWAP_DATA (closure))
329 {
330 data1 = closure->data;
331 data2 = g_value_peek_pointer (param_values + 0);
332 }
333 else
334 {
335 data1 = g_value_peek_pointer (param_values + 0);
336 data2 = closure->data;
337 }
338 callback = (GMarshalFunc_VOID__POINTER_INT) (marshal_data ? marshal_data : cc->callback);
339
340 callback (data1,
341 g_marshal_value_peek_pointer (param_values + 1),
342 g_marshal_value_peek_int (param_values + 2),
343 data2);
344 }
345
346 /* VOID:POINTER,POINTER,POINTER (claws-marshal.list:12) */
347 void
claws_marshal_VOID__POINTER_POINTER_POINTER(GClosure * closure,GValue * return_value G_GNUC_UNUSED,guint n_param_values,const GValue * param_values,gpointer invocation_hint G_GNUC_UNUSED,gpointer marshal_data)348 claws_marshal_VOID__POINTER_POINTER_POINTER (GClosure *closure,
349 GValue *return_value G_GNUC_UNUSED,
350 guint n_param_values,
351 const GValue *param_values,
352 gpointer invocation_hint G_GNUC_UNUSED,
353 gpointer marshal_data)
354 {
355 typedef void (*GMarshalFunc_VOID__POINTER_POINTER_POINTER) (gpointer data1,
356 gpointer arg1,
357 gpointer arg2,
358 gpointer arg3,
359 gpointer data2);
360 GCClosure *cc = (GCClosure *) closure;
361 gpointer data1, data2;
362 GMarshalFunc_VOID__POINTER_POINTER_POINTER callback;
363
364 g_return_if_fail (n_param_values == 4);
365
366 if (G_CCLOSURE_SWAP_DATA (closure))
367 {
368 data1 = closure->data;
369 data2 = g_value_peek_pointer (param_values + 0);
370 }
371 else
372 {
373 data1 = g_value_peek_pointer (param_values + 0);
374 data2 = closure->data;
375 }
376 callback = (GMarshalFunc_VOID__POINTER_POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
377
378 callback (data1,
379 g_marshal_value_peek_pointer (param_values + 1),
380 g_marshal_value_peek_pointer (param_values + 2),
381 g_marshal_value_peek_pointer (param_values + 3),
382 data2);
383 }
384
385