1 #include "htmlmarshal.h"
2 
3 #include	<glib-object.h>
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)   (gchar *) 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 /* BOOL:OBJECT (htmlclosures.list:1) */
50 void
html_g_cclosure_marshal_BOOLEAN__OBJECT(GClosure * closure,GValue * return_value,guint n_param_values,const GValue * param_values,gpointer invocation_hint,gpointer marshal_data)51 html_g_cclosure_marshal_BOOLEAN__OBJECT (GClosure *closure,
52                                          GValue *return_value,
53                                          guint n_param_values,
54                                          const GValue *param_values,
55                                          gpointer invocation_hint,
56                                          gpointer marshal_data)
57 {
58   typedef gboolean (*GMarshalFunc_BOOLEAN__OBJECT) (gpointer     data1,
59 						    gpointer     arg_1,
60 						    gpointer     data2);
61   register GMarshalFunc_BOOLEAN__OBJECT callback;
62   register GCClosure *cc = (GCClosure *) closure;
63   register gpointer data1, data2;
64   gboolean v_return;
65 
66   g_return_if_fail (return_value != NULL);
67   g_return_if_fail (n_param_values == 2);
68 
69   if (G_CCLOSURE_SWAP_DATA (closure))
70     {
71       data1 = closure->data;
72       data2 = g_value_peek_pointer (param_values + 0);
73     }
74   else
75     {
76       data1 = g_value_peek_pointer (param_values + 0);
77       data2 = closure->data;
78     }
79   callback = (GMarshalFunc_BOOLEAN__OBJECT) (marshal_data ? marshal_data : cc->callback);
80 
81   v_return = callback (data1,
82 		       g_marshal_value_peek_object (param_values + 1),
83 		       data2);
84 
85   g_value_set_boolean (return_value, v_return);
86 }
87 
88 /* BOOL:ENUM (htmlclosures.list:2) */
89 void
html_g_cclosure_marshal_BOOLEAN__ENUM(GClosure * closure,GValue * return_value,guint n_param_values,const GValue * param_values,gpointer invocation_hint,gpointer marshal_data)90 html_g_cclosure_marshal_BOOLEAN__ENUM (GClosure *closure,
91                                        GValue *return_value,
92                                        guint n_param_values,
93                                        const GValue *param_values,
94                                        gpointer invocation_hint,
95                                        gpointer marshal_data)
96 {
97   typedef gboolean (*GMarshalFunc_BOOLEAN__ENUM) (gpointer     data1,
98 						  gint         arg_1,
99 						  gpointer     data2);
100   register GMarshalFunc_BOOLEAN__ENUM callback;
101   register GCClosure *cc = (GCClosure *) closure;
102   register gpointer data1, data2;
103   gboolean v_return;
104 
105   g_return_if_fail (return_value != NULL);
106   g_return_if_fail (n_param_values == 2);
107 
108   if (G_CCLOSURE_SWAP_DATA (closure))
109     {
110       data1 = closure->data;
111       data2 = g_value_peek_pointer (param_values + 0);
112     }
113   else
114     {
115       data1 = g_value_peek_pointer (param_values + 0);
116       data2 = closure->data;
117     }
118   callback = (GMarshalFunc_BOOLEAN__ENUM) (marshal_data ? marshal_data : cc->callback);
119 
120   v_return = callback (data1,
121 		       g_marshal_value_peek_enum (param_values + 1),
122 		       data2);
123 
124   g_value_set_boolean (return_value, v_return);
125 }
126 
127 /* VOID:STRING,POINTER (htmlclosures.list:3) */
128 void
html_g_cclosure_marshal_VOID__STRING_POINTER(GClosure * closure,GValue * return_value,guint n_param_values,const GValue * param_values,gpointer invocation_hint,gpointer marshal_data)129 html_g_cclosure_marshal_VOID__STRING_POINTER (GClosure *closure,
130                                               GValue *return_value,
131                                               guint n_param_values,
132                                               const GValue *param_values,
133                                               gpointer invocation_hint,
134                                               gpointer marshal_data)
135 {
136   typedef void (*GMarshalFunc_VOID__STRING_POINTER) (gpointer     data1,
137 						     gpointer     arg_1,
138 						     gpointer     arg_2,
139 						     gpointer     data2);
140   register GMarshalFunc_VOID__STRING_POINTER callback;
141   register GCClosure *cc = (GCClosure *) closure;
142   register gpointer data1, data2;
143 
144   g_return_if_fail (n_param_values == 3);
145 
146   if (G_CCLOSURE_SWAP_DATA (closure))
147     {
148       data1 = closure->data;
149       data2 = g_value_peek_pointer (param_values + 0);
150     }
151   else
152     {
153       data1 = g_value_peek_pointer (param_values + 0);
154       data2 = closure->data;
155     }
156   callback = (GMarshalFunc_VOID__STRING_POINTER) (marshal_data ? marshal_data : cc->callback);
157 
158   callback (data1,
159 	    g_marshal_value_peek_string (param_values + 1),
160 	    g_marshal_value_peek_pointer (param_values + 2),
161 	    data2);
162 }
163 
164 /* VOID:POINTER,INT (htmlclosures.list:4) */
165 void
html_g_cclosure_marshal_VOID__POINTER_INT(GClosure * closure,GValue * return_value,guint n_param_values,const GValue * param_values,gpointer invocation_hint,gpointer marshal_data)166 html_g_cclosure_marshal_VOID__POINTER_INT (GClosure *closure,
167                                            GValue *return_value,
168                                            guint n_param_values,
169                                            const GValue *param_values,
170                                            gpointer invocation_hint,
171                                            gpointer marshal_data)
172 {
173   typedef void (*GMarshalFunc_VOID__POINTER_INT) (gpointer     data1,
174 						  gpointer     arg_1,
175 						  gint         arg_2,
176 						  gpointer     data2);
177   register GMarshalFunc_VOID__POINTER_INT callback;
178   register GCClosure *cc = (GCClosure *) closure;
179   register gpointer data1, data2;
180 
181   g_return_if_fail (n_param_values == 3);
182 
183   if (G_CCLOSURE_SWAP_DATA (closure))
184     {
185       data1 = closure->data;
186       data2 = g_value_peek_pointer (param_values + 0);
187     }
188   else
189     {
190       data1 = g_value_peek_pointer (param_values + 0);
191       data2 = closure->data;
192     }
193   callback = (GMarshalFunc_VOID__POINTER_INT) (marshal_data ? marshal_data : cc->callback);
194 
195   callback (data1,
196 	    g_marshal_value_peek_pointer (param_values + 1),
197 	    g_marshal_value_peek_int (param_values + 2),
198 	    data2);
199 }
200 
201 /* VOID:STRING,STRING,STRING (htmlclosures.list:5) */
202 void
html_g_cclosure_marshal_VOID__STRING_STRING_STRING(GClosure * closure,GValue * return_value,guint n_param_values,const GValue * param_values,gpointer invocation_hint,gpointer marshal_data)203 html_g_cclosure_marshal_VOID__STRING_STRING_STRING (GClosure *closure,
204                                                     GValue *return_value,
205                                                     guint n_param_values,
206                                                     const GValue *param_values,
207                                                     gpointer invocation_hint,
208                                                     gpointer marshal_data)
209 {
210   typedef void (*GMarshalFunc_VOID__STRING_STRING_STRING) (gpointer     data1,
211 							   gpointer     arg_1,
212 							   gpointer     arg_2,
213 							   gpointer     arg_3,
214 							   gpointer     data2);
215   register GMarshalFunc_VOID__STRING_STRING_STRING callback;
216   register GCClosure *cc = (GCClosure *) closure;
217   register gpointer data1, data2;
218 
219   g_return_if_fail (n_param_values == 4);
220 
221   if (G_CCLOSURE_SWAP_DATA (closure))
222     {
223       data1 = closure->data;
224       data2 = g_value_peek_pointer (param_values + 0);
225     }
226   else
227     {
228       data1 = g_value_peek_pointer (param_values + 0);
229       data2 = closure->data;
230     }
231   callback = (GMarshalFunc_VOID__STRING_STRING_STRING) (marshal_data ? marshal_data : cc->callback);
232 
233   callback (data1,
234 	    g_marshal_value_peek_string (param_values + 1),
235 	    g_marshal_value_peek_string (param_values + 2),
236 	    g_marshal_value_peek_string (param_values + 3),
237 	    data2);
238 }
239 
240 /* VOID:INT,INT,FLOAT (htmlclosures.list:6) */
241 void
html_g_cclosure_marshal_VOID__INT_INT_FLOAT(GClosure * closure,GValue * return_value,guint n_param_values,const GValue * param_values,gpointer invocation_hint,gpointer marshal_data)242 html_g_cclosure_marshal_VOID__INT_INT_FLOAT (GClosure *closure,
243                                              GValue *return_value,
244                                              guint n_param_values,
245                                              const GValue *param_values,
246                                              gpointer invocation_hint,
247                                              gpointer marshal_data)
248 {
249   typedef void (*GMarshalFunc_VOID__INT_INT_FLOAT) (gpointer     data1,
250 						    gint         arg_1,
251 						    gint         arg_2,
252 						    gfloat       arg_3,
253 						    gpointer     data2);
254   register GMarshalFunc_VOID__INT_INT_FLOAT callback;
255   register GCClosure *cc = (GCClosure *) closure;
256   register gpointer data1, data2;
257 
258   g_return_if_fail (n_param_values == 4);
259 
260   if (G_CCLOSURE_SWAP_DATA (closure))
261     {
262       data1 = closure->data;
263       data2 = g_value_peek_pointer (param_values + 0);
264     }
265   else
266     {
267       data1 = g_value_peek_pointer (param_values + 0);
268       data2 = closure->data;
269     }
270   callback = (GMarshalFunc_VOID__INT_INT_FLOAT) (marshal_data ? marshal_data : cc->callback);
271 
272   callback (data1,
273 	    g_marshal_value_peek_int (param_values + 1),
274 	    g_marshal_value_peek_int (param_values + 2),
275 	    g_marshal_value_peek_float (param_values + 3),
276 	    data2);
277 }
278 
279 /* VOID:ENUM,ENUM,FLOAT (htmlclosures.list:7) */
280 void
html_g_cclosure_marshal_VOID__ENUM_ENUM_FLOAT(GClosure * closure,GValue * return_value,guint n_param_values,const GValue * param_values,gpointer invocation_hint,gpointer marshal_data)281 html_g_cclosure_marshal_VOID__ENUM_ENUM_FLOAT (GClosure *closure,
282                                                GValue *return_value,
283                                                guint n_param_values,
284                                                const GValue *param_values,
285                                                gpointer invocation_hint,
286                                                gpointer marshal_data)
287 {
288   typedef void (*GMarshalFunc_VOID__ENUM_ENUM_FLOAT) (gpointer     data1,
289 						      gint         arg_1,
290 						      gint         arg_2,
291 						      gfloat       arg_3,
292 						      gpointer     data2);
293   register GMarshalFunc_VOID__ENUM_ENUM_FLOAT callback;
294   register GCClosure *cc = (GCClosure *) closure;
295   register gpointer data1, data2;
296 
297   g_return_if_fail (n_param_values == 4);
298 
299   if (G_CCLOSURE_SWAP_DATA (closure))
300     {
301       data1 = closure->data;
302       data2 = g_value_peek_pointer (param_values + 0);
303     }
304   else
305     {
306       data1 = g_value_peek_pointer (param_values + 0);
307       data2 = closure->data;
308     }
309   callback = (GMarshalFunc_VOID__ENUM_ENUM_FLOAT) (marshal_data ? marshal_data : cc->callback);
310 
311   callback (data1,
312 	    g_marshal_value_peek_enum (param_values + 1),
313 	    g_marshal_value_peek_enum (param_values + 2),
314 	    g_marshal_value_peek_float (param_values + 3),
315 	    data2);
316 }
317 
318 /* VOID:INT,INT (htmlclosures.list:8) */
319 void
html_g_cclosure_marshal_VOID__INT_INT(GClosure * closure,GValue * return_value,guint n_param_values,const GValue * param_values,gpointer invocation_hint,gpointer marshal_data)320 html_g_cclosure_marshal_VOID__INT_INT (GClosure *closure,
321                                        GValue *return_value,
322                                        guint n_param_values,
323                                        const GValue *param_values,
324                                        gpointer invocation_hint,
325                                        gpointer marshal_data)
326 {
327   typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer     data1,
328 					      gint         arg_1,
329 					      gint         arg_2,
330 					      gpointer     data2);
331   register GMarshalFunc_VOID__INT_INT callback;
332   register GCClosure *cc = (GCClosure *) closure;
333   register gpointer data1, data2;
334 
335   g_return_if_fail (n_param_values == 3);
336 
337   if (G_CCLOSURE_SWAP_DATA (closure))
338     {
339       data1 = closure->data;
340       data2 = g_value_peek_pointer (param_values + 0);
341     }
342   else
343     {
344       data1 = g_value_peek_pointer (param_values + 0);
345       data2 = closure->data;
346     }
347   callback = (GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback);
348 
349   callback (data1,
350 	    g_marshal_value_peek_int (param_values + 1),
351 	    g_marshal_value_peek_int (param_values + 2),
352 	    data2);
353 }
354 
355 /* VOID:ENUM,ENUM (htmlclosures.list:9) */
356 void
html_g_cclosure_marshal_VOID__ENUM_ENUM(GClosure * closure,GValue * return_value,guint n_param_values,const GValue * param_values,gpointer invocation_hint,gpointer marshal_data)357 html_g_cclosure_marshal_VOID__ENUM_ENUM (GClosure *closure,
358                                          GValue *return_value,
359                                          guint n_param_values,
360                                          const GValue *param_values,
361                                          gpointer invocation_hint,
362                                          gpointer marshal_data)
363 {
364   typedef void (*GMarshalFunc_VOID__ENUM_ENUM) (gpointer     data1,
365 						gint         arg_1,
366 						gint         arg_2,
367 						gpointer     data2);
368   register GMarshalFunc_VOID__ENUM_ENUM callback;
369   register GCClosure *cc = (GCClosure *) closure;
370   register gpointer data1, data2;
371 
372   g_return_if_fail (n_param_values == 3);
373 
374   if (G_CCLOSURE_SWAP_DATA (closure))
375     {
376       data1 = closure->data;
377       data2 = g_value_peek_pointer (param_values + 0);
378     }
379   else
380     {
381       data1 = g_value_peek_pointer (param_values + 0);
382       data2 = closure->data;
383     }
384   callback = (GMarshalFunc_VOID__ENUM_ENUM) (marshal_data ? marshal_data : cc->callback);
385 
386   callback (data1,
387 	    g_marshal_value_peek_enum (param_values + 1),
388 	    g_marshal_value_peek_enum (param_values + 2),
389 	    data2);
390 }
391 
392 /* VOID:POINTER,BOOL,BOOL,BOOL (htmlclosures.list:10) */
393 void
html_g_cclosure_marshal_VOID__POINTER_BOOLEAN_BOOLEAN_BOOLEAN(GClosure * closure,GValue * return_value,guint n_param_values,const GValue * param_values,gpointer invocation_hint,gpointer marshal_data)394 html_g_cclosure_marshal_VOID__POINTER_BOOLEAN_BOOLEAN_BOOLEAN (GClosure *closure,
395                                                                GValue *return_value,
396                                                                guint n_param_values,
397                                                                const GValue *param_values,
398                                                                gpointer invocation_hint,
399                                                                gpointer marshal_data)
400 {
401   typedef void (*GMarshalFunc_VOID__POINTER_BOOLEAN_BOOLEAN_BOOLEAN) (gpointer     data1,
402 								      gpointer     arg_1,
403 								      gboolean     arg_2,
404 								      gboolean     arg_3,
405 								      gboolean     arg_4,
406 								      gpointer     data2);
407   register GMarshalFunc_VOID__POINTER_BOOLEAN_BOOLEAN_BOOLEAN callback;
408   register GCClosure *cc = (GCClosure *) closure;
409   register gpointer data1, data2;
410 
411   g_return_if_fail (n_param_values == 5);
412 
413   if (G_CCLOSURE_SWAP_DATA (closure))
414     {
415       data1 = closure->data;
416       data2 = g_value_peek_pointer (param_values + 0);
417     }
418   else
419     {
420       data1 = g_value_peek_pointer (param_values + 0);
421       data2 = closure->data;
422     }
423   callback = (GMarshalFunc_VOID__POINTER_BOOLEAN_BOOLEAN_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
424 
425   callback (data1,
426 	    g_marshal_value_peek_pointer (param_values + 1),
427 	    g_marshal_value_peek_boolean (param_values + 2),
428 	    g_marshal_value_peek_boolean (param_values + 3),
429 	    g_marshal_value_peek_boolean (param_values + 4),
430 	    data2);
431 }
432 
433 /* POINTER:VOID (htmlclosures.list:11) */
434 void
html_g_cclosure_marshal_POINTER__VOID(GClosure * closure,GValue * return_value,guint n_param_values,const GValue * param_values,gpointer invocation_hint,gpointer marshal_data)435 html_g_cclosure_marshal_POINTER__VOID (GClosure *closure,
436                                        GValue *return_value,
437                                        guint n_param_values,
438                                        const GValue *param_values,
439                                        gpointer invocation_hint,
440                                        gpointer marshal_data)
441 {
442   typedef gpointer (*GMarshalFunc_POINTER__VOID) (gpointer     data1,
443 						  gpointer     data2);
444   register GMarshalFunc_POINTER__VOID callback;
445   register GCClosure *cc = (GCClosure *) closure;
446   register gpointer data1, data2;
447   gpointer v_return;
448 
449   g_return_if_fail (return_value != NULL);
450   g_return_if_fail (n_param_values == 1);
451 
452   if (G_CCLOSURE_SWAP_DATA (closure))
453     {
454       data1 = closure->data;
455       data2 = g_value_peek_pointer (param_values + 0);
456     }
457   else
458     {
459       data1 = g_value_peek_pointer (param_values + 0);
460       data2 = closure->data;
461     }
462   callback = (GMarshalFunc_POINTER__VOID) (marshal_data ? marshal_data : cc->callback);
463 
464   v_return = callback (data1,
465 		       data2);
466 
467   g_value_set_pointer (return_value, v_return);
468 }
469 
470 /* VOID:VOID (htmlclosures.list:12) */
471 
472