[21115] | 1 | #include "htmlmarshal.h" |
---|
[19538] | 2 | |
---|
| 3 | #include <glib-object.h> |
---|
| 4 | |
---|
| 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 | #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_int |
---|
| 40 | #define g_marshal_value_peek_flags(v) (v)->data[0].v_uint |
---|
| 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 | #endif /* !G_ENABLE_DEBUG */ |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | /* BOOL:OBJECT (htmlclosures.list:1) */ |
---|
| 52 | void |
---|
| 53 | html_g_cclosure_marshal_BOOLEAN__OBJECT (GClosure *closure, |
---|
| 54 | GValue *return_value, |
---|
| 55 | guint n_param_values, |
---|
| 56 | const GValue *param_values, |
---|
| 57 | gpointer invocation_hint, |
---|
| 58 | gpointer marshal_data) |
---|
| 59 | { |
---|
| 60 | typedef gboolean (*GMarshalFunc_BOOLEAN__OBJECT) (gpointer data1, |
---|
| 61 | gpointer arg_1, |
---|
| 62 | gpointer data2); |
---|
| 63 | register GMarshalFunc_BOOLEAN__OBJECT callback; |
---|
| 64 | register GCClosure *cc = (GCClosure*) closure; |
---|
| 65 | register gpointer data1, data2; |
---|
| 66 | gboolean v_return; |
---|
| 67 | |
---|
| 68 | g_return_if_fail (return_value != NULL); |
---|
| 69 | g_return_if_fail (n_param_values == 2); |
---|
| 70 | |
---|
| 71 | if (G_CCLOSURE_SWAP_DATA (closure)) |
---|
| 72 | { |
---|
| 73 | data1 = closure->data; |
---|
| 74 | data2 = g_value_peek_pointer (param_values + 0); |
---|
| 75 | } |
---|
| 76 | else |
---|
| 77 | { |
---|
| 78 | data1 = g_value_peek_pointer (param_values + 0); |
---|
| 79 | data2 = closure->data; |
---|
| 80 | } |
---|
| 81 | callback = (GMarshalFunc_BOOLEAN__OBJECT) (marshal_data ? marshal_data : cc->callback); |
---|
| 82 | |
---|
| 83 | v_return = callback (data1, |
---|
| 84 | g_marshal_value_peek_object (param_values + 1), |
---|
| 85 | data2); |
---|
| 86 | |
---|
| 87 | g_value_set_boolean (return_value, v_return); |
---|
| 88 | } |
---|
| 89 | |
---|
| 90 | /* VOID:STRING,POINTER (htmlclosures.list:2) */ |
---|
| 91 | void |
---|
| 92 | html_g_cclosure_marshal_VOID__STRING_POINTER (GClosure *closure, |
---|
| 93 | GValue *return_value, |
---|
| 94 | guint n_param_values, |
---|
| 95 | const GValue *param_values, |
---|
| 96 | gpointer invocation_hint, |
---|
| 97 | gpointer marshal_data) |
---|
| 98 | { |
---|
| 99 | typedef void (*GMarshalFunc_VOID__STRING_POINTER) (gpointer data1, |
---|
| 100 | gpointer arg_1, |
---|
| 101 | gpointer arg_2, |
---|
| 102 | gpointer data2); |
---|
| 103 | register GMarshalFunc_VOID__STRING_POINTER callback; |
---|
| 104 | register GCClosure *cc = (GCClosure*) closure; |
---|
| 105 | register gpointer data1, data2; |
---|
| 106 | |
---|
| 107 | g_return_if_fail (n_param_values == 3); |
---|
| 108 | |
---|
| 109 | if (G_CCLOSURE_SWAP_DATA (closure)) |
---|
| 110 | { |
---|
| 111 | data1 = closure->data; |
---|
| 112 | data2 = g_value_peek_pointer (param_values + 0); |
---|
| 113 | } |
---|
| 114 | else |
---|
| 115 | { |
---|
| 116 | data1 = g_value_peek_pointer (param_values + 0); |
---|
| 117 | data2 = closure->data; |
---|
| 118 | } |
---|
| 119 | callback = (GMarshalFunc_VOID__STRING_POINTER) (marshal_data ? marshal_data : cc->callback); |
---|
| 120 | |
---|
| 121 | callback (data1, |
---|
| 122 | g_marshal_value_peek_string (param_values + 1), |
---|
| 123 | g_marshal_value_peek_pointer (param_values + 2), |
---|
| 124 | data2); |
---|
| 125 | } |
---|
| 126 | |
---|
| 127 | /* VOID:POINTER,INT (htmlclosures.list:3) */ |
---|
| 128 | void |
---|
| 129 | html_g_cclosure_marshal_VOID__POINTER_INT (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__POINTER_INT) (gpointer data1, |
---|
| 137 | gpointer arg_1, |
---|
| 138 | gint arg_2, |
---|
| 139 | gpointer data2); |
---|
| 140 | register GMarshalFunc_VOID__POINTER_INT 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__POINTER_INT) (marshal_data ? marshal_data : cc->callback); |
---|
| 157 | |
---|
| 158 | callback (data1, |
---|
| 159 | g_marshal_value_peek_pointer (param_values + 1), |
---|
| 160 | g_marshal_value_peek_int (param_values + 2), |
---|
| 161 | data2); |
---|
| 162 | } |
---|
| 163 | |
---|
| 164 | /* VOID:STRING,STRING,STRING (htmlclosures.list:4) */ |
---|
| 165 | void |
---|
| 166 | html_g_cclosure_marshal_VOID__STRING_STRING_STRING (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__STRING_STRING_STRING) (gpointer data1, |
---|
| 174 | gpointer arg_1, |
---|
| 175 | gpointer arg_2, |
---|
| 176 | gpointer arg_3, |
---|
| 177 | gpointer data2); |
---|
| 178 | register GMarshalFunc_VOID__STRING_STRING_STRING callback; |
---|
| 179 | register GCClosure *cc = (GCClosure*) closure; |
---|
| 180 | register gpointer data1, data2; |
---|
| 181 | |
---|
| 182 | g_return_if_fail (n_param_values == 4); |
---|
| 183 | |
---|
| 184 | if (G_CCLOSURE_SWAP_DATA (closure)) |
---|
| 185 | { |
---|
| 186 | data1 = closure->data; |
---|
| 187 | data2 = g_value_peek_pointer (param_values + 0); |
---|
| 188 | } |
---|
| 189 | else |
---|
| 190 | { |
---|
| 191 | data1 = g_value_peek_pointer (param_values + 0); |
---|
| 192 | data2 = closure->data; |
---|
| 193 | } |
---|
| 194 | callback = (GMarshalFunc_VOID__STRING_STRING_STRING) (marshal_data ? marshal_data : cc->callback); |
---|
| 195 | |
---|
| 196 | callback (data1, |
---|
| 197 | g_marshal_value_peek_string (param_values + 1), |
---|
| 198 | g_marshal_value_peek_string (param_values + 2), |
---|
| 199 | g_marshal_value_peek_string (param_values + 3), |
---|
| 200 | data2); |
---|
| 201 | } |
---|
| 202 | |
---|
| 203 | /* VOID:INT,INT,FLOAT (htmlclosures.list:5) */ |
---|
| 204 | void |
---|
| 205 | html_g_cclosure_marshal_VOID__INT_INT_FLOAT (GClosure *closure, |
---|
| 206 | GValue *return_value, |
---|
| 207 | guint n_param_values, |
---|
| 208 | const GValue *param_values, |
---|
| 209 | gpointer invocation_hint, |
---|
| 210 | gpointer marshal_data) |
---|
| 211 | { |
---|
| 212 | typedef void (*GMarshalFunc_VOID__INT_INT_FLOAT) (gpointer data1, |
---|
| 213 | gint arg_1, |
---|
| 214 | gint arg_2, |
---|
| 215 | gfloat arg_3, |
---|
| 216 | gpointer data2); |
---|
| 217 | register GMarshalFunc_VOID__INT_INT_FLOAT callback; |
---|
| 218 | register GCClosure *cc = (GCClosure*) closure; |
---|
| 219 | register gpointer data1, data2; |
---|
| 220 | |
---|
| 221 | g_return_if_fail (n_param_values == 4); |
---|
| 222 | |
---|
| 223 | if (G_CCLOSURE_SWAP_DATA (closure)) |
---|
| 224 | { |
---|
| 225 | data1 = closure->data; |
---|
| 226 | data2 = g_value_peek_pointer (param_values + 0); |
---|
| 227 | } |
---|
| 228 | else |
---|
| 229 | { |
---|
| 230 | data1 = g_value_peek_pointer (param_values + 0); |
---|
| 231 | data2 = closure->data; |
---|
| 232 | } |
---|
| 233 | callback = (GMarshalFunc_VOID__INT_INT_FLOAT) (marshal_data ? marshal_data : cc->callback); |
---|
| 234 | |
---|
| 235 | callback (data1, |
---|
| 236 | g_marshal_value_peek_int (param_values + 1), |
---|
| 237 | g_marshal_value_peek_int (param_values + 2), |
---|
| 238 | g_marshal_value_peek_float (param_values + 3), |
---|
| 239 | data2); |
---|
| 240 | } |
---|
| 241 | |
---|
| 242 | /* VOID:ENUM,ENUM,FLOAT (htmlclosures.list:6) */ |
---|
| 243 | void |
---|
| 244 | html_g_cclosure_marshal_VOID__ENUM_ENUM_FLOAT (GClosure *closure, |
---|
| 245 | GValue *return_value, |
---|
| 246 | guint n_param_values, |
---|
| 247 | const GValue *param_values, |
---|
| 248 | gpointer invocation_hint, |
---|
| 249 | gpointer marshal_data) |
---|
| 250 | { |
---|
| 251 | typedef void (*GMarshalFunc_VOID__ENUM_ENUM_FLOAT) (gpointer data1, |
---|
| 252 | gint arg_1, |
---|
| 253 | gint arg_2, |
---|
| 254 | gfloat arg_3, |
---|
| 255 | gpointer data2); |
---|
| 256 | register GMarshalFunc_VOID__ENUM_ENUM_FLOAT callback; |
---|
| 257 | register GCClosure *cc = (GCClosure*) closure; |
---|
| 258 | register gpointer data1, data2; |
---|
| 259 | |
---|
| 260 | g_return_if_fail (n_param_values == 4); |
---|
| 261 | |
---|
| 262 | if (G_CCLOSURE_SWAP_DATA (closure)) |
---|
| 263 | { |
---|
| 264 | data1 = closure->data; |
---|
| 265 | data2 = g_value_peek_pointer (param_values + 0); |
---|
| 266 | } |
---|
| 267 | else |
---|
| 268 | { |
---|
| 269 | data1 = g_value_peek_pointer (param_values + 0); |
---|
| 270 | data2 = closure->data; |
---|
| 271 | } |
---|
| 272 | callback = (GMarshalFunc_VOID__ENUM_ENUM_FLOAT) (marshal_data ? marshal_data : cc->callback); |
---|
| 273 | |
---|
| 274 | callback (data1, |
---|
| 275 | g_marshal_value_peek_enum (param_values + 1), |
---|
| 276 | g_marshal_value_peek_enum (param_values + 2), |
---|
| 277 | g_marshal_value_peek_float (param_values + 3), |
---|
| 278 | data2); |
---|
| 279 | } |
---|
| 280 | |
---|
| 281 | /* VOID:INT,INT (htmlclosures.list:7) */ |
---|
| 282 | void |
---|
| 283 | html_g_cclosure_marshal_VOID__INT_INT (GClosure *closure, |
---|
| 284 | GValue *return_value, |
---|
| 285 | guint n_param_values, |
---|
| 286 | const GValue *param_values, |
---|
| 287 | gpointer invocation_hint, |
---|
| 288 | gpointer marshal_data) |
---|
| 289 | { |
---|
| 290 | typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer data1, |
---|
| 291 | gint arg_1, |
---|
| 292 | gint arg_2, |
---|
| 293 | gpointer data2); |
---|
| 294 | register GMarshalFunc_VOID__INT_INT callback; |
---|
| 295 | register GCClosure *cc = (GCClosure*) closure; |
---|
| 296 | register gpointer data1, data2; |
---|
| 297 | |
---|
| 298 | g_return_if_fail (n_param_values == 3); |
---|
| 299 | |
---|
| 300 | if (G_CCLOSURE_SWAP_DATA (closure)) |
---|
| 301 | { |
---|
| 302 | data1 = closure->data; |
---|
| 303 | data2 = g_value_peek_pointer (param_values + 0); |
---|
| 304 | } |
---|
| 305 | else |
---|
| 306 | { |
---|
| 307 | data1 = g_value_peek_pointer (param_values + 0); |
---|
| 308 | data2 = closure->data; |
---|
| 309 | } |
---|
| 310 | callback = (GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback); |
---|
| 311 | |
---|
| 312 | callback (data1, |
---|
| 313 | g_marshal_value_peek_int (param_values + 1), |
---|
| 314 | g_marshal_value_peek_int (param_values + 2), |
---|
| 315 | data2); |
---|
| 316 | } |
---|
| 317 | |
---|
| 318 | /* VOID:ENUM,ENUM (htmlclosures.list:8) */ |
---|
| 319 | void |
---|
| 320 | html_g_cclosure_marshal_VOID__ENUM_ENUM (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__ENUM_ENUM) (gpointer data1, |
---|
| 328 | gint arg_1, |
---|
| 329 | gint arg_2, |
---|
| 330 | gpointer data2); |
---|
| 331 | register GMarshalFunc_VOID__ENUM_ENUM 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__ENUM_ENUM) (marshal_data ? marshal_data : cc->callback); |
---|
| 348 | |
---|
| 349 | callback (data1, |
---|
| 350 | g_marshal_value_peek_enum (param_values + 1), |
---|
| 351 | g_marshal_value_peek_enum (param_values + 2), |
---|
| 352 | data2); |
---|
| 353 | } |
---|
| 354 | |
---|
[21115] | 355 | /* VOID:POINTER,BOOL,BOOL,BOOL (htmlclosures.list:9) */ |
---|
| 356 | void |
---|
| 357 | html_g_cclosure_marshal_VOID__POINTER_BOOLEAN_BOOLEAN_BOOLEAN (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__POINTER_BOOLEAN_BOOLEAN_BOOLEAN) (gpointer data1, |
---|
| 365 | gpointer arg_1, |
---|
| 366 | gboolean arg_2, |
---|
| 367 | gboolean arg_3, |
---|
| 368 | gboolean arg_4, |
---|
| 369 | gpointer data2); |
---|
| 370 | register GMarshalFunc_VOID__POINTER_BOOLEAN_BOOLEAN_BOOLEAN callback; |
---|
| 371 | register GCClosure *cc = (GCClosure*) closure; |
---|
| 372 | register gpointer data1, data2; |
---|
| 373 | |
---|
| 374 | g_return_if_fail (n_param_values == 5); |
---|
| 375 | |
---|
| 376 | if (G_CCLOSURE_SWAP_DATA (closure)) |
---|
| 377 | { |
---|
| 378 | data1 = closure->data; |
---|
| 379 | data2 = g_value_peek_pointer (param_values + 0); |
---|
| 380 | } |
---|
| 381 | else |
---|
| 382 | { |
---|
| 383 | data1 = g_value_peek_pointer (param_values + 0); |
---|
| 384 | data2 = closure->data; |
---|
| 385 | } |
---|
| 386 | callback = (GMarshalFunc_VOID__POINTER_BOOLEAN_BOOLEAN_BOOLEAN) (marshal_data ? marshal_data : cc->callback); |
---|
| 387 | |
---|
| 388 | callback (data1, |
---|
| 389 | g_marshal_value_peek_pointer (param_values + 1), |
---|
| 390 | g_marshal_value_peek_boolean (param_values + 2), |
---|
| 391 | g_marshal_value_peek_boolean (param_values + 3), |
---|
| 392 | g_marshal_value_peek_boolean (param_values + 4), |
---|
| 393 | data2); |
---|
| 394 | } |
---|
| 395 | |
---|
| 396 | /* POINTER:VOID (htmlclosures.list:10) */ |
---|
| 397 | void |
---|
| 398 | html_g_cclosure_marshal_POINTER__VOID (GClosure *closure, |
---|
| 399 | GValue *return_value, |
---|
| 400 | guint n_param_values, |
---|
| 401 | const GValue *param_values, |
---|
| 402 | gpointer invocation_hint, |
---|
| 403 | gpointer marshal_data) |
---|
| 404 | { |
---|
| 405 | typedef gpointer (*GMarshalFunc_POINTER__VOID) (gpointer data1, |
---|
| 406 | gpointer data2); |
---|
| 407 | register GMarshalFunc_POINTER__VOID callback; |
---|
| 408 | register GCClosure *cc = (GCClosure*) closure; |
---|
| 409 | register gpointer data1, data2; |
---|
| 410 | gpointer v_return; |
---|
| 411 | |
---|
| 412 | g_return_if_fail (return_value != NULL); |
---|
| 413 | g_return_if_fail (n_param_values == 1); |
---|
| 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_POINTER__VOID) (marshal_data ? marshal_data : cc->callback); |
---|
| 426 | |
---|
| 427 | v_return = callback (data1, |
---|
| 428 | data2); |
---|
| 429 | |
---|
| 430 | g_value_set_pointer (return_value, v_return); |
---|
| 431 | } |
---|
| 432 | |
---|
| 433 | /* VOID:VOID (htmlclosures.list:11) */ |
---|
| 434 | |
---|