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_schar (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
29 */
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 */
50
51
52 /* BOOL:INT,INT,UINT,UINT,POINTER (gtk/fm-gtk-marshal.list:1) */
53 void
fm_marshal_BOOLEAN__INT_INT_UINT_UINT_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)54 fm_marshal_BOOLEAN__INT_INT_UINT_UINT_POINTER (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 gboolean (*GMarshalFunc_BOOLEAN__INT_INT_UINT_UINT_POINTER) (gpointer data1,
62 gint arg_1,
63 gint arg_2,
64 guint arg_3,
65 guint arg_4,
66 gpointer arg_5,
67 gpointer data2);
68 GMarshalFunc_BOOLEAN__INT_INT_UINT_UINT_POINTER callback;
69 GCClosure *cc = (GCClosure*) closure;
70 gpointer data1, data2;
71 gboolean v_return;
72
73 g_return_if_fail (return_value != NULL);
74 g_return_if_fail (n_param_values == 6);
75
76 if (G_CCLOSURE_SWAP_DATA (closure))
77 {
78 data1 = closure->data;
79 data2 = g_value_peek_pointer (param_values + 0);
80 }
81 else
82 {
83 data1 = g_value_peek_pointer (param_values + 0);
84 data2 = closure->data;
85 }
86 callback = (GMarshalFunc_BOOLEAN__INT_INT_UINT_UINT_POINTER) (marshal_data ? marshal_data : cc->callback);
87
88 v_return = callback (data1,
89 g_marshal_value_peek_int (param_values + 1),
90 g_marshal_value_peek_int (param_values + 2),
91 g_marshal_value_peek_uint (param_values + 3),
92 g_marshal_value_peek_uint (param_values + 4),
93 g_marshal_value_peek_pointer (param_values + 5),
94 data2);
95
96 g_value_set_boolean (return_value, v_return);
97 }
98
99 /* VOID:BOXED,BOXED,POINTER (gtk/fm-gtk-marshal.list:2) */
100 void
fm_marshal_VOID__BOXED_BOXED_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)101 fm_marshal_VOID__BOXED_BOXED_POINTER (GClosure *closure,
102 GValue *return_value G_GNUC_UNUSED,
103 guint n_param_values,
104 const GValue *param_values,
105 gpointer invocation_hint G_GNUC_UNUSED,
106 gpointer marshal_data)
107 {
108 typedef void (*GMarshalFunc_VOID__BOXED_BOXED_POINTER) (gpointer data1,
109 gpointer arg_1,
110 gpointer arg_2,
111 gpointer arg_3,
112 gpointer data2);
113 GMarshalFunc_VOID__BOXED_BOXED_POINTER callback;
114 GCClosure *cc = (GCClosure*) closure;
115 gpointer data1, data2;
116
117 g_return_if_fail (n_param_values == 4);
118
119 if (G_CCLOSURE_SWAP_DATA (closure))
120 {
121 data1 = closure->data;
122 data2 = g_value_peek_pointer (param_values + 0);
123 }
124 else
125 {
126 data1 = g_value_peek_pointer (param_values + 0);
127 data2 = closure->data;
128 }
129 callback = (GMarshalFunc_VOID__BOXED_BOXED_POINTER) (marshal_data ? marshal_data : cc->callback);
130
131 callback (data1,
132 g_marshal_value_peek_boxed (param_values + 1),
133 g_marshal_value_peek_boxed (param_values + 2),
134 g_marshal_value_peek_pointer (param_values + 3),
135 data2);
136 }
137
138 /* VOID:OBJECT,OBJECT,POINTER (gtk/fm-gtk-marshal.list:3) */
139 void
fm_marshal_VOID__OBJECT_OBJECT_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)140 fm_marshal_VOID__OBJECT_OBJECT_POINTER (GClosure *closure,
141 GValue *return_value G_GNUC_UNUSED,
142 guint n_param_values,
143 const GValue *param_values,
144 gpointer invocation_hint G_GNUC_UNUSED,
145 gpointer marshal_data)
146 {
147 typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_POINTER) (gpointer data1,
148 gpointer arg_1,
149 gpointer arg_2,
150 gpointer arg_3,
151 gpointer data2);
152 GMarshalFunc_VOID__OBJECT_OBJECT_POINTER callback;
153 GCClosure *cc = (GCClosure*) closure;
154 gpointer data1, data2;
155
156 g_return_if_fail (n_param_values == 4);
157
158 if (G_CCLOSURE_SWAP_DATA (closure))
159 {
160 data1 = closure->data;
161 data2 = g_value_peek_pointer (param_values + 0);
162 }
163 else
164 {
165 data1 = g_value_peek_pointer (param_values + 0);
166 data2 = closure->data;
167 }
168 callback = (GMarshalFunc_VOID__OBJECT_OBJECT_POINTER) (marshal_data ? marshal_data : cc->callback);
169
170 callback (data1,
171 g_marshal_value_peek_object (param_values + 1),
172 g_marshal_value_peek_object (param_values + 2),
173 g_marshal_value_peek_pointer (param_values + 3),
174 data2);
175 }
176
177