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: ENUM (../../libgimpwidgets/gimpwidgetsmarshal.list:25) */
51 #define _gimp_widgets_marshal_VOID__ENUM	g_cclosure_marshal_VOID__ENUM
52 
53 /* VOID: ENUM, BOOLEAN (../../libgimpwidgets/gimpwidgetsmarshal.list:26) */
54 /* Prototype for -Wmissing-prototypes */
55 G_BEGIN_DECLS
56 extern
57 void _gimp_widgets_marshal_VOID__ENUM_BOOLEAN (GClosure     *closure,
58                                                GValue       *return_value,
59                                                guint         n_param_values,
60                                                const GValue *param_values,
61                                                gpointer      invocation_hint,
62                                                gpointer      marshal_data);
63 G_END_DECLS
64 void
_gimp_widgets_marshal_VOID__ENUM_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)65 _gimp_widgets_marshal_VOID__ENUM_BOOLEAN (GClosure     *closure,
66                                           GValue       *return_value G_GNUC_UNUSED,
67                                           guint         n_param_values,
68                                           const GValue *param_values,
69                                           gpointer      invocation_hint G_GNUC_UNUSED,
70                                           gpointer      marshal_data)
71 {
72   typedef void (*GMarshalFunc_VOID__ENUM_BOOLEAN) (gpointer data1,
73                                                    gint arg1,
74                                                    gboolean arg2,
75                                                    gpointer data2);
76   GCClosure *cc = (GCClosure *) closure;
77   gpointer data1, data2;
78   GMarshalFunc_VOID__ENUM_BOOLEAN callback;
79 
80   g_return_if_fail (n_param_values == 3);
81 
82   if (G_CCLOSURE_SWAP_DATA (closure))
83     {
84       data1 = closure->data;
85       data2 = g_value_peek_pointer (param_values + 0);
86     }
87   else
88     {
89       data1 = g_value_peek_pointer (param_values + 0);
90       data2 = closure->data;
91     }
92   callback = (GMarshalFunc_VOID__ENUM_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
93 
94   callback (data1,
95             g_marshal_value_peek_enum (param_values + 1),
96             g_marshal_value_peek_boolean (param_values + 2),
97             data2);
98 }
99 
100 /* VOID: INT, INT (../../libgimpwidgets/gimpwidgetsmarshal.list:27) */
101 /* Prototype for -Wmissing-prototypes */
102 G_BEGIN_DECLS
103 extern
104 void _gimp_widgets_marshal_VOID__INT_INT (GClosure     *closure,
105                                           GValue       *return_value,
106                                           guint         n_param_values,
107                                           const GValue *param_values,
108                                           gpointer      invocation_hint,
109                                           gpointer      marshal_data);
110 G_END_DECLS
111 void
_gimp_widgets_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)112 _gimp_widgets_marshal_VOID__INT_INT (GClosure     *closure,
113                                      GValue       *return_value G_GNUC_UNUSED,
114                                      guint         n_param_values,
115                                      const GValue *param_values,
116                                      gpointer      invocation_hint G_GNUC_UNUSED,
117                                      gpointer      marshal_data)
118 {
119   typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer data1,
120                                               gint arg1,
121                                               gint arg2,
122                                               gpointer data2);
123   GCClosure *cc = (GCClosure *) closure;
124   gpointer data1, data2;
125   GMarshalFunc_VOID__INT_INT callback;
126 
127   g_return_if_fail (n_param_values == 3);
128 
129   if (G_CCLOSURE_SWAP_DATA (closure))
130     {
131       data1 = closure->data;
132       data2 = g_value_peek_pointer (param_values + 0);
133     }
134   else
135     {
136       data1 = g_value_peek_pointer (param_values + 0);
137       data2 = closure->data;
138     }
139   callback = (GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback);
140 
141   callback (data1,
142             g_marshal_value_peek_int (param_values + 1),
143             g_marshal_value_peek_int (param_values + 2),
144             data2);
145 }
146 
147 /* VOID: OBJECT (../../libgimpwidgets/gimpwidgetsmarshal.list:28) */
148 #define _gimp_widgets_marshal_VOID__OBJECT	g_cclosure_marshal_VOID__OBJECT
149 
150 /* VOID: OBJECT, INT (../../libgimpwidgets/gimpwidgetsmarshal.list:29) */
151 /* Prototype for -Wmissing-prototypes */
152 G_BEGIN_DECLS
153 extern
154 void _gimp_widgets_marshal_VOID__OBJECT_INT (GClosure     *closure,
155                                              GValue       *return_value,
156                                              guint         n_param_values,
157                                              const GValue *param_values,
158                                              gpointer      invocation_hint,
159                                              gpointer      marshal_data);
160 G_END_DECLS
161 void
_gimp_widgets_marshal_VOID__OBJECT_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)162 _gimp_widgets_marshal_VOID__OBJECT_INT (GClosure     *closure,
163                                         GValue       *return_value G_GNUC_UNUSED,
164                                         guint         n_param_values,
165                                         const GValue *param_values,
166                                         gpointer      invocation_hint G_GNUC_UNUSED,
167                                         gpointer      marshal_data)
168 {
169   typedef void (*GMarshalFunc_VOID__OBJECT_INT) (gpointer data1,
170                                                  gpointer arg1,
171                                                  gint arg2,
172                                                  gpointer data2);
173   GCClosure *cc = (GCClosure *) closure;
174   gpointer data1, data2;
175   GMarshalFunc_VOID__OBJECT_INT callback;
176 
177   g_return_if_fail (n_param_values == 3);
178 
179   if (G_CCLOSURE_SWAP_DATA (closure))
180     {
181       data1 = closure->data;
182       data2 = g_value_peek_pointer (param_values + 0);
183     }
184   else
185     {
186       data1 = g_value_peek_pointer (param_values + 0);
187       data2 = closure->data;
188     }
189   callback = (GMarshalFunc_VOID__OBJECT_INT) (marshal_data ? marshal_data : cc->callback);
190 
191   callback (data1,
192             g_marshal_value_peek_object (param_values + 1),
193             g_marshal_value_peek_int (param_values + 2),
194             data2);
195 }
196 
197 /* VOID: POINTER, POINTER (../../libgimpwidgets/gimpwidgetsmarshal.list:30) */
198 /* Prototype for -Wmissing-prototypes */
199 G_BEGIN_DECLS
200 extern
201 void _gimp_widgets_marshal_VOID__POINTER_POINTER (GClosure     *closure,
202                                                   GValue       *return_value,
203                                                   guint         n_param_values,
204                                                   const GValue *param_values,
205                                                   gpointer      invocation_hint,
206                                                   gpointer      marshal_data);
207 G_END_DECLS
208 void
_gimp_widgets_marshal_VOID__POINTER_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)209 _gimp_widgets_marshal_VOID__POINTER_POINTER (GClosure     *closure,
210                                              GValue       *return_value G_GNUC_UNUSED,
211                                              guint         n_param_values,
212                                              const GValue *param_values,
213                                              gpointer      invocation_hint G_GNUC_UNUSED,
214                                              gpointer      marshal_data)
215 {
216   typedef void (*GMarshalFunc_VOID__POINTER_POINTER) (gpointer data1,
217                                                       gpointer arg1,
218                                                       gpointer arg2,
219                                                       gpointer data2);
220   GCClosure *cc = (GCClosure *) closure;
221   gpointer data1, data2;
222   GMarshalFunc_VOID__POINTER_POINTER callback;
223 
224   g_return_if_fail (n_param_values == 3);
225 
226   if (G_CCLOSURE_SWAP_DATA (closure))
227     {
228       data1 = closure->data;
229       data2 = g_value_peek_pointer (param_values + 0);
230     }
231   else
232     {
233       data1 = g_value_peek_pointer (param_values + 0);
234       data2 = closure->data;
235     }
236   callback = (GMarshalFunc_VOID__POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
237 
238   callback (data1,
239             g_marshal_value_peek_pointer (param_values + 1),
240             g_marshal_value_peek_pointer (param_values + 2),
241             data2);
242 }
243 
244 /* VOID: STRING, FLAGS (../../libgimpwidgets/gimpwidgetsmarshal.list:31) */
245 /* Prototype for -Wmissing-prototypes */
246 G_BEGIN_DECLS
247 extern
248 void _gimp_widgets_marshal_VOID__STRING_FLAGS (GClosure     *closure,
249                                                GValue       *return_value,
250                                                guint         n_param_values,
251                                                const GValue *param_values,
252                                                gpointer      invocation_hint,
253                                                gpointer      marshal_data);
254 G_END_DECLS
255 void
_gimp_widgets_marshal_VOID__STRING_FLAGS(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)256 _gimp_widgets_marshal_VOID__STRING_FLAGS (GClosure     *closure,
257                                           GValue       *return_value G_GNUC_UNUSED,
258                                           guint         n_param_values,
259                                           const GValue *param_values,
260                                           gpointer      invocation_hint G_GNUC_UNUSED,
261                                           gpointer      marshal_data)
262 {
263   typedef void (*GMarshalFunc_VOID__STRING_FLAGS) (gpointer data1,
264                                                    gpointer arg1,
265                                                    guint arg2,
266                                                    gpointer data2);
267   GCClosure *cc = (GCClosure *) closure;
268   gpointer data1, data2;
269   GMarshalFunc_VOID__STRING_FLAGS callback;
270 
271   g_return_if_fail (n_param_values == 3);
272 
273   if (G_CCLOSURE_SWAP_DATA (closure))
274     {
275       data1 = closure->data;
276       data2 = g_value_peek_pointer (param_values + 0);
277     }
278   else
279     {
280       data1 = g_value_peek_pointer (param_values + 0);
281       data2 = closure->data;
282     }
283   callback = (GMarshalFunc_VOID__STRING_FLAGS) (marshal_data ? marshal_data : cc->callback);
284 
285   callback (data1,
286             g_marshal_value_peek_string (param_values + 1),
287             g_marshal_value_peek_flags (param_values + 2),
288             data2);
289 }
290 
291 /* VOID: STRING, INT (../../libgimpwidgets/gimpwidgetsmarshal.list:32) */
292 /* Prototype for -Wmissing-prototypes */
293 G_BEGIN_DECLS
294 extern
295 void _gimp_widgets_marshal_VOID__STRING_INT (GClosure     *closure,
296                                              GValue       *return_value,
297                                              guint         n_param_values,
298                                              const GValue *param_values,
299                                              gpointer      invocation_hint,
300                                              gpointer      marshal_data);
301 G_END_DECLS
302 void
_gimp_widgets_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)303 _gimp_widgets_marshal_VOID__STRING_INT (GClosure     *closure,
304                                         GValue       *return_value G_GNUC_UNUSED,
305                                         guint         n_param_values,
306                                         const GValue *param_values,
307                                         gpointer      invocation_hint G_GNUC_UNUSED,
308                                         gpointer      marshal_data)
309 {
310   typedef void (*GMarshalFunc_VOID__STRING_INT) (gpointer data1,
311                                                  gpointer arg1,
312                                                  gint arg2,
313                                                  gpointer data2);
314   GCClosure *cc = (GCClosure *) closure;
315   gpointer data1, data2;
316   GMarshalFunc_VOID__STRING_INT callback;
317 
318   g_return_if_fail (n_param_values == 3);
319 
320   if (G_CCLOSURE_SWAP_DATA (closure))
321     {
322       data1 = closure->data;
323       data2 = g_value_peek_pointer (param_values + 0);
324     }
325   else
326     {
327       data1 = g_value_peek_pointer (param_values + 0);
328       data2 = closure->data;
329     }
330   callback = (GMarshalFunc_VOID__STRING_INT) (marshal_data ? marshal_data : cc->callback);
331 
332   callback (data1,
333             g_marshal_value_peek_string (param_values + 1),
334             g_marshal_value_peek_int (param_values + 2),
335             data2);
336 }
337 
338 /* VOID: DOUBLE, DOUBLE (../../libgimpwidgets/gimpwidgetsmarshal.list:33) */
339 /* Prototype for -Wmissing-prototypes */
340 G_BEGIN_DECLS
341 extern
342 void _gimp_widgets_marshal_VOID__DOUBLE_DOUBLE (GClosure     *closure,
343                                                 GValue       *return_value,
344                                                 guint         n_param_values,
345                                                 const GValue *param_values,
346                                                 gpointer      invocation_hint,
347                                                 gpointer      marshal_data);
348 G_END_DECLS
349 void
_gimp_widgets_marshal_VOID__DOUBLE_DOUBLE(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)350 _gimp_widgets_marshal_VOID__DOUBLE_DOUBLE (GClosure     *closure,
351                                            GValue       *return_value G_GNUC_UNUSED,
352                                            guint         n_param_values,
353                                            const GValue *param_values,
354                                            gpointer      invocation_hint G_GNUC_UNUSED,
355                                            gpointer      marshal_data)
356 {
357   typedef void (*GMarshalFunc_VOID__DOUBLE_DOUBLE) (gpointer data1,
358                                                     gdouble arg1,
359                                                     gdouble arg2,
360                                                     gpointer data2);
361   GCClosure *cc = (GCClosure *) closure;
362   gpointer data1, data2;
363   GMarshalFunc_VOID__DOUBLE_DOUBLE callback;
364 
365   g_return_if_fail (n_param_values == 3);
366 
367   if (G_CCLOSURE_SWAP_DATA (closure))
368     {
369       data1 = closure->data;
370       data2 = g_value_peek_pointer (param_values + 0);
371     }
372   else
373     {
374       data1 = g_value_peek_pointer (param_values + 0);
375       data2 = closure->data;
376     }
377   callback = (GMarshalFunc_VOID__DOUBLE_DOUBLE) (marshal_data ? marshal_data : cc->callback);
378 
379   callback (data1,
380             g_marshal_value_peek_double (param_values + 1),
381             g_marshal_value_peek_double (param_values + 2),
382             data2);
383 }
384 
385 /* BOOLEAN: POINTER (../../libgimpwidgets/gimpwidgetsmarshal.list:35) */
386 /* Prototype for -Wmissing-prototypes */
387 G_BEGIN_DECLS
388 extern
389 void _gimp_widgets_marshal_BOOLEAN__POINTER (GClosure     *closure,
390                                              GValue       *return_value,
391                                              guint         n_param_values,
392                                              const GValue *param_values,
393                                              gpointer      invocation_hint,
394                                              gpointer      marshal_data);
395 G_END_DECLS
396 void
_gimp_widgets_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)397 _gimp_widgets_marshal_BOOLEAN__POINTER (GClosure     *closure,
398                                         GValue       *return_value,
399                                         guint         n_param_values,
400                                         const GValue *param_values,
401                                         gpointer      invocation_hint G_GNUC_UNUSED,
402                                         gpointer      marshal_data)
403 {
404   typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER) (gpointer data1,
405                                                      gpointer arg1,
406                                                      gpointer data2);
407   GCClosure *cc = (GCClosure *) closure;
408   gpointer data1, data2;
409   GMarshalFunc_BOOLEAN__POINTER callback;
410   gboolean v_return;
411 
412   g_return_if_fail (return_value != NULL);
413   g_return_if_fail (n_param_values == 2);
414 
415   if (G_CCLOSURE_SWAP_DATA (closure))
416     {
417       data1 = closure->data;
418       data2 = g_value_peek_pointer (param_values + 0);
419     }
420   else
421     {
422       data1 = g_value_peek_pointer (param_values + 0);
423       data2 = closure->data;
424     }
425   callback = (GMarshalFunc_BOOLEAN__POINTER) (marshal_data ? marshal_data : cc->callback);
426 
427   v_return = callback (data1,
428                        g_marshal_value_peek_pointer (param_values + 1),
429                        data2);
430 
431   g_value_set_boolean (return_value, v_return);
432 }
433 
434