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:OBJECT,OBJECT (gda-marshal.list:28) */
51 void
_gda_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)52 _gda_marshal_VOID__OBJECT_OBJECT (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__OBJECT_OBJECT) (gpointer data1,
60 gpointer arg1,
61 gpointer arg2,
62 gpointer data2);
63 GCClosure *cc = (GCClosure *) closure;
64 gpointer data1, data2;
65 GMarshalFunc_VOID__OBJECT_OBJECT 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__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
80
81 callback (data1,
82 g_marshal_value_peek_object (param_values + 1),
83 g_marshal_value_peek_object (param_values + 2),
84 data2);
85 }
86
87 /* VOID:OBJECT,ENUM,OBJECT (gda-marshal.list:29) */
88 void
_gda_marshal_VOID__OBJECT_ENUM_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 _gda_marshal_VOID__OBJECT_ENUM_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_ENUM_OBJECT) (gpointer data1,
97 gpointer arg1,
98 gint arg2,
99 gpointer arg3,
100 gpointer data2);
101 GCClosure *cc = (GCClosure *) closure;
102 gpointer data1, data2;
103 GMarshalFunc_VOID__OBJECT_ENUM_OBJECT callback;
104
105 g_return_if_fail (n_param_values == 4);
106
107 if (G_CCLOSURE_SWAP_DATA (closure))
108 {
109 data1 = closure->data;
110 data2 = g_value_peek_pointer (param_values + 0);
111 }
112 else
113 {
114 data1 = g_value_peek_pointer (param_values + 0);
115 data2 = closure->data;
116 }
117 callback = (GMarshalFunc_VOID__OBJECT_ENUM_OBJECT) (marshal_data ? marshal_data : cc->callback);
118
119 callback (data1,
120 g_marshal_value_peek_object (param_values + 1),
121 g_marshal_value_peek_enum (param_values + 2),
122 g_marshal_value_peek_object (param_values + 3),
123 data2);
124 }
125
126 /* VOID:OBJECT,UINT (gda-marshal.list:30) */
127 void
_gda_marshal_VOID__OBJECT_UINT(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)128 _gda_marshal_VOID__OBJECT_UINT (GClosure *closure,
129 GValue *return_value G_GNUC_UNUSED,
130 guint n_param_values,
131 const GValue *param_values,
132 gpointer invocation_hint G_GNUC_UNUSED,
133 gpointer marshal_data)
134 {
135 typedef void (*GMarshalFunc_VOID__OBJECT_UINT) (gpointer data1,
136 gpointer arg1,
137 guint arg2,
138 gpointer data2);
139 GCClosure *cc = (GCClosure *) closure;
140 gpointer data1, data2;
141 GMarshalFunc_VOID__OBJECT_UINT callback;
142
143 g_return_if_fail (n_param_values == 3);
144
145 if (G_CCLOSURE_SWAP_DATA (closure))
146 {
147 data1 = closure->data;
148 data2 = g_value_peek_pointer (param_values + 0);
149 }
150 else
151 {
152 data1 = g_value_peek_pointer (param_values + 0);
153 data2 = closure->data;
154 }
155 callback = (GMarshalFunc_VOID__OBJECT_UINT) (marshal_data ? marshal_data : cc->callback);
156
157 callback (data1,
158 g_marshal_value_peek_object (param_values + 1),
159 g_marshal_value_peek_uint (param_values + 2),
160 data2);
161 }
162
163 /* VOID:OBJECT,UINT,UINT (gda-marshal.list:31) */
164 void
_gda_marshal_VOID__OBJECT_UINT_UINT(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 _gda_marshal_VOID__OBJECT_UINT_UINT (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__OBJECT_UINT_UINT) (gpointer data1,
173 gpointer arg1,
174 guint arg2,
175 guint arg3,
176 gpointer data2);
177 GCClosure *cc = (GCClosure *) closure;
178 gpointer data1, data2;
179 GMarshalFunc_VOID__OBJECT_UINT_UINT callback;
180
181 g_return_if_fail (n_param_values == 4);
182
183 if (G_CCLOSURE_SWAP_DATA (closure))
184 {
185 data1 = closure->data;
186 data2 = g_value_peek_pointer (param_values + 0);
187 }
188 else
189 {
190 data1 = g_value_peek_pointer (param_values + 0);
191 data2 = closure->data;
192 }
193 callback = (GMarshalFunc_VOID__OBJECT_UINT_UINT) (marshal_data ? marshal_data : cc->callback);
194
195 callback (data1,
196 g_marshal_value_peek_object (param_values + 1),
197 g_marshal_value_peek_uint (param_values + 2),
198 g_marshal_value_peek_uint (param_values + 3),
199 data2);
200 }
201
202 /* VOID:OBJECT,BOOLEAN (gda-marshal.list:32) */
203 void
_gda_marshal_VOID__OBJECT_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)204 _gda_marshal_VOID__OBJECT_BOOLEAN (GClosure *closure,
205 GValue *return_value G_GNUC_UNUSED,
206 guint n_param_values,
207 const GValue *param_values,
208 gpointer invocation_hint G_GNUC_UNUSED,
209 gpointer marshal_data)
210 {
211 typedef void (*GMarshalFunc_VOID__OBJECT_BOOLEAN) (gpointer data1,
212 gpointer arg1,
213 gboolean arg2,
214 gpointer data2);
215 GCClosure *cc = (GCClosure *) closure;
216 gpointer data1, data2;
217 GMarshalFunc_VOID__OBJECT_BOOLEAN callback;
218
219 g_return_if_fail (n_param_values == 3);
220
221 if (G_CCLOSURE_SWAP_DATA (closure))
222 {
223 data1 = closure->data;
224 data2 = g_value_peek_pointer (param_values + 0);
225 }
226 else
227 {
228 data1 = g_value_peek_pointer (param_values + 0);
229 data2 = closure->data;
230 }
231 callback = (GMarshalFunc_VOID__OBJECT_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
232
233 callback (data1,
234 g_marshal_value_peek_object (param_values + 1),
235 g_marshal_value_peek_boolean (param_values + 2),
236 data2);
237 }
238
239 /* VOID:STRING,UINT,UINT (gda-marshal.list:33) */
240 void
_gda_marshal_VOID__STRING_UINT_UINT(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)241 _gda_marshal_VOID__STRING_UINT_UINT (GClosure *closure,
242 GValue *return_value G_GNUC_UNUSED,
243 guint n_param_values,
244 const GValue *param_values,
245 gpointer invocation_hint G_GNUC_UNUSED,
246 gpointer marshal_data)
247 {
248 typedef void (*GMarshalFunc_VOID__STRING_UINT_UINT) (gpointer data1,
249 gpointer arg1,
250 guint arg2,
251 guint arg3,
252 gpointer data2);
253 GCClosure *cc = (GCClosure *) closure;
254 gpointer data1, data2;
255 GMarshalFunc_VOID__STRING_UINT_UINT callback;
256
257 g_return_if_fail (n_param_values == 4);
258
259 if (G_CCLOSURE_SWAP_DATA (closure))
260 {
261 data1 = closure->data;
262 data2 = g_value_peek_pointer (param_values + 0);
263 }
264 else
265 {
266 data1 = g_value_peek_pointer (param_values + 0);
267 data2 = closure->data;
268 }
269 callback = (GMarshalFunc_VOID__STRING_UINT_UINT) (marshal_data ? marshal_data : cc->callback);
270
271 callback (data1,
272 g_marshal_value_peek_string (param_values + 1),
273 g_marshal_value_peek_uint (param_values + 2),
274 g_marshal_value_peek_uint (param_values + 3),
275 data2);
276 }
277
278 /* VOID:ENUM,OBJECT (gda-marshal.list:34) */
279 void
_gda_marshal_VOID__ENUM_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)280 _gda_marshal_VOID__ENUM_OBJECT (GClosure *closure,
281 GValue *return_value G_GNUC_UNUSED,
282 guint n_param_values,
283 const GValue *param_values,
284 gpointer invocation_hint G_GNUC_UNUSED,
285 gpointer marshal_data)
286 {
287 typedef void (*GMarshalFunc_VOID__ENUM_OBJECT) (gpointer data1,
288 gint arg1,
289 gpointer arg2,
290 gpointer data2);
291 GCClosure *cc = (GCClosure *) closure;
292 gpointer data1, data2;
293 GMarshalFunc_VOID__ENUM_OBJECT callback;
294
295 g_return_if_fail (n_param_values == 3);
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_VOID__ENUM_OBJECT) (marshal_data ? marshal_data : cc->callback);
308
309 callback (data1,
310 g_marshal_value_peek_enum (param_values + 1),
311 g_marshal_value_peek_object (param_values + 2),
312 data2);
313 }
314
315 /* VOID:INT,INT (gda-marshal.list:36) */
316 void
_gda_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)317 _gda_marshal_VOID__INT_INT (GClosure *closure,
318 GValue *return_value G_GNUC_UNUSED,
319 guint n_param_values,
320 const GValue *param_values,
321 gpointer invocation_hint G_GNUC_UNUSED,
322 gpointer marshal_data)
323 {
324 typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer data1,
325 gint arg1,
326 gint arg2,
327 gpointer data2);
328 GCClosure *cc = (GCClosure *) closure;
329 gpointer data1, data2;
330 GMarshalFunc_VOID__INT_INT callback;
331
332 g_return_if_fail (n_param_values == 3);
333
334 if (G_CCLOSURE_SWAP_DATA (closure))
335 {
336 data1 = closure->data;
337 data2 = g_value_peek_pointer (param_values + 0);
338 }
339 else
340 {
341 data1 = g_value_peek_pointer (param_values + 0);
342 data2 = closure->data;
343 }
344 callback = (GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback);
345
346 callback (data1,
347 g_marshal_value_peek_int (param_values + 1),
348 g_marshal_value_peek_int (param_values + 2),
349 data2);
350 }
351
352 /* VOID:INT,BOXED,BOXED (gda-marshal.list:37) */
353 void
_gda_marshal_VOID__INT_BOXED_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)354 _gda_marshal_VOID__INT_BOXED_BOXED (GClosure *closure,
355 GValue *return_value G_GNUC_UNUSED,
356 guint n_param_values,
357 const GValue *param_values,
358 gpointer invocation_hint G_GNUC_UNUSED,
359 gpointer marshal_data)
360 {
361 typedef void (*GMarshalFunc_VOID__INT_BOXED_BOXED) (gpointer data1,
362 gint arg1,
363 gpointer arg2,
364 gpointer arg3,
365 gpointer data2);
366 GCClosure *cc = (GCClosure *) closure;
367 gpointer data1, data2;
368 GMarshalFunc_VOID__INT_BOXED_BOXED callback;
369
370 g_return_if_fail (n_param_values == 4);
371
372 if (G_CCLOSURE_SWAP_DATA (closure))
373 {
374 data1 = closure->data;
375 data2 = g_value_peek_pointer (param_values + 0);
376 }
377 else
378 {
379 data1 = g_value_peek_pointer (param_values + 0);
380 data2 = closure->data;
381 }
382 callback = (GMarshalFunc_VOID__INT_BOXED_BOXED) (marshal_data ? marshal_data : cc->callback);
383
384 callback (data1,
385 g_marshal_value_peek_int (param_values + 1),
386 g_marshal_value_peek_boxed (param_values + 2),
387 g_marshal_value_peek_boxed (param_values + 3),
388 data2);
389 }
390
391 /* VOID:INT,BOOLEAN (gda-marshal.list:38) */
392 void
_gda_marshal_VOID__INT_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)393 _gda_marshal_VOID__INT_BOOLEAN (GClosure *closure,
394 GValue *return_value G_GNUC_UNUSED,
395 guint n_param_values,
396 const GValue *param_values,
397 gpointer invocation_hint G_GNUC_UNUSED,
398 gpointer marshal_data)
399 {
400 typedef void (*GMarshalFunc_VOID__INT_BOOLEAN) (gpointer data1,
401 gint arg1,
402 gboolean arg2,
403 gpointer data2);
404 GCClosure *cc = (GCClosure *) closure;
405 gpointer data1, data2;
406 GMarshalFunc_VOID__INT_BOOLEAN callback;
407
408 g_return_if_fail (n_param_values == 3);
409
410 if (G_CCLOSURE_SWAP_DATA (closure))
411 {
412 data1 = closure->data;
413 data2 = g_value_peek_pointer (param_values + 0);
414 }
415 else
416 {
417 data1 = g_value_peek_pointer (param_values + 0);
418 data2 = closure->data;
419 }
420 callback = (GMarshalFunc_VOID__INT_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
421
422 callback (data1,
423 g_marshal_value_peek_int (param_values + 1),
424 g_marshal_value_peek_boolean (param_values + 2),
425 data2);
426 }
427
428 /* VOID:STRING,INT (gda-marshal.list:39) */
429 void
_gda_marshal_VOID__STRING_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)430 _gda_marshal_VOID__STRING_INT (GClosure *closure,
431 GValue *return_value G_GNUC_UNUSED,
432 guint n_param_values,
433 const GValue *param_values,
434 gpointer invocation_hint G_GNUC_UNUSED,
435 gpointer marshal_data)
436 {
437 typedef void (*GMarshalFunc_VOID__STRING_INT) (gpointer data1,
438 gpointer arg1,
439 gint arg2,
440 gpointer data2);
441 GCClosure *cc = (GCClosure *) closure;
442 gpointer data1, data2;
443 GMarshalFunc_VOID__STRING_INT callback;
444
445 g_return_if_fail (n_param_values == 3);
446
447 if (G_CCLOSURE_SWAP_DATA (closure))
448 {
449 data1 = closure->data;
450 data2 = g_value_peek_pointer (param_values + 0);
451 }
452 else
453 {
454 data1 = g_value_peek_pointer (param_values + 0);
455 data2 = closure->data;
456 }
457 callback = (GMarshalFunc_VOID__STRING_INT) (marshal_data ? marshal_data : cc->callback);
458
459 callback (data1,
460 g_marshal_value_peek_string (param_values + 1),
461 g_marshal_value_peek_int (param_values + 2),
462 data2);
463 }
464
465 /* POINTER:POINTER (gda-marshal.list:40) */
466 void
_gda_marshal_POINTER__POINTER(GClosure * closure,GValue * return_value,guint n_param_values,const GValue * param_values,gpointer invocation_hint G_GNUC_UNUSED,gpointer marshal_data)467 _gda_marshal_POINTER__POINTER (GClosure *closure,
468 GValue *return_value,
469 guint n_param_values,
470 const GValue *param_values,
471 gpointer invocation_hint G_GNUC_UNUSED,
472 gpointer marshal_data)
473 {
474 typedef gpointer (*GMarshalFunc_POINTER__POINTER) (gpointer data1,
475 gpointer arg1,
476 gpointer data2);
477 GCClosure *cc = (GCClosure *) closure;
478 gpointer data1, data2;
479 GMarshalFunc_POINTER__POINTER callback;
480 gpointer v_return;
481
482 g_return_if_fail (return_value != NULL);
483 g_return_if_fail (n_param_values == 2);
484
485 if (G_CCLOSURE_SWAP_DATA (closure))
486 {
487 data1 = closure->data;
488 data2 = g_value_peek_pointer (param_values + 0);
489 }
490 else
491 {
492 data1 = g_value_peek_pointer (param_values + 0);
493 data2 = closure->data;
494 }
495 callback = (GMarshalFunc_POINTER__POINTER) (marshal_data ? marshal_data : cc->callback);
496
497 v_return = callback (data1,
498 g_marshal_value_peek_pointer (param_values + 1),
499 data2);
500
501 g_value_set_pointer (return_value, v_return);
502 }
503
504 /* BOOLEAN:POINTER (gda-marshal.list:41) */
505 void
_gda_marshal_BOOLEAN__POINTER(GClosure * closure,GValue * return_value,guint n_param_values,const GValue * param_values,gpointer invocation_hint G_GNUC_UNUSED,gpointer marshal_data)506 _gda_marshal_BOOLEAN__POINTER (GClosure *closure,
507 GValue *return_value,
508 guint n_param_values,
509 const GValue *param_values,
510 gpointer invocation_hint G_GNUC_UNUSED,
511 gpointer marshal_data)
512 {
513 typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER) (gpointer data1,
514 gpointer arg1,
515 gpointer data2);
516 GCClosure *cc = (GCClosure *) closure;
517 gpointer data1, data2;
518 GMarshalFunc_BOOLEAN__POINTER callback;
519 gboolean v_return;
520
521 g_return_if_fail (return_value != NULL);
522 g_return_if_fail (n_param_values == 2);
523
524 if (G_CCLOSURE_SWAP_DATA (closure))
525 {
526 data1 = closure->data;
527 data2 = g_value_peek_pointer (param_values + 0);
528 }
529 else
530 {
531 data1 = g_value_peek_pointer (param_values + 0);
532 data2 = closure->data;
533 }
534 callback = (GMarshalFunc_BOOLEAN__POINTER) (marshal_data ? marshal_data : cc->callback);
535
536 v_return = callback (data1,
537 g_marshal_value_peek_pointer (param_values + 1),
538 data2);
539
540 g_value_set_boolean (return_value, v_return);
541 }
542
543