1
//#include <glib-object.h>
2
#include "eel-marshal.h"
6
#define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
7
#define g_marshal_value_peek_char(v) g_value_get_char (v)
8
#define g_marshal_value_peek_uchar(v) g_value_get_uchar (v)
9
#define g_marshal_value_peek_int(v) g_value_get_int (v)
10
#define g_marshal_value_peek_uint(v) g_value_get_uint (v)
11
#define g_marshal_value_peek_long(v) g_value_get_long (v)
12
#define g_marshal_value_peek_ulong(v) g_value_get_ulong (v)
13
#define g_marshal_value_peek_int64(v) g_value_get_int64 (v)
14
#define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v)
15
#define g_marshal_value_peek_enum(v) g_value_get_enum (v)
16
#define g_marshal_value_peek_flags(v) g_value_get_flags (v)
17
#define g_marshal_value_peek_float(v) g_value_get_float (v)
18
#define g_marshal_value_peek_double(v) g_value_get_double (v)
19
#define g_marshal_value_peek_string(v) (char*) g_value_get_string (v)
20
#define g_marshal_value_peek_param(v) g_value_get_param (v)
21
#define g_marshal_value_peek_boxed(v) g_value_get_boxed (v)
22
#define g_marshal_value_peek_pointer(v) g_value_get_pointer (v)
23
#define g_marshal_value_peek_object(v) g_value_get_object (v)
24
#define g_marshal_value_peek_variant(v) g_value_get_variant (v)
25
#else /* !G_ENABLE_DEBUG */
26
/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
27
* Do not access GValues directly in your code. Instead, use the
28
* g_value_get_*() functions
30
#define g_marshal_value_peek_boolean(v) (v)->data[0].v_int
31
#define g_marshal_value_peek_char(v) (v)->data[0].v_int
32
#define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint
33
#define g_marshal_value_peek_int(v) (v)->data[0].v_int
34
#define g_marshal_value_peek_uint(v) (v)->data[0].v_uint
35
#define g_marshal_value_peek_long(v) (v)->data[0].v_long
36
#define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong
37
#define g_marshal_value_peek_int64(v) (v)->data[0].v_int64
38
#define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64
39
#define g_marshal_value_peek_enum(v) (v)->data[0].v_long
40
#define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong
41
#define g_marshal_value_peek_float(v) (v)->data[0].v_float
42
#define g_marshal_value_peek_double(v) (v)->data[0].v_double
43
#define g_marshal_value_peek_string(v) (v)->data[0].v_pointer
44
#define g_marshal_value_peek_param(v) (v)->data[0].v_pointer
45
#define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer
46
#define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
47
#define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
48
#define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer
49
#endif /* !G_ENABLE_DEBUG */
52
/* BOOLEAN:BOOLEAN (eelmarshal.list:1) */
54
eel_marshal_BOOLEAN__BOOLEAN (GClosure *closure,
55
GValue *return_value G_GNUC_UNUSED,
57
const GValue *param_values,
58
gpointer invocation_hint G_GNUC_UNUSED,
59
gpointer marshal_data)
61
typedef gboolean (*GMarshalFunc_BOOLEAN__BOOLEAN) (gpointer data1,
64
register GMarshalFunc_BOOLEAN__BOOLEAN callback;
65
register GCClosure *cc = (GCClosure*) closure;
66
register gpointer data1, data2;
69
g_return_if_fail (return_value != NULL);
70
g_return_if_fail (n_param_values == 2);
72
if (G_CCLOSURE_SWAP_DATA (closure))
74
data1 = closure->data;
75
data2 = g_value_peek_pointer (param_values + 0);
79
data1 = g_value_peek_pointer (param_values + 0);
80
data2 = closure->data;
82
callback = (GMarshalFunc_BOOLEAN__BOOLEAN) (marshal_data ? marshal_data : cc->callback);
84
v_return = callback (data1,
85
g_marshal_value_peek_boolean (param_values + 1),
88
g_value_set_boolean (return_value, v_return);
91
/* BOOLEAN:BOXED (eelmarshal.list:2) */
93
eel_marshal_BOOLEAN__BOXED (GClosure *closure,
94
GValue *return_value G_GNUC_UNUSED,
96
const GValue *param_values,
97
gpointer invocation_hint G_GNUC_UNUSED,
98
gpointer marshal_data)
100
typedef gboolean (*GMarshalFunc_BOOLEAN__BOXED) (gpointer data1,
103
register GMarshalFunc_BOOLEAN__BOXED callback;
104
register GCClosure *cc = (GCClosure*) closure;
105
register gpointer data1, data2;
108
g_return_if_fail (return_value != NULL);
109
g_return_if_fail (n_param_values == 2);
111
if (G_CCLOSURE_SWAP_DATA (closure))
113
data1 = closure->data;
114
data2 = g_value_peek_pointer (param_values + 0);
118
data1 = g_value_peek_pointer (param_values + 0);
119
data2 = closure->data;
121
callback = (GMarshalFunc_BOOLEAN__BOXED) (marshal_data ? marshal_data : cc->callback);
123
v_return = callback (data1,
124
g_marshal_value_peek_boxed (param_values + 1),
127
g_value_set_boolean (return_value, v_return);
130
/* BOOLEAN:POINTER,POINTER (eelmarshal.list:3) */
132
eel_marshal_BOOLEAN__POINTER_POINTER (GClosure *closure,
133
GValue *return_value G_GNUC_UNUSED,
134
guint n_param_values,
135
const GValue *param_values,
136
gpointer invocation_hint G_GNUC_UNUSED,
137
gpointer marshal_data)
139
typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER_POINTER) (gpointer data1,
143
register GMarshalFunc_BOOLEAN__POINTER_POINTER callback;
144
register GCClosure *cc = (GCClosure*) closure;
145
register gpointer data1, data2;
148
g_return_if_fail (return_value != NULL);
149
g_return_if_fail (n_param_values == 3);
151
if (G_CCLOSURE_SWAP_DATA (closure))
153
data1 = closure->data;
154
data2 = g_value_peek_pointer (param_values + 0);
158
data1 = g_value_peek_pointer (param_values + 0);
159
data2 = closure->data;
161
callback = (GMarshalFunc_BOOLEAN__POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
163
v_return = callback (data1,
164
g_marshal_value_peek_pointer (param_values + 1),
165
g_marshal_value_peek_pointer (param_values + 2),
168
g_value_set_boolean (return_value, v_return);
171
/* BOOLEAN:VOID (eelmarshal.list:4) */
173
eel_marshal_BOOLEAN__VOID (GClosure *closure,
174
GValue *return_value G_GNUC_UNUSED,
175
guint n_param_values,
176
const GValue *param_values,
177
gpointer invocation_hint G_GNUC_UNUSED,
178
gpointer marshal_data)
180
typedef gboolean (*GMarshalFunc_BOOLEAN__VOID) (gpointer data1,
182
register GMarshalFunc_BOOLEAN__VOID callback;
183
register GCClosure *cc = (GCClosure*) closure;
184
register gpointer data1, data2;
187
g_return_if_fail (return_value != NULL);
188
g_return_if_fail (n_param_values == 1);
190
if (G_CCLOSURE_SWAP_DATA (closure))
192
data1 = closure->data;
193
data2 = g_value_peek_pointer (param_values + 0);
197
data1 = g_value_peek_pointer (param_values + 0);
198
data2 = closure->data;
200
callback = (GMarshalFunc_BOOLEAN__VOID) (marshal_data ? marshal_data : cc->callback);
202
v_return = callback (data1,
205
g_value_set_boolean (return_value, v_return);
208
/* ENUM:INT,INT (eelmarshal.list:5) */
210
eel_marshal_ENUM__INT_INT (GClosure *closure,
211
GValue *return_value G_GNUC_UNUSED,
212
guint n_param_values,
213
const GValue *param_values,
214
gpointer invocation_hint G_GNUC_UNUSED,
215
gpointer marshal_data)
217
typedef gint (*GMarshalFunc_ENUM__INT_INT) (gpointer data1,
221
register GMarshalFunc_ENUM__INT_INT callback;
222
register GCClosure *cc = (GCClosure*) closure;
223
register gpointer data1, data2;
226
g_return_if_fail (return_value != NULL);
227
g_return_if_fail (n_param_values == 3);
229
if (G_CCLOSURE_SWAP_DATA (closure))
231
data1 = closure->data;
232
data2 = g_value_peek_pointer (param_values + 0);
236
data1 = g_value_peek_pointer (param_values + 0);
237
data2 = closure->data;
239
callback = (GMarshalFunc_ENUM__INT_INT) (marshal_data ? marshal_data : cc->callback);
241
v_return = callback (data1,
242
g_marshal_value_peek_int (param_values + 1),
243
g_marshal_value_peek_int (param_values + 2),
246
g_value_set_enum (return_value, v_return);
249
/* INT:INT (eelmarshal.list:6) */
251
eel_marshal_INT__INT (GClosure *closure,
252
GValue *return_value G_GNUC_UNUSED,
253
guint n_param_values,
254
const GValue *param_values,
255
gpointer invocation_hint G_GNUC_UNUSED,
256
gpointer marshal_data)
258
typedef gint (*GMarshalFunc_INT__INT) (gpointer data1,
261
register GMarshalFunc_INT__INT callback;
262
register GCClosure *cc = (GCClosure*) closure;
263
register gpointer data1, data2;
266
g_return_if_fail (return_value != NULL);
267
g_return_if_fail (n_param_values == 2);
269
if (G_CCLOSURE_SWAP_DATA (closure))
271
data1 = closure->data;
272
data2 = g_value_peek_pointer (param_values + 0);
276
data1 = g_value_peek_pointer (param_values + 0);
277
data2 = closure->data;
279
callback = (GMarshalFunc_INT__INT) (marshal_data ? marshal_data : cc->callback);
281
v_return = callback (data1,
282
g_marshal_value_peek_int (param_values + 1),
285
g_value_set_int (return_value, v_return);
288
/* INT:POINTER,STRING (eelmarshal.list:7) */
290
eel_marshal_INT__POINTER_STRING (GClosure *closure,
291
GValue *return_value G_GNUC_UNUSED,
292
guint n_param_values,
293
const GValue *param_values,
294
gpointer invocation_hint G_GNUC_UNUSED,
295
gpointer marshal_data)
297
typedef gint (*GMarshalFunc_INT__POINTER_STRING) (gpointer data1,
301
register GMarshalFunc_INT__POINTER_STRING callback;
302
register GCClosure *cc = (GCClosure*) closure;
303
register gpointer data1, data2;
306
g_return_if_fail (return_value != NULL);
307
g_return_if_fail (n_param_values == 3);
309
if (G_CCLOSURE_SWAP_DATA (closure))
311
data1 = closure->data;
312
data2 = g_value_peek_pointer (param_values + 0);
316
data1 = g_value_peek_pointer (param_values + 0);
317
data2 = closure->data;
319
callback = (GMarshalFunc_INT__POINTER_STRING) (marshal_data ? marshal_data : cc->callback);
321
v_return = callback (data1,
322
g_marshal_value_peek_pointer (param_values + 1),
323
g_marshal_value_peek_string (param_values + 2),
326
g_value_set_int (return_value, v_return);
329
/* STRING:POINTER (eelmarshal.list:8) */
331
eel_marshal_STRING__POINTER (GClosure *closure,
332
GValue *return_value G_GNUC_UNUSED,
333
guint n_param_values,
334
const GValue *param_values,
335
gpointer invocation_hint G_GNUC_UNUSED,
336
gpointer marshal_data)
338
typedef gchar* (*GMarshalFunc_STRING__POINTER) (gpointer data1,
341
register GMarshalFunc_STRING__POINTER callback;
342
register GCClosure *cc = (GCClosure*) closure;
343
register gpointer data1, data2;
346
g_return_if_fail (return_value != NULL);
347
g_return_if_fail (n_param_values == 2);
349
if (G_CCLOSURE_SWAP_DATA (closure))
351
data1 = closure->data;
352
data2 = g_value_peek_pointer (param_values + 0);
356
data1 = g_value_peek_pointer (param_values + 0);
357
data2 = closure->data;
359
callback = (GMarshalFunc_STRING__POINTER) (marshal_data ? marshal_data : cc->callback);
361
v_return = callback (data1,
362
g_marshal_value_peek_pointer (param_values + 1),
365
g_value_take_string (return_value, v_return);
368
/* STRING:VOID (eelmarshal.list:9) */
370
eel_marshal_STRING__VOID (GClosure *closure,
371
GValue *return_value G_GNUC_UNUSED,
372
guint n_param_values,
373
const GValue *param_values,
374
gpointer invocation_hint G_GNUC_UNUSED,
375
gpointer marshal_data)
377
typedef gchar* (*GMarshalFunc_STRING__VOID) (gpointer data1,
379
register GMarshalFunc_STRING__VOID callback;
380
register GCClosure *cc = (GCClosure*) closure;
381
register gpointer data1, data2;
384
g_return_if_fail (return_value != NULL);
385
g_return_if_fail (n_param_values == 1);
387
if (G_CCLOSURE_SWAP_DATA (closure))
389
data1 = closure->data;
390
data2 = g_value_peek_pointer (param_values + 0);
394
data1 = g_value_peek_pointer (param_values + 0);
395
data2 = closure->data;
397
callback = (GMarshalFunc_STRING__VOID) (marshal_data ? marshal_data : cc->callback);
399
v_return = callback (data1,
402
g_value_take_string (return_value, v_return);
405
/* VOID:ENUM,INT (eelmarshal.list:10) */
407
eel_marshal_VOID__ENUM_INT (GClosure *closure,
408
GValue *return_value G_GNUC_UNUSED,
409
guint n_param_values,
410
const GValue *param_values,
411
gpointer invocation_hint G_GNUC_UNUSED,
412
gpointer marshal_data)
414
typedef void (*GMarshalFunc_VOID__ENUM_INT) (gpointer data1,
418
register GMarshalFunc_VOID__ENUM_INT callback;
419
register GCClosure *cc = (GCClosure*) closure;
420
register gpointer data1, data2;
422
g_return_if_fail (n_param_values == 3);
424
if (G_CCLOSURE_SWAP_DATA (closure))
426
data1 = closure->data;
427
data2 = g_value_peek_pointer (param_values + 0);
431
data1 = g_value_peek_pointer (param_values + 0);
432
data2 = closure->data;
434
callback = (GMarshalFunc_VOID__ENUM_INT) (marshal_data ? marshal_data : cc->callback);
437
g_marshal_value_peek_enum (param_values + 1),
438
g_marshal_value_peek_int (param_values + 2),
442
/* VOID:ENUM,INT,BOOLEAN (eelmarshal.list:11) */
444
eel_marshal_VOID__ENUM_INT_BOOLEAN (GClosure *closure,
445
GValue *return_value G_GNUC_UNUSED,
446
guint n_param_values,
447
const GValue *param_values,
448
gpointer invocation_hint G_GNUC_UNUSED,
449
gpointer marshal_data)
451
typedef void (*GMarshalFunc_VOID__ENUM_INT_BOOLEAN) (gpointer data1,
456
register GMarshalFunc_VOID__ENUM_INT_BOOLEAN callback;
457
register GCClosure *cc = (GCClosure*) closure;
458
register gpointer data1, data2;
460
g_return_if_fail (n_param_values == 4);
462
if (G_CCLOSURE_SWAP_DATA (closure))
464
data1 = closure->data;
465
data2 = g_value_peek_pointer (param_values + 0);
469
data1 = g_value_peek_pointer (param_values + 0);
470
data2 = closure->data;
472
callback = (GMarshalFunc_VOID__ENUM_INT_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
475
g_marshal_value_peek_enum (param_values + 1),
476
g_marshal_value_peek_int (param_values + 2),
477
g_marshal_value_peek_boolean (param_values + 3),
481
/* VOID:INT,INT,INT,INT (eelmarshal.list:12) */
483
eel_marshal_VOID__INT_INT_INT_INT (GClosure *closure,
484
GValue *return_value G_GNUC_UNUSED,
485
guint n_param_values,
486
const GValue *param_values,
487
gpointer invocation_hint G_GNUC_UNUSED,
488
gpointer marshal_data)
490
typedef void (*GMarshalFunc_VOID__INT_INT_INT_INT) (gpointer data1,
496
register GMarshalFunc_VOID__INT_INT_INT_INT callback;
497
register GCClosure *cc = (GCClosure*) closure;
498
register gpointer data1, data2;
500
g_return_if_fail (n_param_values == 5);
502
if (G_CCLOSURE_SWAP_DATA (closure))
504
data1 = closure->data;
505
data2 = g_value_peek_pointer (param_values + 0);
509
data1 = g_value_peek_pointer (param_values + 0);
510
data2 = closure->data;
512
callback = (GMarshalFunc_VOID__INT_INT_INT_INT) (marshal_data ? marshal_data : cc->callback);
515
g_marshal_value_peek_int (param_values + 1),
516
g_marshal_value_peek_int (param_values + 2),
517
g_marshal_value_peek_int (param_values + 3),
518
g_marshal_value_peek_int (param_values + 4),
522
/* VOID:OBJECT,POINTER (eelmarshal.list:13) */
524
eel_marshal_VOID__OBJECT_POINTER (GClosure *closure,
525
GValue *return_value G_GNUC_UNUSED,
526
guint n_param_values,
527
const GValue *param_values,
528
gpointer invocation_hint G_GNUC_UNUSED,
529
gpointer marshal_data)
531
typedef void (*GMarshalFunc_VOID__OBJECT_POINTER) (gpointer data1,
535
register GMarshalFunc_VOID__OBJECT_POINTER callback;
536
register GCClosure *cc = (GCClosure*) closure;
537
register gpointer data1, data2;
539
g_return_if_fail (n_param_values == 3);
541
if (G_CCLOSURE_SWAP_DATA (closure))
543
data1 = closure->data;
544
data2 = g_value_peek_pointer (param_values + 0);
548
data1 = g_value_peek_pointer (param_values + 0);
549
data2 = closure->data;
551
callback = (GMarshalFunc_VOID__OBJECT_POINTER) (marshal_data ? marshal_data : cc->callback);
554
g_marshal_value_peek_object (param_values + 1),
555
g_marshal_value_peek_pointer (param_values + 2),