1
2 #include <glib-object.h>
3
4
5 #ifdef G_ENABLE_DEBUG
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 #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 #endif /* !G_ENABLE_DEBUG */
48
49
50 /* VOID:VOID (syl-marshal.list:1) */
51
52 /* VOID:POINTER,STRING,UINT (syl-marshal.list:2) */
53 void
syl_marshal_VOID__POINTER_STRING_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)54 syl_marshal_VOID__POINTER_STRING_UINT (GClosure *closure,
55 GValue *return_value G_GNUC_UNUSED,
56 guint n_param_values,
57 const GValue *param_values,
58 gpointer invocation_hint G_GNUC_UNUSED,
59 gpointer marshal_data)
60 {
61 typedef void (*GMarshalFunc_VOID__POINTER_STRING_UINT) (gpointer data1,
62 gpointer arg_1,
63 gpointer arg_2,
64 guint arg_3,
65 gpointer data2);
66 register GMarshalFunc_VOID__POINTER_STRING_UINT callback;
67 register GCClosure *cc = (GCClosure*) closure;
68 register gpointer data1, data2;
69
70 g_return_if_fail (n_param_values == 4);
71
72 if (G_CCLOSURE_SWAP_DATA (closure))
73 {
74 data1 = closure->data;
75 data2 = g_value_peek_pointer (param_values + 0);
76 }
77 else
78 {
79 data1 = g_value_peek_pointer (param_values + 0);
80 data2 = closure->data;
81 }
82 callback = (GMarshalFunc_VOID__POINTER_STRING_UINT) (marshal_data ? marshal_data : cc->callback);
83
84 callback (data1,
85 g_marshal_value_peek_pointer (param_values + 1),
86 g_marshal_value_peek_string (param_values + 2),
87 g_marshal_value_peek_uint (param_values + 3),
88 data2);
89 }
90
91 /* VOID:POINTER (syl-marshal.list:3) */
92
93 /* VOID:POINTER,STRING,STRING (syl-marshal.list:4) */
94 void
syl_marshal_VOID__POINTER_STRING_STRING(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)95 syl_marshal_VOID__POINTER_STRING_STRING (GClosure *closure,
96 GValue *return_value G_GNUC_UNUSED,
97 guint n_param_values,
98 const GValue *param_values,
99 gpointer invocation_hint G_GNUC_UNUSED,
100 gpointer marshal_data)
101 {
102 typedef void (*GMarshalFunc_VOID__POINTER_STRING_STRING) (gpointer data1,
103 gpointer arg_1,
104 gpointer arg_2,
105 gpointer arg_3,
106 gpointer data2);
107 register GMarshalFunc_VOID__POINTER_STRING_STRING callback;
108 register GCClosure *cc = (GCClosure*) closure;
109 register gpointer data1, data2;
110
111 g_return_if_fail (n_param_values == 4);
112
113 if (G_CCLOSURE_SWAP_DATA (closure))
114 {
115 data1 = closure->data;
116 data2 = g_value_peek_pointer (param_values + 0);
117 }
118 else
119 {
120 data1 = g_value_peek_pointer (param_values + 0);
121 data2 = closure->data;
122 }
123 callback = (GMarshalFunc_VOID__POINTER_STRING_STRING) (marshal_data ? marshal_data : cc->callback);
124
125 callback (data1,
126 g_marshal_value_peek_pointer (param_values + 1),
127 g_marshal_value_peek_string (param_values + 2),
128 g_marshal_value_peek_string (param_values + 3),
129 data2);
130 }
131
132