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: STRING, BOOLEAN (../../libgimp/gimpuimarshal.list:25) */
51 /* Prototype for -Wmissing-prototypes */
52 G_BEGIN_DECLS
53 extern
54 void _gimpui_marshal_VOID__STRING_BOOLEAN (GClosure     *closure,
55                                            GValue       *return_value,
56                                            guint         n_param_values,
57                                            const GValue *param_values,
58                                            gpointer      invocation_hint,
59                                            gpointer      marshal_data);
60 G_END_DECLS
61 void
_gimpui_marshal_VOID__STRING_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)62 _gimpui_marshal_VOID__STRING_BOOLEAN (GClosure     *closure,
63                                       GValue       *return_value G_GNUC_UNUSED,
64                                       guint         n_param_values,
65                                       const GValue *param_values,
66                                       gpointer      invocation_hint G_GNUC_UNUSED,
67                                       gpointer      marshal_data)
68 {
69   typedef void (*GMarshalFunc_VOID__STRING_BOOLEAN) (gpointer data1,
70                                                      gpointer arg1,
71                                                      gboolean arg2,
72                                                      gpointer data2);
73   GCClosure *cc = (GCClosure *) closure;
74   gpointer data1, data2;
75   GMarshalFunc_VOID__STRING_BOOLEAN callback;
76 
77   g_return_if_fail (n_param_values == 3);
78 
79   if (G_CCLOSURE_SWAP_DATA (closure))
80     {
81       data1 = closure->data;
82       data2 = g_value_peek_pointer (param_values + 0);
83     }
84   else
85     {
86       data1 = g_value_peek_pointer (param_values + 0);
87       data2 = closure->data;
88     }
89   callback = (GMarshalFunc_VOID__STRING_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
90 
91   callback (data1,
92             g_marshal_value_peek_string (param_values + 1),
93             g_marshal_value_peek_boolean (param_values + 2),
94             data2);
95 }
96 
97 /* VOID: STRING, INT, POINTER, BOOLEAN (../../libgimp/gimpuimarshal.list:26) */
98 /* Prototype for -Wmissing-prototypes */
99 G_BEGIN_DECLS
100 extern
101 void _gimpui_marshal_VOID__STRING_INT_POINTER_BOOLEAN (GClosure     *closure,
102                                                        GValue       *return_value,
103                                                        guint         n_param_values,
104                                                        const GValue *param_values,
105                                                        gpointer      invocation_hint,
106                                                        gpointer      marshal_data);
107 G_END_DECLS
108 void
_gimpui_marshal_VOID__STRING_INT_POINTER_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)109 _gimpui_marshal_VOID__STRING_INT_POINTER_BOOLEAN (GClosure     *closure,
110                                                   GValue       *return_value G_GNUC_UNUSED,
111                                                   guint         n_param_values,
112                                                   const GValue *param_values,
113                                                   gpointer      invocation_hint G_GNUC_UNUSED,
114                                                   gpointer      marshal_data)
115 {
116   typedef void (*GMarshalFunc_VOID__STRING_INT_POINTER_BOOLEAN) (gpointer data1,
117                                                                  gpointer arg1,
118                                                                  gint arg2,
119                                                                  gpointer arg3,
120                                                                  gboolean arg4,
121                                                                  gpointer data2);
122   GCClosure *cc = (GCClosure *) closure;
123   gpointer data1, data2;
124   GMarshalFunc_VOID__STRING_INT_POINTER_BOOLEAN callback;
125 
126   g_return_if_fail (n_param_values == 5);
127 
128   if (G_CCLOSURE_SWAP_DATA (closure))
129     {
130       data1 = closure->data;
131       data2 = g_value_peek_pointer (param_values + 0);
132     }
133   else
134     {
135       data1 = g_value_peek_pointer (param_values + 0);
136       data2 = closure->data;
137     }
138   callback = (GMarshalFunc_VOID__STRING_INT_POINTER_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
139 
140   callback (data1,
141             g_marshal_value_peek_string (param_values + 1),
142             g_marshal_value_peek_int (param_values + 2),
143             g_marshal_value_peek_pointer (param_values + 3),
144             g_marshal_value_peek_boolean (param_values + 4),
145             data2);
146 }
147 
148 /* VOID: STRING, INT, INT, INT, POINTER, BOOLEAN (../../libgimp/gimpuimarshal.list:27) */
149 /* Prototype for -Wmissing-prototypes */
150 G_BEGIN_DECLS
151 extern
152 void _gimpui_marshal_VOID__STRING_INT_INT_INT_POINTER_BOOLEAN (GClosure     *closure,
153                                                                GValue       *return_value,
154                                                                guint         n_param_values,
155                                                                const GValue *param_values,
156                                                                gpointer      invocation_hint,
157                                                                gpointer      marshal_data);
158 G_END_DECLS
159 void
_gimpui_marshal_VOID__STRING_INT_INT_INT_POINTER_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)160 _gimpui_marshal_VOID__STRING_INT_INT_INT_POINTER_BOOLEAN (GClosure     *closure,
161                                                           GValue       *return_value G_GNUC_UNUSED,
162                                                           guint         n_param_values,
163                                                           const GValue *param_values,
164                                                           gpointer      invocation_hint G_GNUC_UNUSED,
165                                                           gpointer      marshal_data)
166 {
167   typedef void (*GMarshalFunc_VOID__STRING_INT_INT_INT_POINTER_BOOLEAN) (gpointer data1,
168                                                                          gpointer arg1,
169                                                                          gint arg2,
170                                                                          gint arg3,
171                                                                          gint arg4,
172                                                                          gpointer arg5,
173                                                                          gboolean arg6,
174                                                                          gpointer data2);
175   GCClosure *cc = (GCClosure *) closure;
176   gpointer data1, data2;
177   GMarshalFunc_VOID__STRING_INT_INT_INT_POINTER_BOOLEAN callback;
178 
179   g_return_if_fail (n_param_values == 7);
180 
181   if (G_CCLOSURE_SWAP_DATA (closure))
182     {
183       data1 = closure->data;
184       data2 = g_value_peek_pointer (param_values + 0);
185     }
186   else
187     {
188       data1 = g_value_peek_pointer (param_values + 0);
189       data2 = closure->data;
190     }
191   callback = (GMarshalFunc_VOID__STRING_INT_INT_INT_POINTER_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
192 
193   callback (data1,
194             g_marshal_value_peek_string (param_values + 1),
195             g_marshal_value_peek_int (param_values + 2),
196             g_marshal_value_peek_int (param_values + 3),
197             g_marshal_value_peek_int (param_values + 4),
198             g_marshal_value_peek_pointer (param_values + 5),
199             g_marshal_value_peek_boolean (param_values + 6),
200             data2);
201 }
202 
203 /* VOID: STRING, DOUBLE, INT, INT, INT, INT, POINTER, BOOLEAN (../../libgimp/gimpuimarshal.list:28) */
204 /* Prototype for -Wmissing-prototypes */
205 G_BEGIN_DECLS
206 extern
207 void _gimpui_marshal_VOID__STRING_DOUBLE_INT_INT_INT_INT_POINTER_BOOLEAN (GClosure     *closure,
208                                                                           GValue       *return_value,
209                                                                           guint         n_param_values,
210                                                                           const GValue *param_values,
211                                                                           gpointer      invocation_hint,
212                                                                           gpointer      marshal_data);
213 G_END_DECLS
214 void
_gimpui_marshal_VOID__STRING_DOUBLE_INT_INT_INT_INT_POINTER_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)215 _gimpui_marshal_VOID__STRING_DOUBLE_INT_INT_INT_INT_POINTER_BOOLEAN (GClosure     *closure,
216                                                                      GValue       *return_value G_GNUC_UNUSED,
217                                                                      guint         n_param_values,
218                                                                      const GValue *param_values,
219                                                                      gpointer      invocation_hint G_GNUC_UNUSED,
220                                                                      gpointer      marshal_data)
221 {
222   typedef void (*GMarshalFunc_VOID__STRING_DOUBLE_INT_INT_INT_INT_POINTER_BOOLEAN) (gpointer data1,
223                                                                                     gpointer arg1,
224                                                                                     gdouble arg2,
225                                                                                     gint arg3,
226                                                                                     gint arg4,
227                                                                                     gint arg5,
228                                                                                     gint arg6,
229                                                                                     gpointer arg7,
230                                                                                     gboolean arg8,
231                                                                                     gpointer data2);
232   GCClosure *cc = (GCClosure *) closure;
233   gpointer data1, data2;
234   GMarshalFunc_VOID__STRING_DOUBLE_INT_INT_INT_INT_POINTER_BOOLEAN callback;
235 
236   g_return_if_fail (n_param_values == 9);
237 
238   if (G_CCLOSURE_SWAP_DATA (closure))
239     {
240       data1 = closure->data;
241       data2 = g_value_peek_pointer (param_values + 0);
242     }
243   else
244     {
245       data1 = g_value_peek_pointer (param_values + 0);
246       data2 = closure->data;
247     }
248   callback = (GMarshalFunc_VOID__STRING_DOUBLE_INT_INT_INT_INT_POINTER_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
249 
250   callback (data1,
251             g_marshal_value_peek_string (param_values + 1),
252             g_marshal_value_peek_double (param_values + 2),
253             g_marshal_value_peek_int (param_values + 3),
254             g_marshal_value_peek_int (param_values + 4),
255             g_marshal_value_peek_int (param_values + 5),
256             g_marshal_value_peek_int (param_values + 6),
257             g_marshal_value_peek_pointer (param_values + 7),
258             g_marshal_value_peek_boolean (param_values + 8),
259             data2);
260 }
261 
262