Stop using glib-genmarshal at build time
[platform/upstream/glib.git] / gobject / gmarshal.c
1 /* Note: This file is no longer generated.  See the comment in gmarshal.list */
2
3 #include "gvalue.h"
4 #include "gclosure.h"
5
6 #ifdef G_ENABLE_DEBUG
7 #define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
8 #define g_marshal_value_peek_char(v)     g_value_get_char (v)
9 #define g_marshal_value_peek_uchar(v)    g_value_get_uchar (v)
10 #define g_marshal_value_peek_int(v)      g_value_get_int (v)
11 #define g_marshal_value_peek_uint(v)     g_value_get_uint (v)
12 #define g_marshal_value_peek_long(v)     g_value_get_long (v)
13 #define g_marshal_value_peek_ulong(v)    g_value_get_ulong (v)
14 #define g_marshal_value_peek_int64(v)    g_value_get_int64 (v)
15 #define g_marshal_value_peek_uint64(v)   g_value_get_uint64 (v)
16 #define g_marshal_value_peek_enum(v)     g_value_get_enum (v)
17 #define g_marshal_value_peek_flags(v)    g_value_get_flags (v)
18 #define g_marshal_value_peek_float(v)    g_value_get_float (v)
19 #define g_marshal_value_peek_double(v)   g_value_get_double (v)
20 #define g_marshal_value_peek_string(v)   (char*) g_value_get_string (v)
21 #define g_marshal_value_peek_param(v)    g_value_get_param (v)
22 #define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
23 #define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
24 #define g_marshal_value_peek_object(v)   g_value_get_object (v)
25 #define g_marshal_value_peek_variant(v)  g_value_get_variant (v)
26 #else /* !G_ENABLE_DEBUG */
27 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
28  *          Do not access GValues directly in your code. Instead, use the
29  *          g_value_get_*() functions
30  */
31 #define g_marshal_value_peek_boolean(v)  (v)->data[0].v_int
32 #define g_marshal_value_peek_char(v)     (v)->data[0].v_int
33 #define g_marshal_value_peek_uchar(v)    (v)->data[0].v_uint
34 #define g_marshal_value_peek_int(v)      (v)->data[0].v_int
35 #define g_marshal_value_peek_uint(v)     (v)->data[0].v_uint
36 #define g_marshal_value_peek_long(v)     (v)->data[0].v_long
37 #define g_marshal_value_peek_ulong(v)    (v)->data[0].v_ulong
38 #define g_marshal_value_peek_int64(v)    (v)->data[0].v_int64
39 #define g_marshal_value_peek_uint64(v)   (v)->data[0].v_uint64
40 #define g_marshal_value_peek_enum(v)     (v)->data[0].v_long
41 #define g_marshal_value_peek_flags(v)    (v)->data[0].v_ulong
42 #define g_marshal_value_peek_float(v)    (v)->data[0].v_float
43 #define g_marshal_value_peek_double(v)   (v)->data[0].v_double
44 #define g_marshal_value_peek_string(v)   (v)->data[0].v_pointer
45 #define g_marshal_value_peek_param(v)    (v)->data[0].v_pointer
46 #define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
47 #define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
48 #define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
49 #define g_marshal_value_peek_variant(v)  (v)->data[0].v_pointer
50 #endif /* !G_ENABLE_DEBUG */
51
52
53 /* VOID:VOID (./gmarshal.list:6) */
54 void
55 g_cclosure_marshal_VOID__VOID (GClosure     *closure,
56                                GValue       *return_value G_GNUC_UNUSED,
57                                guint         n_param_values,
58                                const GValue *param_values,
59                                gpointer      invocation_hint G_GNUC_UNUSED,
60                                gpointer      marshal_data)
61 {
62   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
63                               invocation_hint, marshal_data);
64 }
65
66 /* VOID:BOOLEAN (./gmarshal.list:7) */
67 void
68 g_cclosure_marshal_VOID__BOOLEAN (GClosure     *closure,
69                                   GValue       *return_value G_GNUC_UNUSED,
70                                   guint         n_param_values,
71                                   const GValue *param_values,
72                                   gpointer      invocation_hint G_GNUC_UNUSED,
73                                   gpointer      marshal_data)
74 {
75   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
76                               invocation_hint, marshal_data);
77 }
78
79 /* VOID:CHAR (./gmarshal.list:8) */
80 void
81 g_cclosure_marshal_VOID__CHAR (GClosure     *closure,
82                                GValue       *return_value G_GNUC_UNUSED,
83                                guint         n_param_values,
84                                const GValue *param_values,
85                                gpointer      invocation_hint G_GNUC_UNUSED,
86                                gpointer      marshal_data)
87 {
88   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
89                               invocation_hint, marshal_data);
90 }
91
92 /* VOID:UCHAR (./gmarshal.list:9) */
93 void
94 g_cclosure_marshal_VOID__UCHAR (GClosure     *closure,
95                                 GValue       *return_value G_GNUC_UNUSED,
96                                 guint         n_param_values,
97                                 const GValue *param_values,
98                                 gpointer      invocation_hint G_GNUC_UNUSED,
99                                 gpointer      marshal_data)
100 {
101   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
102                               invocation_hint, marshal_data);
103 }
104
105 /* VOID:INT (./gmarshal.list:10) */
106 void
107 g_cclosure_marshal_VOID__INT (GClosure     *closure,
108                               GValue       *return_value G_GNUC_UNUSED,
109                               guint         n_param_values,
110                               const GValue *param_values,
111                               gpointer      invocation_hint G_GNUC_UNUSED,
112                               gpointer      marshal_data)
113 {
114   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
115                               invocation_hint, marshal_data);
116 }
117
118 /* VOID:UINT (./gmarshal.list:11) */
119 void
120 g_cclosure_marshal_VOID__UINT (GClosure     *closure,
121                                GValue       *return_value G_GNUC_UNUSED,
122                                guint         n_param_values,
123                                const GValue *param_values,
124                                gpointer      invocation_hint G_GNUC_UNUSED,
125                                gpointer      marshal_data)
126 {
127   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
128                               invocation_hint, marshal_data);
129 }
130
131 /* VOID:LONG (./gmarshal.list:12) */
132 void
133 g_cclosure_marshal_VOID__LONG (GClosure     *closure,
134                                GValue       *return_value G_GNUC_UNUSED,
135                                guint         n_param_values,
136                                const GValue *param_values,
137                                gpointer      invocation_hint G_GNUC_UNUSED,
138                                gpointer      marshal_data)
139 {
140   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
141                               invocation_hint, marshal_data);
142 }
143
144 /* VOID:ULONG (./gmarshal.list:13) */
145 void
146 g_cclosure_marshal_VOID__ULONG (GClosure     *closure,
147                                 GValue       *return_value G_GNUC_UNUSED,
148                                 guint         n_param_values,
149                                 const GValue *param_values,
150                                 gpointer      invocation_hint G_GNUC_UNUSED,
151                                 gpointer      marshal_data)
152 {
153   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
154                               invocation_hint, marshal_data);
155 }
156
157 /* VOID:ENUM (./gmarshal.list:14) */
158 void
159 g_cclosure_marshal_VOID__ENUM (GClosure     *closure,
160                                GValue       *return_value G_GNUC_UNUSED,
161                                guint         n_param_values,
162                                const GValue *param_values,
163                                gpointer      invocation_hint G_GNUC_UNUSED,
164                                gpointer      marshal_data)
165 {
166   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
167                               invocation_hint, marshal_data);
168 }
169
170 /* VOID:FLAGS (./gmarshal.list:15) */
171 void
172 g_cclosure_marshal_VOID__FLAGS (GClosure     *closure,
173                                 GValue       *return_value G_GNUC_UNUSED,
174                                 guint         n_param_values,
175                                 const GValue *param_values,
176                                 gpointer      invocation_hint G_GNUC_UNUSED,
177                                 gpointer      marshal_data)
178 {
179   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
180                               invocation_hint, marshal_data);
181 }
182
183 /* VOID:FLOAT (./gmarshal.list:16) */
184 void
185 g_cclosure_marshal_VOID__FLOAT (GClosure     *closure,
186                                 GValue       *return_value G_GNUC_UNUSED,
187                                 guint         n_param_values,
188                                 const GValue *param_values,
189                                 gpointer      invocation_hint G_GNUC_UNUSED,
190                                 gpointer      marshal_data)
191 {
192   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
193                               invocation_hint, marshal_data);
194 }
195
196 /* VOID:DOUBLE (./gmarshal.list:17) */
197 void
198 g_cclosure_marshal_VOID__DOUBLE (GClosure     *closure,
199                                  GValue       *return_value G_GNUC_UNUSED,
200                                  guint         n_param_values,
201                                  const GValue *param_values,
202                                  gpointer      invocation_hint G_GNUC_UNUSED,
203                                  gpointer      marshal_data)
204 {
205   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
206                               invocation_hint, marshal_data);
207 }
208
209 /* VOID:STRING (./gmarshal.list:18) */
210 void
211 g_cclosure_marshal_VOID__STRING (GClosure     *closure,
212                                  GValue       *return_value G_GNUC_UNUSED,
213                                  guint         n_param_values,
214                                  const GValue *param_values,
215                                  gpointer      invocation_hint G_GNUC_UNUSED,
216                                  gpointer      marshal_data)
217 {
218   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
219                               invocation_hint, marshal_data);
220 }
221
222 /* VOID:PARAM (./gmarshal.list:19) */
223 void
224 g_cclosure_marshal_VOID__PARAM (GClosure     *closure,
225                                 GValue       *return_value G_GNUC_UNUSED,
226                                 guint         n_param_values,
227                                 const GValue *param_values,
228                                 gpointer      invocation_hint G_GNUC_UNUSED,
229                                 gpointer      marshal_data)
230 {
231   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
232                               invocation_hint, marshal_data);
233 }
234
235 /* VOID:BOXED (./gmarshal.list:20) */
236 void
237 g_cclosure_marshal_VOID__BOXED (GClosure     *closure,
238                                 GValue       *return_value G_GNUC_UNUSED,
239                                 guint         n_param_values,
240                                 const GValue *param_values,
241                                 gpointer      invocation_hint G_GNUC_UNUSED,
242                                 gpointer      marshal_data)
243 {
244   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
245                               invocation_hint, marshal_data);
246 }
247
248 /* VOID:POINTER (./gmarshal.list:21) */
249 void
250 g_cclosure_marshal_VOID__POINTER (GClosure     *closure,
251                                   GValue       *return_value G_GNUC_UNUSED,
252                                   guint         n_param_values,
253                                   const GValue *param_values,
254                                   gpointer      invocation_hint G_GNUC_UNUSED,
255                                   gpointer      marshal_data)
256 {
257   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
258                               invocation_hint, marshal_data);
259 }
260
261 /* VOID:OBJECT (./gmarshal.list:22) */
262 void
263 g_cclosure_marshal_VOID__OBJECT (GClosure     *closure,
264                                  GValue       *return_value G_GNUC_UNUSED,
265                                  guint         n_param_values,
266                                  const GValue *param_values,
267                                  gpointer      invocation_hint G_GNUC_UNUSED,
268                                  gpointer      marshal_data)
269 {
270   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
271                               invocation_hint, marshal_data);
272 }
273
274 /* VOID:VARIANT (./gmarshal.list:23) */
275 void
276 g_cclosure_marshal_VOID__VARIANT (GClosure     *closure,
277                                   GValue       *return_value G_GNUC_UNUSED,
278                                   guint         n_param_values,
279                                   const GValue *param_values,
280                                   gpointer      invocation_hint G_GNUC_UNUSED,
281                                   gpointer      marshal_data)
282 {
283   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
284                               invocation_hint, marshal_data);
285 }
286
287 /* VOID:UINT,POINTER (./gmarshal.list:26) */
288 void
289 g_cclosure_marshal_VOID__UINT_POINTER (GClosure     *closure,
290                                        GValue       *return_value G_GNUC_UNUSED,
291                                        guint         n_param_values,
292                                        const GValue *param_values,
293                                        gpointer      invocation_hint G_GNUC_UNUSED,
294                                        gpointer      marshal_data)
295 {
296   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
297                               invocation_hint, marshal_data);
298 }
299
300 /* BOOL:FLAGS (./gmarshal.list:27) */
301 void
302 g_cclosure_marshal_BOOLEAN__FLAGS (GClosure     *closure,
303                                    GValue       *return_value G_GNUC_UNUSED,
304                                    guint         n_param_values,
305                                    const GValue *param_values,
306                                    gpointer      invocation_hint G_GNUC_UNUSED,
307                                    gpointer      marshal_data)
308 {
309   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
310                               invocation_hint, marshal_data);
311 }
312
313 /* STRING:OBJECT,POINTER (./gmarshal.list:28) */
314 void
315 g_cclosure_marshal_STRING__OBJECT_POINTER (GClosure     *closure,
316                                            GValue       *return_value G_GNUC_UNUSED,
317                                            guint         n_param_values,
318                                            const GValue *param_values,
319                                            gpointer      invocation_hint G_GNUC_UNUSED,
320                                            gpointer      marshal_data)
321 {
322   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
323                               invocation_hint, marshal_data);
324 }
325
326 /* BOOL:BOXED,BOXED (./gmarshal.list:29) */
327 void
328 g_cclosure_marshal_BOOLEAN__BOXED_BOXED (GClosure     *closure,
329                                          GValue       *return_value G_GNUC_UNUSED,
330                                          guint         n_param_values,
331                                          const GValue *param_values,
332                                          gpointer      invocation_hint G_GNUC_UNUSED,
333                                          gpointer      marshal_data)
334 {
335   g_cclosure_marshal_generic (closure, return_value, n_param_values, param_values,
336                               invocation_hint, marshal_data);
337 }
338