7 #include "gvaluetypes.h"
10 #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
11 #define g_marshal_value_peek_char(v) g_value_get_schar (v)
12 #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v)
13 #define g_marshal_value_peek_int(v) g_value_get_int (v)
14 #define g_marshal_value_peek_uint(v) g_value_get_uint (v)
15 #define g_marshal_value_peek_long(v) g_value_get_long (v)
16 #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v)
17 #define g_marshal_value_peek_int64(v) g_value_get_int64 (v)
18 #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v)
19 #define g_marshal_value_peek_enum(v) g_value_get_enum (v)
20 #define g_marshal_value_peek_flags(v) g_value_get_flags (v)
21 #define g_marshal_value_peek_float(v) g_value_get_float (v)
22 #define g_marshal_value_peek_double(v) g_value_get_double (v)
23 #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v)
24 #define g_marshal_value_peek_param(v) g_value_get_param (v)
25 #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v)
26 #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v)
27 #define g_marshal_value_peek_object(v) g_value_get_object (v)
28 #define g_marshal_value_peek_variant(v) g_value_get_variant (v)
29 #else /* !G_ENABLE_DEBUG */
30 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
31 * Do not access GValues directly in your code. Instead, use the
32 * g_value_get_*() functions
34 #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int
35 #define g_marshal_value_peek_char(v) (v)->data[0].v_int
36 #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint
37 #define g_marshal_value_peek_int(v) (v)->data[0].v_int
38 #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint
39 #define g_marshal_value_peek_long(v) (v)->data[0].v_long
40 #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong
41 #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64
42 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64
43 #define g_marshal_value_peek_enum(v) (v)->data[0].v_long
44 #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong
45 #define g_marshal_value_peek_float(v) (v)->data[0].v_float
46 #define g_marshal_value_peek_double(v) (v)->data[0].v_double
47 #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer
48 #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer
49 #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer
50 #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
51 #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
52 #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer
53 #endif /* !G_ENABLE_DEBUG */
56 /* VOID:VOID (./gmarshal.list:6) */
58 g_cclosure_marshal_VOID__VOID (GClosure *closure,
59 GValue *return_value G_GNUC_UNUSED,
61 const GValue *param_values,
62 gpointer invocation_hint G_GNUC_UNUSED,
63 gpointer marshal_data)
65 typedef void (*GMarshalFunc_VOID__VOID) (gpointer data1,
67 register GMarshalFunc_VOID__VOID callback;
68 register GCClosure *cc = (GCClosure*) closure;
69 register gpointer data1, data2;
71 g_return_if_fail (n_param_values == 1);
73 if (G_CCLOSURE_SWAP_DATA (closure))
75 data1 = closure->data;
76 data2 = g_value_peek_pointer (param_values + 0);
80 data1 = g_value_peek_pointer (param_values + 0);
81 data2 = closure->data;
83 callback = (GMarshalFunc_VOID__VOID) (marshal_data ? marshal_data : cc->callback);
89 g_cclosure_marshal_VOID__VOIDv (GClosure *closure,
93 gpointer marshal_data,
97 typedef void (*GMarshalFunc_VOID__VOID) (gpointer instance,
99 GCClosure *cc = (GCClosure*) closure;
100 gpointer data1, data2;
101 GMarshalFunc_VOID__VOID callback;
103 if (G_CCLOSURE_SWAP_DATA (closure))
105 data1 = closure->data;
111 data2 = closure->data;
113 callback = (GMarshalFunc_VOID__VOID) (marshal_data ? marshal_data : cc->callback);
120 /* VOID:BOOLEAN (./gmarshal.list:7) */
122 g_cclosure_marshal_VOID__BOOLEAN (GClosure *closure,
123 GValue *return_value G_GNUC_UNUSED,
124 guint n_param_values,
125 const GValue *param_values,
126 gpointer invocation_hint G_GNUC_UNUSED,
127 gpointer marshal_data)
129 typedef void (*GMarshalFunc_VOID__BOOLEAN) (gpointer data1,
132 register GMarshalFunc_VOID__BOOLEAN callback;
133 register GCClosure *cc = (GCClosure*) closure;
134 register gpointer data1, data2;
136 g_return_if_fail (n_param_values == 2);
138 if (G_CCLOSURE_SWAP_DATA (closure))
140 data1 = closure->data;
141 data2 = g_value_peek_pointer (param_values + 0);
145 data1 = g_value_peek_pointer (param_values + 0);
146 data2 = closure->data;
148 callback = (GMarshalFunc_VOID__BOOLEAN) (marshal_data ? marshal_data : cc->callback);
151 g_marshal_value_peek_boolean (param_values + 1),
155 g_cclosure_marshal_VOID__BOOLEANv (GClosure *closure,
156 GValue *return_value,
159 gpointer marshal_data,
163 typedef void (*GMarshalFunc_VOID__BOOLEAN) (gpointer instance,
166 GCClosure *cc = (GCClosure*) closure;
167 gpointer data1, data2;
168 GMarshalFunc_VOID__BOOLEAN callback;
172 va_copy (args_copy, args);
173 arg0 = (gboolean) va_arg (args_copy, gboolean);
176 if (G_CCLOSURE_SWAP_DATA (closure))
178 data1 = closure->data;
184 data2 = closure->data;
186 callback = (GMarshalFunc_VOID__BOOLEAN) (marshal_data ? marshal_data : cc->callback);
194 /* VOID:CHAR (./gmarshal.list:8) */
196 g_cclosure_marshal_VOID__CHAR (GClosure *closure,
197 GValue *return_value G_GNUC_UNUSED,
198 guint n_param_values,
199 const GValue *param_values,
200 gpointer invocation_hint G_GNUC_UNUSED,
201 gpointer marshal_data)
203 typedef void (*GMarshalFunc_VOID__CHAR) (gpointer data1,
206 register GMarshalFunc_VOID__CHAR callback;
207 register GCClosure *cc = (GCClosure*) closure;
208 register gpointer data1, data2;
210 g_return_if_fail (n_param_values == 2);
212 if (G_CCLOSURE_SWAP_DATA (closure))
214 data1 = closure->data;
215 data2 = g_value_peek_pointer (param_values + 0);
219 data1 = g_value_peek_pointer (param_values + 0);
220 data2 = closure->data;
222 callback = (GMarshalFunc_VOID__CHAR) (marshal_data ? marshal_data : cc->callback);
225 g_marshal_value_peek_char (param_values + 1),
229 g_cclosure_marshal_VOID__CHARv (GClosure *closure,
230 GValue *return_value,
233 gpointer marshal_data,
237 typedef void (*GMarshalFunc_VOID__CHAR) (gpointer instance,
240 GCClosure *cc = (GCClosure*) closure;
241 gpointer data1, data2;
242 GMarshalFunc_VOID__CHAR callback;
246 va_copy (args_copy, args);
247 arg0 = (gchar) va_arg (args_copy, gint);
250 if (G_CCLOSURE_SWAP_DATA (closure))
252 data1 = closure->data;
258 data2 = closure->data;
260 callback = (GMarshalFunc_VOID__CHAR) (marshal_data ? marshal_data : cc->callback);
268 /* VOID:UCHAR (./gmarshal.list:9) */
270 g_cclosure_marshal_VOID__UCHAR (GClosure *closure,
271 GValue *return_value G_GNUC_UNUSED,
272 guint n_param_values,
273 const GValue *param_values,
274 gpointer invocation_hint G_GNUC_UNUSED,
275 gpointer marshal_data)
277 typedef void (*GMarshalFunc_VOID__UCHAR) (gpointer data1,
280 register GMarshalFunc_VOID__UCHAR callback;
281 register GCClosure *cc = (GCClosure*) closure;
282 register gpointer data1, data2;
284 g_return_if_fail (n_param_values == 2);
286 if (G_CCLOSURE_SWAP_DATA (closure))
288 data1 = closure->data;
289 data2 = g_value_peek_pointer (param_values + 0);
293 data1 = g_value_peek_pointer (param_values + 0);
294 data2 = closure->data;
296 callback = (GMarshalFunc_VOID__UCHAR) (marshal_data ? marshal_data : cc->callback);
299 g_marshal_value_peek_uchar (param_values + 1),
303 g_cclosure_marshal_VOID__UCHARv (GClosure *closure,
304 GValue *return_value,
307 gpointer marshal_data,
311 typedef void (*GMarshalFunc_VOID__UCHAR) (gpointer instance,
314 GCClosure *cc = (GCClosure*) closure;
315 gpointer data1, data2;
316 GMarshalFunc_VOID__UCHAR callback;
320 va_copy (args_copy, args);
321 arg0 = (guchar) va_arg (args_copy, guint);
324 if (G_CCLOSURE_SWAP_DATA (closure))
326 data1 = closure->data;
332 data2 = closure->data;
334 callback = (GMarshalFunc_VOID__UCHAR) (marshal_data ? marshal_data : cc->callback);
342 /* VOID:INT (./gmarshal.list:10) */
344 g_cclosure_marshal_VOID__INT (GClosure *closure,
345 GValue *return_value G_GNUC_UNUSED,
346 guint n_param_values,
347 const GValue *param_values,
348 gpointer invocation_hint G_GNUC_UNUSED,
349 gpointer marshal_data)
351 typedef void (*GMarshalFunc_VOID__INT) (gpointer data1,
354 register GMarshalFunc_VOID__INT callback;
355 register GCClosure *cc = (GCClosure*) closure;
356 register gpointer data1, data2;
358 g_return_if_fail (n_param_values == 2);
360 if (G_CCLOSURE_SWAP_DATA (closure))
362 data1 = closure->data;
363 data2 = g_value_peek_pointer (param_values + 0);
367 data1 = g_value_peek_pointer (param_values + 0);
368 data2 = closure->data;
370 callback = (GMarshalFunc_VOID__INT) (marshal_data ? marshal_data : cc->callback);
373 g_marshal_value_peek_int (param_values + 1),
377 g_cclosure_marshal_VOID__INTv (GClosure *closure,
378 GValue *return_value,
381 gpointer marshal_data,
385 typedef void (*GMarshalFunc_VOID__INT) (gpointer instance,
388 GCClosure *cc = (GCClosure*) closure;
389 gpointer data1, data2;
390 GMarshalFunc_VOID__INT callback;
394 va_copy (args_copy, args);
395 arg0 = (gint) va_arg (args_copy, gint);
398 if (G_CCLOSURE_SWAP_DATA (closure))
400 data1 = closure->data;
406 data2 = closure->data;
408 callback = (GMarshalFunc_VOID__INT) (marshal_data ? marshal_data : cc->callback);
416 /* VOID:UINT (./gmarshal.list:11) */
418 g_cclosure_marshal_VOID__UINT (GClosure *closure,
419 GValue *return_value G_GNUC_UNUSED,
420 guint n_param_values,
421 const GValue *param_values,
422 gpointer invocation_hint G_GNUC_UNUSED,
423 gpointer marshal_data)
425 typedef void (*GMarshalFunc_VOID__UINT) (gpointer data1,
428 register GMarshalFunc_VOID__UINT callback;
429 register GCClosure *cc = (GCClosure*) closure;
430 register gpointer data1, data2;
432 g_return_if_fail (n_param_values == 2);
434 if (G_CCLOSURE_SWAP_DATA (closure))
436 data1 = closure->data;
437 data2 = g_value_peek_pointer (param_values + 0);
441 data1 = g_value_peek_pointer (param_values + 0);
442 data2 = closure->data;
444 callback = (GMarshalFunc_VOID__UINT) (marshal_data ? marshal_data : cc->callback);
447 g_marshal_value_peek_uint (param_values + 1),
451 g_cclosure_marshal_VOID__UINTv (GClosure *closure,
452 GValue *return_value,
455 gpointer marshal_data,
459 typedef void (*GMarshalFunc_VOID__UINT) (gpointer instance,
462 GCClosure *cc = (GCClosure*) closure;
463 gpointer data1, data2;
464 GMarshalFunc_VOID__UINT callback;
468 va_copy (args_copy, args);
469 arg0 = (guint) va_arg (args_copy, guint);
472 if (G_CCLOSURE_SWAP_DATA (closure))
474 data1 = closure->data;
480 data2 = closure->data;
482 callback = (GMarshalFunc_VOID__UINT) (marshal_data ? marshal_data : cc->callback);
490 /* VOID:LONG (./gmarshal.list:12) */
492 g_cclosure_marshal_VOID__LONG (GClosure *closure,
493 GValue *return_value G_GNUC_UNUSED,
494 guint n_param_values,
495 const GValue *param_values,
496 gpointer invocation_hint G_GNUC_UNUSED,
497 gpointer marshal_data)
499 typedef void (*GMarshalFunc_VOID__LONG) (gpointer data1,
502 register GMarshalFunc_VOID__LONG callback;
503 register GCClosure *cc = (GCClosure*) closure;
504 register gpointer data1, data2;
506 g_return_if_fail (n_param_values == 2);
508 if (G_CCLOSURE_SWAP_DATA (closure))
510 data1 = closure->data;
511 data2 = g_value_peek_pointer (param_values + 0);
515 data1 = g_value_peek_pointer (param_values + 0);
516 data2 = closure->data;
518 callback = (GMarshalFunc_VOID__LONG) (marshal_data ? marshal_data : cc->callback);
521 g_marshal_value_peek_long (param_values + 1),
525 g_cclosure_marshal_VOID__LONGv (GClosure *closure,
526 GValue *return_value,
529 gpointer marshal_data,
533 typedef void (*GMarshalFunc_VOID__LONG) (gpointer instance,
536 GCClosure *cc = (GCClosure*) closure;
537 gpointer data1, data2;
538 GMarshalFunc_VOID__LONG callback;
542 va_copy (args_copy, args);
543 arg0 = (glong) va_arg (args_copy, glong);
546 if (G_CCLOSURE_SWAP_DATA (closure))
548 data1 = closure->data;
554 data2 = closure->data;
556 callback = (GMarshalFunc_VOID__LONG) (marshal_data ? marshal_data : cc->callback);
564 /* VOID:ULONG (./gmarshal.list:13) */
566 g_cclosure_marshal_VOID__ULONG (GClosure *closure,
567 GValue *return_value G_GNUC_UNUSED,
568 guint n_param_values,
569 const GValue *param_values,
570 gpointer invocation_hint G_GNUC_UNUSED,
571 gpointer marshal_data)
573 typedef void (*GMarshalFunc_VOID__ULONG) (gpointer data1,
576 register GMarshalFunc_VOID__ULONG callback;
577 register GCClosure *cc = (GCClosure*) closure;
578 register gpointer data1, data2;
580 g_return_if_fail (n_param_values == 2);
582 if (G_CCLOSURE_SWAP_DATA (closure))
584 data1 = closure->data;
585 data2 = g_value_peek_pointer (param_values + 0);
589 data1 = g_value_peek_pointer (param_values + 0);
590 data2 = closure->data;
592 callback = (GMarshalFunc_VOID__ULONG) (marshal_data ? marshal_data : cc->callback);
595 g_marshal_value_peek_ulong (param_values + 1),
599 g_cclosure_marshal_VOID__ULONGv (GClosure *closure,
600 GValue *return_value,
603 gpointer marshal_data,
607 typedef void (*GMarshalFunc_VOID__ULONG) (gpointer instance,
610 GCClosure *cc = (GCClosure*) closure;
611 gpointer data1, data2;
612 GMarshalFunc_VOID__ULONG callback;
616 va_copy (args_copy, args);
617 arg0 = (gulong) va_arg (args_copy, gulong);
620 if (G_CCLOSURE_SWAP_DATA (closure))
622 data1 = closure->data;
628 data2 = closure->data;
630 callback = (GMarshalFunc_VOID__ULONG) (marshal_data ? marshal_data : cc->callback);
638 /* VOID:ENUM (./gmarshal.list:14) */
640 g_cclosure_marshal_VOID__ENUM (GClosure *closure,
641 GValue *return_value G_GNUC_UNUSED,
642 guint n_param_values,
643 const GValue *param_values,
644 gpointer invocation_hint G_GNUC_UNUSED,
645 gpointer marshal_data)
647 typedef void (*GMarshalFunc_VOID__ENUM) (gpointer data1,
650 register GMarshalFunc_VOID__ENUM callback;
651 register GCClosure *cc = (GCClosure*) closure;
652 register gpointer data1, data2;
654 g_return_if_fail (n_param_values == 2);
656 if (G_CCLOSURE_SWAP_DATA (closure))
658 data1 = closure->data;
659 data2 = g_value_peek_pointer (param_values + 0);
663 data1 = g_value_peek_pointer (param_values + 0);
664 data2 = closure->data;
666 callback = (GMarshalFunc_VOID__ENUM) (marshal_data ? marshal_data : cc->callback);
669 g_marshal_value_peek_enum (param_values + 1),
673 g_cclosure_marshal_VOID__ENUMv (GClosure *closure,
674 GValue *return_value,
677 gpointer marshal_data,
681 typedef void (*GMarshalFunc_VOID__ENUM) (gpointer instance,
684 GCClosure *cc = (GCClosure*) closure;
685 gpointer data1, data2;
686 GMarshalFunc_VOID__ENUM callback;
690 va_copy (args_copy, args);
691 arg0 = (gint) va_arg (args_copy, gint);
694 if (G_CCLOSURE_SWAP_DATA (closure))
696 data1 = closure->data;
702 data2 = closure->data;
704 callback = (GMarshalFunc_VOID__ENUM) (marshal_data ? marshal_data : cc->callback);
712 /* VOID:FLAGS (./gmarshal.list:15) */
714 g_cclosure_marshal_VOID__FLAGS (GClosure *closure,
715 GValue *return_value G_GNUC_UNUSED,
716 guint n_param_values,
717 const GValue *param_values,
718 gpointer invocation_hint G_GNUC_UNUSED,
719 gpointer marshal_data)
721 typedef void (*GMarshalFunc_VOID__FLAGS) (gpointer data1,
724 register GMarshalFunc_VOID__FLAGS callback;
725 register GCClosure *cc = (GCClosure*) closure;
726 register gpointer data1, data2;
728 g_return_if_fail (n_param_values == 2);
730 if (G_CCLOSURE_SWAP_DATA (closure))
732 data1 = closure->data;
733 data2 = g_value_peek_pointer (param_values + 0);
737 data1 = g_value_peek_pointer (param_values + 0);
738 data2 = closure->data;
740 callback = (GMarshalFunc_VOID__FLAGS) (marshal_data ? marshal_data : cc->callback);
743 g_marshal_value_peek_flags (param_values + 1),
747 g_cclosure_marshal_VOID__FLAGSv (GClosure *closure,
748 GValue *return_value,
751 gpointer marshal_data,
755 typedef void (*GMarshalFunc_VOID__FLAGS) (gpointer instance,
758 GCClosure *cc = (GCClosure*) closure;
759 gpointer data1, data2;
760 GMarshalFunc_VOID__FLAGS callback;
764 va_copy (args_copy, args);
765 arg0 = (guint) va_arg (args_copy, guint);
768 if (G_CCLOSURE_SWAP_DATA (closure))
770 data1 = closure->data;
776 data2 = closure->data;
778 callback = (GMarshalFunc_VOID__FLAGS) (marshal_data ? marshal_data : cc->callback);
786 /* VOID:FLOAT (./gmarshal.list:16) */
788 g_cclosure_marshal_VOID__FLOAT (GClosure *closure,
789 GValue *return_value G_GNUC_UNUSED,
790 guint n_param_values,
791 const GValue *param_values,
792 gpointer invocation_hint G_GNUC_UNUSED,
793 gpointer marshal_data)
795 typedef void (*GMarshalFunc_VOID__FLOAT) (gpointer data1,
798 register GMarshalFunc_VOID__FLOAT callback;
799 register GCClosure *cc = (GCClosure*) closure;
800 register gpointer data1, data2;
802 g_return_if_fail (n_param_values == 2);
804 if (G_CCLOSURE_SWAP_DATA (closure))
806 data1 = closure->data;
807 data2 = g_value_peek_pointer (param_values + 0);
811 data1 = g_value_peek_pointer (param_values + 0);
812 data2 = closure->data;
814 callback = (GMarshalFunc_VOID__FLOAT) (marshal_data ? marshal_data : cc->callback);
817 g_marshal_value_peek_float (param_values + 1),
821 g_cclosure_marshal_VOID__FLOATv (GClosure *closure,
822 GValue *return_value,
825 gpointer marshal_data,
829 typedef void (*GMarshalFunc_VOID__FLOAT) (gpointer instance,
832 GCClosure *cc = (GCClosure*) closure;
833 gpointer data1, data2;
834 GMarshalFunc_VOID__FLOAT callback;
838 va_copy (args_copy, args);
839 arg0 = (gfloat) va_arg (args_copy, gdouble);
842 if (G_CCLOSURE_SWAP_DATA (closure))
844 data1 = closure->data;
850 data2 = closure->data;
852 callback = (GMarshalFunc_VOID__FLOAT) (marshal_data ? marshal_data : cc->callback);
860 /* VOID:DOUBLE (./gmarshal.list:17) */
862 g_cclosure_marshal_VOID__DOUBLE (GClosure *closure,
863 GValue *return_value G_GNUC_UNUSED,
864 guint n_param_values,
865 const GValue *param_values,
866 gpointer invocation_hint G_GNUC_UNUSED,
867 gpointer marshal_data)
869 typedef void (*GMarshalFunc_VOID__DOUBLE) (gpointer data1,
872 register GMarshalFunc_VOID__DOUBLE callback;
873 register GCClosure *cc = (GCClosure*) closure;
874 register gpointer data1, data2;
876 g_return_if_fail (n_param_values == 2);
878 if (G_CCLOSURE_SWAP_DATA (closure))
880 data1 = closure->data;
881 data2 = g_value_peek_pointer (param_values + 0);
885 data1 = g_value_peek_pointer (param_values + 0);
886 data2 = closure->data;
888 callback = (GMarshalFunc_VOID__DOUBLE) (marshal_data ? marshal_data : cc->callback);
891 g_marshal_value_peek_double (param_values + 1),
895 g_cclosure_marshal_VOID__DOUBLEv (GClosure *closure,
896 GValue *return_value,
899 gpointer marshal_data,
903 typedef void (*GMarshalFunc_VOID__DOUBLE) (gpointer instance,
906 GCClosure *cc = (GCClosure*) closure;
907 gpointer data1, data2;
908 GMarshalFunc_VOID__DOUBLE callback;
912 va_copy (args_copy, args);
913 arg0 = (gdouble) va_arg (args_copy, gdouble);
916 if (G_CCLOSURE_SWAP_DATA (closure))
918 data1 = closure->data;
924 data2 = closure->data;
926 callback = (GMarshalFunc_VOID__DOUBLE) (marshal_data ? marshal_data : cc->callback);
934 /* VOID:STRING (./gmarshal.list:18) */
936 g_cclosure_marshal_VOID__STRING (GClosure *closure,
937 GValue *return_value G_GNUC_UNUSED,
938 guint n_param_values,
939 const GValue *param_values,
940 gpointer invocation_hint G_GNUC_UNUSED,
941 gpointer marshal_data)
943 typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1,
946 register GMarshalFunc_VOID__STRING callback;
947 register GCClosure *cc = (GCClosure*) closure;
948 register gpointer data1, data2;
950 g_return_if_fail (n_param_values == 2);
952 if (G_CCLOSURE_SWAP_DATA (closure))
954 data1 = closure->data;
955 data2 = g_value_peek_pointer (param_values + 0);
959 data1 = g_value_peek_pointer (param_values + 0);
960 data2 = closure->data;
962 callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback);
965 g_marshal_value_peek_string (param_values + 1),
969 g_cclosure_marshal_VOID__STRINGv (GClosure *closure,
970 GValue *return_value,
973 gpointer marshal_data,
977 typedef void (*GMarshalFunc_VOID__STRING) (gpointer instance,
980 GCClosure *cc = (GCClosure*) closure;
981 gpointer data1, data2;
982 GMarshalFunc_VOID__STRING callback;
986 va_copy (args_copy, args);
987 arg0 = (gpointer) va_arg (args_copy, gpointer);
988 if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
989 arg0 = g_strdup (arg0);
992 if (G_CCLOSURE_SWAP_DATA (closure))
994 data1 = closure->data;
1000 data2 = closure->data;
1002 callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback);
1007 if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
1012 /* VOID:PARAM (./gmarshal.list:19) */
1014 g_cclosure_marshal_VOID__PARAM (GClosure *closure,
1015 GValue *return_value G_GNUC_UNUSED,
1016 guint n_param_values,
1017 const GValue *param_values,
1018 gpointer invocation_hint G_GNUC_UNUSED,
1019 gpointer marshal_data)
1021 typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1,
1024 register GMarshalFunc_VOID__PARAM callback;
1025 register GCClosure *cc = (GCClosure*) closure;
1026 register gpointer data1, data2;
1028 g_return_if_fail (n_param_values == 2);
1030 if (G_CCLOSURE_SWAP_DATA (closure))
1032 data1 = closure->data;
1033 data2 = g_value_peek_pointer (param_values + 0);
1037 data1 = g_value_peek_pointer (param_values + 0);
1038 data2 = closure->data;
1040 callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback);
1043 g_marshal_value_peek_param (param_values + 1),
1047 g_cclosure_marshal_VOID__PARAMv (GClosure *closure,
1048 GValue *return_value,
1051 gpointer marshal_data,
1055 typedef void (*GMarshalFunc_VOID__PARAM) (gpointer instance,
1058 GCClosure *cc = (GCClosure*) closure;
1059 gpointer data1, data2;
1060 GMarshalFunc_VOID__PARAM callback;
1064 va_copy (args_copy, args);
1065 arg0 = (gpointer) va_arg (args_copy, gpointer);
1066 if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
1067 arg0 = g_param_spec_ref (arg0);
1070 if (G_CCLOSURE_SWAP_DATA (closure))
1072 data1 = closure->data;
1078 data2 = closure->data;
1080 callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback);
1085 if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
1086 g_param_spec_unref (arg0);
1090 /* VOID:BOXED (./gmarshal.list:20) */
1092 g_cclosure_marshal_VOID__BOXED (GClosure *closure,
1093 GValue *return_value G_GNUC_UNUSED,
1094 guint n_param_values,
1095 const GValue *param_values,
1096 gpointer invocation_hint G_GNUC_UNUSED,
1097 gpointer marshal_data)
1099 typedef void (*GMarshalFunc_VOID__BOXED) (gpointer data1,
1102 register GMarshalFunc_VOID__BOXED callback;
1103 register GCClosure *cc = (GCClosure*) closure;
1104 register gpointer data1, data2;
1106 g_return_if_fail (n_param_values == 2);
1108 if (G_CCLOSURE_SWAP_DATA (closure))
1110 data1 = closure->data;
1111 data2 = g_value_peek_pointer (param_values + 0);
1115 data1 = g_value_peek_pointer (param_values + 0);
1116 data2 = closure->data;
1118 callback = (GMarshalFunc_VOID__BOXED) (marshal_data ? marshal_data : cc->callback);
1121 g_marshal_value_peek_boxed (param_values + 1),
1125 g_cclosure_marshal_VOID__BOXEDv (GClosure *closure,
1126 GValue *return_value,
1129 gpointer marshal_data,
1133 typedef void (*GMarshalFunc_VOID__BOXED) (gpointer instance,
1136 GCClosure *cc = (GCClosure*) closure;
1137 gpointer data1, data2;
1138 GMarshalFunc_VOID__BOXED callback;
1142 va_copy (args_copy, args);
1143 arg0 = (gpointer) va_arg (args_copy, gpointer);
1144 if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
1145 arg0 = g_boxed_copy (param_types[0] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg0);
1148 if (G_CCLOSURE_SWAP_DATA (closure))
1150 data1 = closure->data;
1156 data2 = closure->data;
1158 callback = (GMarshalFunc_VOID__BOXED) (marshal_data ? marshal_data : cc->callback);
1163 if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
1164 g_boxed_free (param_types[0] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg0);
1168 /* VOID:POINTER (./gmarshal.list:21) */
1170 g_cclosure_marshal_VOID__POINTER (GClosure *closure,
1171 GValue *return_value G_GNUC_UNUSED,
1172 guint n_param_values,
1173 const GValue *param_values,
1174 gpointer invocation_hint G_GNUC_UNUSED,
1175 gpointer marshal_data)
1177 typedef void (*GMarshalFunc_VOID__POINTER) (gpointer data1,
1180 register GMarshalFunc_VOID__POINTER callback;
1181 register GCClosure *cc = (GCClosure*) closure;
1182 register gpointer data1, data2;
1184 g_return_if_fail (n_param_values == 2);
1186 if (G_CCLOSURE_SWAP_DATA (closure))
1188 data1 = closure->data;
1189 data2 = g_value_peek_pointer (param_values + 0);
1193 data1 = g_value_peek_pointer (param_values + 0);
1194 data2 = closure->data;
1196 callback = (GMarshalFunc_VOID__POINTER) (marshal_data ? marshal_data : cc->callback);
1199 g_marshal_value_peek_pointer (param_values + 1),
1203 g_cclosure_marshal_VOID__POINTERv (GClosure *closure,
1204 GValue *return_value,
1207 gpointer marshal_data,
1211 typedef void (*GMarshalFunc_VOID__POINTER) (gpointer instance,
1214 GCClosure *cc = (GCClosure*) closure;
1215 gpointer data1, data2;
1216 GMarshalFunc_VOID__POINTER callback;
1220 va_copy (args_copy, args);
1221 arg0 = (gpointer) va_arg (args_copy, gpointer);
1224 if (G_CCLOSURE_SWAP_DATA (closure))
1226 data1 = closure->data;
1232 data2 = closure->data;
1234 callback = (GMarshalFunc_VOID__POINTER) (marshal_data ? marshal_data : cc->callback);
1242 /* VOID:OBJECT (./gmarshal.list:22) */
1244 g_cclosure_marshal_VOID__OBJECT (GClosure *closure,
1245 GValue *return_value G_GNUC_UNUSED,
1246 guint n_param_values,
1247 const GValue *param_values,
1248 gpointer invocation_hint G_GNUC_UNUSED,
1249 gpointer marshal_data)
1251 typedef void (*GMarshalFunc_VOID__OBJECT) (gpointer data1,
1254 register GMarshalFunc_VOID__OBJECT callback;
1255 register GCClosure *cc = (GCClosure*) closure;
1256 register gpointer data1, data2;
1258 g_return_if_fail (n_param_values == 2);
1260 if (G_CCLOSURE_SWAP_DATA (closure))
1262 data1 = closure->data;
1263 data2 = g_value_peek_pointer (param_values + 0);
1267 data1 = g_value_peek_pointer (param_values + 0);
1268 data2 = closure->data;
1270 callback = (GMarshalFunc_VOID__OBJECT) (marshal_data ? marshal_data : cc->callback);
1273 g_marshal_value_peek_object (param_values + 1),
1277 g_cclosure_marshal_VOID__OBJECTv (GClosure *closure,
1278 GValue *return_value,
1281 gpointer marshal_data,
1285 typedef void (*GMarshalFunc_VOID__OBJECT) (gpointer instance,
1288 GCClosure *cc = (GCClosure*) closure;
1289 gpointer data1, data2;
1290 GMarshalFunc_VOID__OBJECT callback;
1294 va_copy (args_copy, args);
1295 arg0 = (gpointer) va_arg (args_copy, gpointer);
1297 arg0 = g_object_ref (arg0);
1300 if (G_CCLOSURE_SWAP_DATA (closure))
1302 data1 = closure->data;
1308 data2 = closure->data;
1310 callback = (GMarshalFunc_VOID__OBJECT) (marshal_data ? marshal_data : cc->callback);
1316 g_object_unref (arg0);
1320 /* VOID:VARIANT (./gmarshal.list:23) */
1322 g_cclosure_marshal_VOID__VARIANT (GClosure *closure,
1323 GValue *return_value G_GNUC_UNUSED,
1324 guint n_param_values,
1325 const GValue *param_values,
1326 gpointer invocation_hint G_GNUC_UNUSED,
1327 gpointer marshal_data)
1329 typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1,
1332 register GMarshalFunc_VOID__VARIANT callback;
1333 register GCClosure *cc = (GCClosure*) closure;
1334 register gpointer data1, data2;
1336 g_return_if_fail (n_param_values == 2);
1338 if (G_CCLOSURE_SWAP_DATA (closure))
1340 data1 = closure->data;
1341 data2 = g_value_peek_pointer (param_values + 0);
1345 data1 = g_value_peek_pointer (param_values + 0);
1346 data2 = closure->data;
1348 callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback);
1351 g_marshal_value_peek_variant (param_values + 1),
1355 g_cclosure_marshal_VOID__VARIANTv (GClosure *closure,
1356 GValue *return_value,
1359 gpointer marshal_data,
1363 typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer instance,
1366 GCClosure *cc = (GCClosure*) closure;
1367 gpointer data1, data2;
1368 GMarshalFunc_VOID__VARIANT callback;
1372 va_copy (args_copy, args);
1373 arg0 = (gpointer) va_arg (args_copy, gpointer);
1374 if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
1375 arg0 = g_variant_ref_sink (arg0);
1378 if (G_CCLOSURE_SWAP_DATA (closure))
1380 data1 = closure->data;
1386 data2 = closure->data;
1388 callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback);
1393 if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
1394 g_variant_unref (arg0);
1398 /* VOID:UINT,POINTER (./gmarshal.list:26) */
1400 g_cclosure_marshal_VOID__UINT_POINTER (GClosure *closure,
1401 GValue *return_value G_GNUC_UNUSED,
1402 guint n_param_values,
1403 const GValue *param_values,
1404 gpointer invocation_hint G_GNUC_UNUSED,
1405 gpointer marshal_data)
1407 typedef void (*GMarshalFunc_VOID__UINT_POINTER) (gpointer data1,
1411 register GMarshalFunc_VOID__UINT_POINTER callback;
1412 register GCClosure *cc = (GCClosure*) closure;
1413 register gpointer data1, data2;
1415 g_return_if_fail (n_param_values == 3);
1417 if (G_CCLOSURE_SWAP_DATA (closure))
1419 data1 = closure->data;
1420 data2 = g_value_peek_pointer (param_values + 0);
1424 data1 = g_value_peek_pointer (param_values + 0);
1425 data2 = closure->data;
1427 callback = (GMarshalFunc_VOID__UINT_POINTER) (marshal_data ? marshal_data : cc->callback);
1430 g_marshal_value_peek_uint (param_values + 1),
1431 g_marshal_value_peek_pointer (param_values + 2),
1435 g_cclosure_marshal_VOID__UINT_POINTERv (GClosure *closure,
1436 GValue *return_value,
1439 gpointer marshal_data,
1443 typedef void (*GMarshalFunc_VOID__UINT_POINTER) (gpointer instance,
1447 GCClosure *cc = (GCClosure*) closure;
1448 gpointer data1, data2;
1449 GMarshalFunc_VOID__UINT_POINTER callback;
1454 va_copy (args_copy, args);
1455 arg0 = (guint) va_arg (args_copy, guint);
1456 arg1 = (gpointer) va_arg (args_copy, gpointer);
1459 if (G_CCLOSURE_SWAP_DATA (closure))
1461 data1 = closure->data;
1467 data2 = closure->data;
1469 callback = (GMarshalFunc_VOID__UINT_POINTER) (marshal_data ? marshal_data : cc->callback);
1478 /* BOOL:FLAGS (./gmarshal.list:27) */
1480 g_cclosure_marshal_BOOLEAN__FLAGS (GClosure *closure,
1481 GValue *return_value G_GNUC_UNUSED,
1482 guint n_param_values,
1483 const GValue *param_values,
1484 gpointer invocation_hint G_GNUC_UNUSED,
1485 gpointer marshal_data)
1487 typedef gboolean (*GMarshalFunc_BOOLEAN__FLAGS) (gpointer data1,
1490 register GMarshalFunc_BOOLEAN__FLAGS callback;
1491 register GCClosure *cc = (GCClosure*) closure;
1492 register gpointer data1, data2;
1495 g_return_if_fail (return_value != NULL);
1496 g_return_if_fail (n_param_values == 2);
1498 if (G_CCLOSURE_SWAP_DATA (closure))
1500 data1 = closure->data;
1501 data2 = g_value_peek_pointer (param_values + 0);
1505 data1 = g_value_peek_pointer (param_values + 0);
1506 data2 = closure->data;
1508 callback = (GMarshalFunc_BOOLEAN__FLAGS) (marshal_data ? marshal_data : cc->callback);
1510 v_return = callback (data1,
1511 g_marshal_value_peek_flags (param_values + 1),
1514 g_value_set_boolean (return_value, v_return);
1517 g_cclosure_marshal_BOOLEAN__FLAGSv (GClosure *closure,
1518 GValue *return_value,
1521 gpointer marshal_data,
1525 typedef gboolean (*GMarshalFunc_BOOLEAN__FLAGS) (gpointer instance,
1528 GCClosure *cc = (GCClosure*) closure;
1529 gpointer data1, data2;
1530 GMarshalFunc_BOOLEAN__FLAGS callback;
1535 g_return_if_fail (return_value != NULL);
1537 va_copy (args_copy, args);
1538 arg0 = (guint) va_arg (args_copy, guint);
1541 if (G_CCLOSURE_SWAP_DATA (closure))
1543 data1 = closure->data;
1549 data2 = closure->data;
1551 callback = (GMarshalFunc_BOOLEAN__FLAGS) (marshal_data ? marshal_data : cc->callback);
1553 v_return = callback (data1,
1557 g_value_set_boolean (return_value, v_return);
1561 /* STRING:OBJECT,POINTER (./gmarshal.list:28) */
1563 g_cclosure_marshal_STRING__OBJECT_POINTER (GClosure *closure,
1564 GValue *return_value G_GNUC_UNUSED,
1565 guint n_param_values,
1566 const GValue *param_values,
1567 gpointer invocation_hint G_GNUC_UNUSED,
1568 gpointer marshal_data)
1570 typedef gchar* (*GMarshalFunc_STRING__OBJECT_POINTER) (gpointer data1,
1574 register GMarshalFunc_STRING__OBJECT_POINTER callback;
1575 register GCClosure *cc = (GCClosure*) closure;
1576 register gpointer data1, data2;
1579 g_return_if_fail (return_value != NULL);
1580 g_return_if_fail (n_param_values == 3);
1582 if (G_CCLOSURE_SWAP_DATA (closure))
1584 data1 = closure->data;
1585 data2 = g_value_peek_pointer (param_values + 0);
1589 data1 = g_value_peek_pointer (param_values + 0);
1590 data2 = closure->data;
1592 callback = (GMarshalFunc_STRING__OBJECT_POINTER) (marshal_data ? marshal_data : cc->callback);
1594 v_return = callback (data1,
1595 g_marshal_value_peek_object (param_values + 1),
1596 g_marshal_value_peek_pointer (param_values + 2),
1599 g_value_take_string (return_value, v_return);
1602 g_cclosure_marshal_STRING__OBJECT_POINTERv (GClosure *closure,
1603 GValue *return_value,
1606 gpointer marshal_data,
1610 typedef gchar* (*GMarshalFunc_STRING__OBJECT_POINTER) (gpointer instance,
1614 GCClosure *cc = (GCClosure*) closure;
1615 gpointer data1, data2;
1616 GMarshalFunc_STRING__OBJECT_POINTER callback;
1622 g_return_if_fail (return_value != NULL);
1624 va_copy (args_copy, args);
1625 arg0 = (gpointer) va_arg (args_copy, gpointer);
1627 arg0 = g_object_ref (arg0);
1628 arg1 = (gpointer) va_arg (args_copy, gpointer);
1631 if (G_CCLOSURE_SWAP_DATA (closure))
1633 data1 = closure->data;
1639 data2 = closure->data;
1641 callback = (GMarshalFunc_STRING__OBJECT_POINTER) (marshal_data ? marshal_data : cc->callback);
1643 v_return = callback (data1,
1648 g_object_unref (arg0);
1650 g_value_take_string (return_value, v_return);
1654 /* BOOL:BOXED,BOXED (./gmarshal.list:29) */
1656 g_cclosure_marshal_BOOLEAN__BOXED_BOXED (GClosure *closure,
1657 GValue *return_value G_GNUC_UNUSED,
1658 guint n_param_values,
1659 const GValue *param_values,
1660 gpointer invocation_hint G_GNUC_UNUSED,
1661 gpointer marshal_data)
1663 typedef gboolean (*GMarshalFunc_BOOLEAN__BOXED_BOXED) (gpointer data1,
1667 register GMarshalFunc_BOOLEAN__BOXED_BOXED callback;
1668 register GCClosure *cc = (GCClosure*) closure;
1669 register gpointer data1, data2;
1672 g_return_if_fail (return_value != NULL);
1673 g_return_if_fail (n_param_values == 3);
1675 if (G_CCLOSURE_SWAP_DATA (closure))
1677 data1 = closure->data;
1678 data2 = g_value_peek_pointer (param_values + 0);
1682 data1 = g_value_peek_pointer (param_values + 0);
1683 data2 = closure->data;
1685 callback = (GMarshalFunc_BOOLEAN__BOXED_BOXED) (marshal_data ? marshal_data : cc->callback);
1687 v_return = callback (data1,
1688 g_marshal_value_peek_boxed (param_values + 1),
1689 g_marshal_value_peek_boxed (param_values + 2),
1692 g_value_set_boolean (return_value, v_return);
1695 g_cclosure_marshal_BOOLEAN__BOXED_BOXEDv (GClosure *closure,
1696 GValue *return_value,
1699 gpointer marshal_data,
1703 typedef gboolean (*GMarshalFunc_BOOLEAN__BOXED_BOXED) (gpointer instance,
1707 GCClosure *cc = (GCClosure*) closure;
1708 gpointer data1, data2;
1709 GMarshalFunc_BOOLEAN__BOXED_BOXED callback;
1715 g_return_if_fail (return_value != NULL);
1717 va_copy (args_copy, args);
1718 arg0 = (gpointer) va_arg (args_copy, gpointer);
1719 if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
1720 arg0 = g_boxed_copy (param_types[0] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg0);
1721 arg1 = (gpointer) va_arg (args_copy, gpointer);
1722 if ((param_types[1] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg1 != NULL)
1723 arg1 = g_boxed_copy (param_types[1] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg1);
1726 if (G_CCLOSURE_SWAP_DATA (closure))
1728 data1 = closure->data;
1734 data2 = closure->data;
1736 callback = (GMarshalFunc_BOOLEAN__BOXED_BOXED) (marshal_data ? marshal_data : cc->callback);
1738 v_return = callback (data1,
1742 if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
1743 g_boxed_free (param_types[0] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg0);
1744 if ((param_types[1] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg1 != NULL)
1745 g_boxed_free (param_types[1] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg1);
1747 g_value_set_boolean (return_value, v_return);