Add tests for vfuncs with callbacks as arguments
[platform/upstream/gobject-introspection.git] / tests / gimarshallingtests.h
1 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2  * vim: tabstop=4 shiftwidth=4 expandtab
3  */
4
5 #include <glib-object.h>
6
7 #ifndef __GI_MARSHALLING_TESTS_H__
8 #define __GI_MARSHALLING_TESTS_H__
9
10 typedef struct _GIMarshallingTestsSimpleStruct GIMarshallingTestsSimpleStruct;
11 typedef struct _GIMarshallingTestsBoxedStruct GIMarshallingTestsBoxedStruct;
12
13 /* Constants */
14
15 #define GI_MARSHALLING_TESTS_CONSTANT_NUMBER 42
16 #define GI_MARSHALLING_TESTS_CONSTANT_UTF8   "const \xe2\x99\xa5 utf8"
17
18
19 /* Booleans */
20
21 gboolean gi_marshalling_tests_boolean_return_true (void);
22 gboolean gi_marshalling_tests_boolean_return_false (void);
23
24 void gi_marshalling_tests_boolean_in_true (gboolean bool_);
25 void gi_marshalling_tests_boolean_in_false (gboolean bool_);
26
27 void gi_marshalling_tests_boolean_out_true (gboolean *bool_);
28 void gi_marshalling_tests_boolean_out_false (gboolean *bool_);
29
30 void gi_marshalling_tests_boolean_inout_true_false (gboolean *bool_);
31 void gi_marshalling_tests_boolean_inout_false_true (gboolean *bool_);
32
33
34 /* Integers */
35
36 gint8 gi_marshalling_tests_int8_return_max (void);
37 gint8 gi_marshalling_tests_int8_return_min (void);
38
39 void gi_marshalling_tests_int8_in_max (gint8 int8);
40 void gi_marshalling_tests_int8_in_min (gint8 int8);
41
42 void gi_marshalling_tests_int8_out_max (gint8 *int8);
43 void gi_marshalling_tests_int8_out_min (gint8 *int8);
44
45 void gi_marshalling_tests_int8_inout_max_min (gint8 *int8);
46 void gi_marshalling_tests_int8_inout_min_max (gint8 *int8);
47
48
49 guint8 gi_marshalling_tests_uint8_return (void);
50
51 void gi_marshalling_tests_uint8_in (guint8 uint8);
52
53 void gi_marshalling_tests_uint8_out (guint8 *uint8);
54 void gi_marshalling_tests_uint8_inout (guint8 *uint8);
55
56
57 gint16 gi_marshalling_tests_int16_return_max (void);
58 gint16 gi_marshalling_tests_int16_return_min (void);
59
60 void gi_marshalling_tests_int16_in_max (gint16 int16);
61 void gi_marshalling_tests_int16_in_min (gint16 int16);
62
63 void gi_marshalling_tests_int16_out_max (gint16 *int16);
64 void gi_marshalling_tests_int16_out_min (gint16 *int16);
65
66 void gi_marshalling_tests_int16_inout_max_min (gint16 *int16);
67 void gi_marshalling_tests_int16_inout_min_max (gint16 *int16);
68
69
70 guint16 gi_marshalling_tests_uint16_return (void);
71
72 void gi_marshalling_tests_uint16_in (guint16 uint16);
73
74 void gi_marshalling_tests_uint16_out (guint16 *uint16);
75 void gi_marshalling_tests_uint16_inout (guint16 *uint16);
76
77
78 gint32 gi_marshalling_tests_int32_return_max (void);
79 gint32 gi_marshalling_tests_int32_return_min (void);
80
81 void gi_marshalling_tests_int32_in_max (gint32 int32);
82 void gi_marshalling_tests_int32_in_min (gint32 int32);
83
84 void gi_marshalling_tests_int32_out_max (gint32 *int32);
85 void gi_marshalling_tests_int32_out_min (gint32 *int32);
86
87 void gi_marshalling_tests_int32_inout_max_min (gint32 *int32);
88 void gi_marshalling_tests_int32_inout_min_max (gint32 *int32);
89
90
91 guint32 gi_marshalling_tests_uint32_return (void);
92
93 void gi_marshalling_tests_uint32_in (guint32 uint32);
94
95 void gi_marshalling_tests_uint32_out (guint32 *uint32);
96 void gi_marshalling_tests_uint32_inout (guint32 *uint32);
97
98
99 gint64 gi_marshalling_tests_int64_return_max (void);
100 gint64 gi_marshalling_tests_int64_return_min (void);
101
102 void gi_marshalling_tests_int64_in_max (gint64 int64);
103 void gi_marshalling_tests_int64_in_min (gint64 int64);
104
105 void gi_marshalling_tests_int64_out_max (gint64 *int64);
106 void gi_marshalling_tests_int64_out_min (gint64 *int64);
107
108 void gi_marshalling_tests_int64_inout_max_min (gint64 *int64);
109 void gi_marshalling_tests_int64_inout_min_max (gint64 *int64);
110
111
112 guint64 gi_marshalling_tests_uint64_return (void);
113
114 void gi_marshalling_tests_uint64_in (guint64 uint64);
115
116 void gi_marshalling_tests_uint64_out (guint64 *uint64);
117 void gi_marshalling_tests_uint64_inout (guint64 *uint64);
118
119
120 gshort gi_marshalling_tests_short_return_max (void);
121 gshort gi_marshalling_tests_short_return_min (void);
122
123 void gi_marshalling_tests_short_in_max (gshort short_);
124 void gi_marshalling_tests_short_in_min (gshort short_);
125
126 void gi_marshalling_tests_short_out_max (gshort *short_);
127 void gi_marshalling_tests_short_out_min (gshort *short_);
128
129 void gi_marshalling_tests_short_inout_max_min (gshort *short_);
130 void gi_marshalling_tests_short_inout_min_max (gshort *short_);
131
132
133 gushort gi_marshalling_tests_ushort_return (void);
134
135 void gi_marshalling_tests_ushort_in (gushort ushort_);
136
137 void gi_marshalling_tests_ushort_out (gushort *ushort_);
138 void gi_marshalling_tests_ushort_inout (gushort *ushort_);
139
140
141 gint gi_marshalling_tests_int_return_max (void);
142 gint gi_marshalling_tests_int_return_min (void);
143
144 void gi_marshalling_tests_int_in_max (gint int_);
145 void gi_marshalling_tests_int_in_min (gint int_);
146
147 void gi_marshalling_tests_int_out_max (gint *int_);
148 void gi_marshalling_tests_int_out_min (gint *int_);
149
150 void gi_marshalling_tests_int_inout_max_min (gint *int_);
151 void gi_marshalling_tests_int_inout_min_max (gint *int_);
152
153
154 guint gi_marshalling_tests_uint_return (void);
155
156 void gi_marshalling_tests_uint_in (guint uint_);
157
158 void gi_marshalling_tests_uint_out (guint *uint_);
159 void gi_marshalling_tests_uint_inout (guint *uint_);
160
161
162 glong gi_marshalling_tests_long_return_max (void);
163 glong gi_marshalling_tests_long_return_min (void);
164
165 void gi_marshalling_tests_long_in_max (glong long_);
166 void gi_marshalling_tests_long_in_min (glong long_);
167
168 void gi_marshalling_tests_long_out_max (glong *long_);
169 void gi_marshalling_tests_long_out_min (glong *long_);
170
171 void gi_marshalling_tests_long_inout_max_min (glong *long_);
172 void gi_marshalling_tests_long_inout_min_max (glong *long_);
173
174
175 gulong gi_marshalling_tests_ulong_return (void);
176
177 void gi_marshalling_tests_ulong_in (gulong ulong_);
178
179 void gi_marshalling_tests_ulong_out (gulong *ulong_);
180 void gi_marshalling_tests_ulong_inout (gulong *ulong_);
181
182
183 gssize gi_marshalling_tests_ssize_return_max (void);
184 gssize gi_marshalling_tests_ssize_return_min (void);
185
186 void gi_marshalling_tests_ssize_in_max (gssize ssize);
187 void gi_marshalling_tests_ssize_in_min (gssize ssize);
188
189 void gi_marshalling_tests_ssize_out_max (gssize *ssize);
190 void gi_marshalling_tests_ssize_out_min (gssize *ssize);
191
192 void gi_marshalling_tests_ssize_inout_max_min (gssize *ssize);
193 void gi_marshalling_tests_ssize_inout_min_max (gssize *ssize);
194
195
196 gsize gi_marshalling_tests_size_return (void);
197
198 void gi_marshalling_tests_size_in (gsize size);
199
200 void gi_marshalling_tests_size_out (gsize *size);
201 void gi_marshalling_tests_size_inout (gsize *size);
202
203
204 /* Floating-point */
205
206 gfloat gi_marshalling_tests_float_return (void);
207
208 void gi_marshalling_tests_float_in (gfloat float_);
209
210 void gi_marshalling_tests_float_out (gfloat *float_);
211
212 void gi_marshalling_tests_float_inout (gfloat *float_);
213
214
215 gdouble gi_marshalling_tests_double_return (void);
216
217 void gi_marshalling_tests_double_in (gdouble double_);
218
219 void gi_marshalling_tests_double_out (gdouble *double_);
220
221 void gi_marshalling_tests_double_inout (gdouble *double_);
222
223
224 /* Timestamps */
225
226 time_t gi_marshalling_tests_time_t_return (void);
227
228 void gi_marshalling_tests_time_t_in (time_t time_t_);
229
230 void gi_marshalling_tests_time_t_out (time_t *time_t_);
231
232 void gi_marshalling_tests_time_t_inout (time_t *time_t_);
233
234
235 /* GType */
236
237 GType gi_marshalling_tests_gtype_return (void);
238
239 GType gi_marshalling_tests_gtype_string_return (void);
240
241 void gi_marshalling_tests_gtype_in (GType gtype);
242
243 void gi_marshalling_tests_gtype_string_in (GType gtype);
244
245 void gi_marshalling_tests_gtype_out (GType *gtype);
246
247 void gi_marshalling_tests_gtype_string_out (GType *gtype);
248
249 void gi_marshalling_tests_gtype_inout (GType *gtype);
250
251
252 /* UTF-8 */
253
254 const gchar *gi_marshalling_tests_utf8_none_return (void);
255 gchar *gi_marshalling_tests_utf8_full_return (void);
256
257 void gi_marshalling_tests_utf8_none_in (const gchar *utf8);
258 void gi_marshalling_tests_utf8_full_in (gchar *utf8);
259
260 void gi_marshalling_tests_utf8_none_out (gchar **utf8);
261 void gi_marshalling_tests_utf8_full_out (gchar **utf8);
262
263 void gi_marshalling_tests_utf8_dangling_out (gchar **utf8);
264
265 void gi_marshalling_tests_utf8_none_inout (gchar **utf8);
266 void gi_marshalling_tests_utf8_full_inout (gchar **utf8);
267
268 GSList *gi_marshalling_tests_filename_list_return (void);
269
270 /* Enum */
271
272 typedef enum
273 {
274   GI_MARSHALLING_TESTS_ENUM_VALUE1,
275   GI_MARSHALLING_TESTS_ENUM_VALUE2,
276   GI_MARSHALLING_TESTS_ENUM_VALUE3 = 42
277 } GIMarshallingTestsEnum;
278
279 typedef enum
280 {
281   GI_MARSHALLING_TESTS_SECOND_ENUM_SECONDVALUE1,
282   GI_MARSHALLING_TESTS_SECOND_ENUM_SECONDVALUE2,
283 } GIMarshallingTestsSecondEnum;
284
285 GIMarshallingTestsEnum gi_marshalling_tests_enum_returnv (void);
286
287 void gi_marshalling_tests_enum_in (GIMarshallingTestsEnum enum_);
288
289 void gi_marshalling_tests_enum_out (GIMarshallingTestsEnum *enum_);
290
291 void gi_marshalling_tests_enum_inout (GIMarshallingTestsEnum *enum_);
292
293
294 /* GEnum */
295
296 typedef enum
297 {
298   GI_MARSHALLING_TESTS_GENUM_VALUE1,
299   GI_MARSHALLING_TESTS_GENUM_VALUE2,
300   GI_MARSHALLING_TESTS_GENUM_VALUE3 = 42
301 } GIMarshallingTestsGEnum;
302
303 GType gi_marshalling_tests_genum_get_type (void) G_GNUC_CONST;
304 #define GI_MARSHALLING_TESTS_TYPE_GENUM (gi_marshalling_tests_genum_get_type ())
305
306 GIMarshallingTestsEnum gi_marshalling_tests_genum_returnv (void);
307
308 void gi_marshalling_tests_genum_in (GIMarshallingTestsGEnum enum_);
309
310 void gi_marshalling_tests_genum_out (GIMarshallingTestsGEnum *enum_);
311
312 void gi_marshalling_tests_genum_inout (GIMarshallingTestsGEnum *enum_);
313
314
315 /* GFlags */
316
317 typedef enum
318 {
319   GI_MARSHALLING_TESTS_FLAGS_VALUE1 = 1 << 0,
320   GI_MARSHALLING_TESTS_FLAGS_VALUE2 = 1 << 1,
321   GI_MARSHALLING_TESTS_FLAGS_VALUE3 = 1 << 2,
322   GI_MARSHALLING_TESTS_FLAGS_MASK = GI_MARSHALLING_TESTS_FLAGS_VALUE1 |
323                                     GI_MARSHALLING_TESTS_FLAGS_VALUE2,
324   GI_MARSHALLING_TESTS_FLAGS_MASK2 = GI_MARSHALLING_TESTS_FLAGS_MASK
325 } GIMarshallingTestsFlags;
326
327 GType gi_marshalling_tests_flags_get_type (void) G_GNUC_CONST;
328 #define GI_MARSHALLING_TESTS_TYPE_FLAGS (gi_marshalling_tests_flags_get_type ())
329
330 GIMarshallingTestsFlags gi_marshalling_tests_flags_returnv (void);
331
332 void gi_marshalling_tests_flags_in (GIMarshallingTestsFlags flags_);
333 void gi_marshalling_tests_flags_in_zero (GIMarshallingTestsFlags flags);
334
335 void gi_marshalling_tests_flags_out (GIMarshallingTestsFlags *flags_);
336
337 void gi_marshalling_tests_flags_inout (GIMarshallingTestsFlags *flags_);
338
339 /* Flags with no GType */
340
341 typedef enum
342 {
343   GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE1 = 1 << 0,
344   GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE2 = 1 << 1,
345   GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE3 = 1 << 2,
346   GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_MASK = GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE1 |
347                                             GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE2,
348   GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_MASK2 = GI_MARSHALLING_TESTS_FLAGS_MASK
349 } GIMarshallingTestsNoTypeFlags;
350
351 GIMarshallingTestsNoTypeFlags gi_marshalling_tests_no_type_flags_returnv (void);
352
353 void gi_marshalling_tests_no_type_flags_in (GIMarshallingTestsNoTypeFlags flags_);
354 void gi_marshalling_tests_no_type_flags_in_zero (GIMarshallingTestsNoTypeFlags flags);
355
356 void gi_marshalling_tests_no_type_flags_out (GIMarshallingTestsNoTypeFlags *flags_);
357
358 void gi_marshalling_tests_no_type_flags_inout (GIMarshallingTestsNoTypeFlags *flags_);
359
360 /* Arrays */
361
362 gboolean gi_marshalling_tests_init_function (gint *n_args, char ***argv);
363
364 /* Fixed-size */
365 const gint *gi_marshalling_tests_array_fixed_int_return (void);
366 const gshort *gi_marshalling_tests_array_fixed_short_return (void);
367
368 void gi_marshalling_tests_array_fixed_int_in (const gint *ints);
369 void gi_marshalling_tests_array_fixed_short_in (const gshort *shorts);
370
371 void gi_marshalling_tests_array_fixed_out (gint **ints);
372
373 void gi_marshalling_tests_array_fixed_out_struct (GIMarshallingTestsSimpleStruct **structs);
374
375 void gi_marshalling_tests_array_fixed_inout (gint **ints);
376
377 /* Variable-size */
378
379 const gint *gi_marshalling_tests_array_return (gint *length);
380 const gint *gi_marshalling_tests_array_return_etc (gint first, gint *length, gint last, gint *sum);
381
382 void gi_marshalling_tests_array_in (const gint *ints, gint length);
383 void gi_marshalling_tests_array_in_len_before (gint length, const gint *ints);
384 void gi_marshalling_tests_array_in_len_zero_terminated (const gint *ints, gint length);
385 void gi_marshalling_tests_array_string_in (const gchar **strings, gint length);
386 void gi_marshalling_tests_array_uint8_in (const guint8 *chars, gint length);
387 void gi_marshalling_tests_array_struct_in (GIMarshallingTestsBoxedStruct **structs, gint length);
388 void gi_marshalling_tests_array_struct_take_in (GIMarshallingTestsBoxedStruct **structs, gint length);
389 void gi_marshalling_tests_array_simple_struct_in (GIMarshallingTestsSimpleStruct *structs, gint length);
390 void gi_marshalling_tests_multi_array_key_value_in (gint length, const gchar **keys, const GValue *values);
391 void gi_marshalling_tests_array_enum_in (GIMarshallingTestsEnum *_enum, gint length);
392 void gi_marshalling_tests_array_in_guint64_len (const gint *ints, guint64 length);
393 void gi_marshalling_tests_array_in_guint8_len (const gint *ints, guint8 length);
394
395 void gi_marshalling_tests_array_out (gint **ints, gint *length);
396 void gi_marshalling_tests_array_out_etc (gint first, gint **ints, gint *length, gint last, gint *sum);
397
398 void gi_marshalling_tests_array_inout (gint **ints, gint *length);
399 void gi_marshalling_tests_array_inout_etc (gint first, gint **ints, gint *length, gint last, gint *sum);
400
401 /* Zero-terminated */
402
403 gchar **gi_marshalling_tests_array_zero_terminated_return (void);
404 gchar **gi_marshalling_tests_array_zero_terminated_return_null (void);
405 GIMarshallingTestsBoxedStruct **gi_marshalling_tests_array_zero_terminated_return_struct (void);
406
407 void gi_marshalling_tests_array_zero_terminated_in (gchar **utf8s);
408
409 void gi_marshalling_tests_array_zero_terminated_out (gchar ***utf8s);
410
411 void gi_marshalling_tests_array_zero_terminated_inout (gchar ***utf8s);
412
413 GVariant **gi_marshalling_tests_array_gvariant_none_in (GVariant **variants);
414
415 GVariant **gi_marshalling_tests_array_gvariant_container_in (GVariant **variants);
416
417 GVariant **gi_marshalling_tests_array_gvariant_full_in (GVariant **variants);
418
419
420 /* GArray */
421
422 GArray *gi_marshalling_tests_garray_int_none_return (void);
423 GArray *gi_marshalling_tests_garray_utf8_none_return (void);
424 GArray *gi_marshalling_tests_garray_utf8_container_return (void);
425 GArray *gi_marshalling_tests_garray_utf8_full_return (void);
426
427 void gi_marshalling_tests_garray_int_none_in (GArray *array_);
428 void gi_marshalling_tests_garray_utf8_none_in (GArray *array_);
429
430 void gi_marshalling_tests_garray_utf8_none_out (GArray **array_);
431 void gi_marshalling_tests_garray_utf8_container_out (GArray **array_);
432 void gi_marshalling_tests_garray_utf8_full_out (GArray **array_);
433
434 void gi_marshalling_tests_garray_utf8_none_inout (GArray **array_);
435 void gi_marshalling_tests_garray_utf8_container_inout (GArray **array_);
436 void gi_marshalling_tests_garray_utf8_full_inout (GArray **array_);
437
438 /* GPtrArray */
439 GPtrArray *gi_marshalling_tests_gptrarray_utf8_none_return (void);
440 GPtrArray *gi_marshalling_tests_gptrarray_utf8_container_return (void);
441 GPtrArray *gi_marshalling_tests_gptrarray_utf8_full_return (void);
442
443 void gi_marshalling_tests_gptrarray_utf8_none_in (GPtrArray *parray_);
444
445 void gi_marshalling_tests_gptrarray_utf8_none_out (GPtrArray **parray_);
446 void gi_marshalling_tests_gptrarray_utf8_container_out (GPtrArray **parray_);
447 void gi_marshalling_tests_gptrarray_utf8_full_out (GPtrArray **parray_);
448
449 void gi_marshalling_tests_gptrarray_utf8_none_inout (GPtrArray **parray_);
450 void gi_marshalling_tests_gptrarray_utf8_container_inout (GPtrArray **parray_);
451 void gi_marshalling_tests_gptrarray_utf8_full_inout (GPtrArray **parray_);
452
453 /* GByteArray */
454
455 GByteArray *gi_marshalling_tests_bytearray_full_return (void);
456 void gi_marshalling_tests_bytearray_none_in (GByteArray* array_);
457
458 /* GStrv */
459
460 GStrv gi_marshalling_tests_gstrv_return (void);
461 void gi_marshalling_tests_gstrv_in (GStrv g_strv);
462 void gi_marshalling_tests_gstrv_out (GStrv *g_strv);
463 void gi_marshalling_tests_gstrv_inout (GStrv *g_strv);
464
465 /* GList */
466
467 GList *gi_marshalling_tests_glist_int_none_return (void);
468 GList *gi_marshalling_tests_glist_utf8_none_return (void);
469 GList *gi_marshalling_tests_glist_utf8_container_return (void);
470 GList *gi_marshalling_tests_glist_utf8_full_return (void);
471
472 void gi_marshalling_tests_glist_int_none_in (GList *list);
473 void gi_marshalling_tests_glist_utf8_none_in (GList *list);
474
475 void gi_marshalling_tests_glist_utf8_none_out (GList **list);
476 void gi_marshalling_tests_glist_utf8_container_out (GList **list);
477 void gi_marshalling_tests_glist_utf8_full_out (GList **list);
478
479 void gi_marshalling_tests_glist_utf8_none_inout (GList **list);
480 void gi_marshalling_tests_glist_utf8_container_inout (GList **list);
481 void gi_marshalling_tests_glist_utf8_full_inout (GList **list);
482
483
484 /* GSList */
485
486 GSList *gi_marshalling_tests_gslist_int_none_return (void);
487 GSList *gi_marshalling_tests_gslist_utf8_none_return (void);
488 GSList *gi_marshalling_tests_gslist_utf8_container_return (void);
489 GSList *gi_marshalling_tests_gslist_utf8_full_return (void);
490
491 void gi_marshalling_tests_gslist_int_none_in (GSList *list);
492 void gi_marshalling_tests_gslist_utf8_none_in (GSList *list);
493
494 void gi_marshalling_tests_gslist_utf8_none_out (GSList **list);
495 void gi_marshalling_tests_gslist_utf8_container_out (GSList **list);
496 void gi_marshalling_tests_gslist_utf8_full_out (GSList **list);
497
498 void gi_marshalling_tests_gslist_utf8_none_inout (GSList **list);
499 void gi_marshalling_tests_gslist_utf8_container_inout (GSList **list);
500 void gi_marshalling_tests_gslist_utf8_full_inout (GSList **list);
501
502
503 /* GHashTable */
504
505 GHashTable *gi_marshalling_tests_ghashtable_int_none_return (void);
506 GHashTable *gi_marshalling_tests_ghashtable_utf8_none_return (void);
507 GHashTable *gi_marshalling_tests_ghashtable_utf8_container_return (void);
508 GHashTable *gi_marshalling_tests_ghashtable_utf8_full_return (void);
509
510 void gi_marshalling_tests_ghashtable_int_none_in (GHashTable *hash_table);
511 void gi_marshalling_tests_ghashtable_utf8_none_in (GHashTable *hash_table);
512 void gi_marshalling_tests_ghashtable_utf8_container_in (GHashTable *hash_table);
513 void gi_marshalling_tests_ghashtable_utf8_full_in (GHashTable *hash_table);
514
515 void gi_marshalling_tests_ghashtable_utf8_none_out (GHashTable **hash_table);
516 void gi_marshalling_tests_ghashtable_utf8_container_out (GHashTable **hash_table);
517 void gi_marshalling_tests_ghashtable_utf8_full_out (GHashTable **hash_table);
518
519 void gi_marshalling_tests_ghashtable_utf8_none_inout (GHashTable **hash_table);
520 void gi_marshalling_tests_ghashtable_utf8_container_inout (GHashTable **hash_table);
521 void gi_marshalling_tests_ghashtable_utf8_full_inout (GHashTable **hash_table);
522
523
524 /* GValue */
525
526 GValue *gi_marshalling_tests_gvalue_return (void);
527
528 void gi_marshalling_tests_gvalue_in (GValue *value);
529 void gi_marshalling_tests_gvalue_in_with_type (GValue *value, GType type);
530
531 void gi_marshalling_tests_gvalue_in_enum (GValue *value);
532
533 void gi_marshalling_tests_gvalue_out (GValue **value);
534
535 void gi_marshalling_tests_gvalue_inout (GValue **value);
536
537 void gi_marshalling_tests_gvalue_flat_array (guint         n_values,
538                                              const GValue *values);
539
540 GValue *gi_marshalling_tests_return_gvalue_flat_array (void);
541
542 GValue *gi_marshalling_tests_gvalue_flat_array_round_trip (const GValue one,
543                                                            const GValue two,
544                                                            const GValue three);
545
546 /* GClosure */
547
548 void gi_marshalling_tests_gclosure_in (GClosure *closure);
549 GClosure *gi_marshalling_tests_gclosure_return (void);
550
551 /* Callback return values */
552
553 /**
554  * GIMarshallingTestsCallbackReturnValueOnly:
555  */
556 typedef glong (* GIMarshallingTestsCallbackReturnValueOnly) ();
557
558 glong gi_marshalling_tests_callback_return_value_only (GIMarshallingTestsCallbackReturnValueOnly callback);
559
560 /**
561  * GIMarshallingTestsCallbackOneOutParameter:
562  * @a: (out):
563  */
564 typedef void (* GIMarshallingTestsCallbackOneOutParameter) (gfloat *a);
565
566 void gi_marshalling_tests_callback_one_out_parameter (GIMarshallingTestsCallbackOneOutParameter  callback,
567                                                       gfloat                                    *a);
568
569 /**
570  * GIMarshallingTestsCallbackMultipleOutParameters:
571  * @a: (out):
572  * @b: (out):
573  */
574 typedef void (* GIMarshallingTestsCallbackMultipleOutParameters) (gfloat *a, gfloat *b);
575
576 void gi_marshalling_tests_callback_multiple_out_parameters (GIMarshallingTestsCallbackMultipleOutParameters  callback,
577                                                             gfloat                                          *a,
578                                                             gfloat                                          *b);
579
580 /**
581  * GIMarshallingTestsCallbackReturnValueAndOneOutParameter:
582  * @a: (out):
583  */
584 typedef glong (* GIMarshallingTestsCallbackReturnValueAndOneOutParameter) (glong *a);
585
586 glong gi_marshalling_tests_callback_return_value_and_one_out_parameter (GIMarshallingTestsCallbackReturnValueAndOneOutParameter  callback,
587                                                                         glong                                                   *a);
588
589 /**
590  * GIMarshallingTestsCallbackReturnValueAndMultipleOutParameters:
591  * @a: (out):
592  * @b: (out):
593  */
594 typedef glong (* GIMarshallingTestsCallbackReturnValueAndMultipleOutParameters) (glong *a, glong *b);
595
596 glong gi_marshalling_tests_callback_return_value_and_multiple_out_parameters (GIMarshallingTestsCallbackReturnValueAndMultipleOutParameters  callback,
597                                                                               glong                                                         *a,
598                                                                               glong                                                         *b);
599
600 /* Pointer */
601
602 gpointer gi_marshalling_tests_pointer_in_return (gpointer pointer);
603
604 /* Structure */
605
606 struct _GIMarshallingTestsSimpleStruct {
607     glong long_;
608     gint8 int8;
609 };
610
611 typedef struct {
612     GIMarshallingTestsSimpleStruct simple_struct;
613 } GIMarshallingTestsNestedStruct;
614
615 typedef struct {
616     GIMarshallingTestsNestedStruct *pointer;
617 } GIMarshallingTestsNotSimpleStruct;
618
619
620 GIMarshallingTestsSimpleStruct *gi_marshalling_tests_simple_struct_returnv (void);
621
622 void gi_marshalling_tests_simple_struct_inv (GIMarshallingTestsSimpleStruct *struct_);
623
624 void gi_marshalling_tests_simple_struct_method (GIMarshallingTestsSimpleStruct *struct_);
625
626
627 typedef struct {
628     glong long_;
629 } GIMarshallingTestsPointerStruct;
630
631 GType gi_marshalling_tests_pointer_struct_get_type (void) G_GNUC_CONST;
632
633 GIMarshallingTestsPointerStruct *gi_marshalling_tests_pointer_struct_returnv (void);
634
635 void gi_marshalling_tests_pointer_struct_inv (GIMarshallingTestsPointerStruct *struct_);
636
637 struct _GIMarshallingTestsBoxedStruct {
638     glong long_;
639     GStrv g_strv;
640 };
641
642 GType gi_marshalling_tests_boxed_struct_get_type (void) G_GNUC_CONST;
643
644 GIMarshallingTestsBoxedStruct *gi_marshalling_tests_boxed_struct_new (void);
645
646 GIMarshallingTestsBoxedStruct *gi_marshalling_tests_boxed_struct_returnv (void);
647
648 void gi_marshalling_tests_boxed_struct_inv (GIMarshallingTestsBoxedStruct *struct_);
649
650 void gi_marshalling_tests_boxed_struct_out (GIMarshallingTestsBoxedStruct **struct_);
651
652 void gi_marshalling_tests_boxed_struct_inout (GIMarshallingTestsBoxedStruct **struct_);
653
654 typedef union {
655     glong long_;
656 } GIMarshallingTestsUnion;
657
658 GType gi_marshalling_tests_union_get_type (void) G_GNUC_CONST;
659
660 GIMarshallingTestsUnion *gi_marshalling_tests_union_returnv (void);
661
662 void gi_marshalling_tests_union_inv (GIMarshallingTestsUnion *union_);
663
664 void gi_marshalling_tests_union_out (GIMarshallingTestsUnion **union_);
665
666 void gi_marshalling_tests_union_inout (GIMarshallingTestsUnion **union_);
667
668 void gi_marshalling_tests_union_method (GIMarshallingTestsUnion *union_);
669
670  /* Object */
671
672 #define GI_MARSHALLING_TESTS_TYPE_OBJECT             (gi_marshalling_tests_object_get_type ())
673 #define GI_MARSHALLING_TESTS_OBJECT(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_OBJECT, GIMarshallingTestsObject))
674 #define GI_MARSHALLING_TESTS_OBJECT_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_OBJECT, GIMarshallingTestsObjectClass))
675 #define GI_MARSHALLING_TESTS_IS_OBJECT(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_OBJECT))
676 #define GI_MARSHALLING_TESTS_IS_OBJECT_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_OBJECT))
677 #define GI_MARSHALLING_TESTS_OBJECT_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_OBJECT, GIMarshallingTestsObjectClass))
678
679 typedef struct _GIMarshallingTestsObjectClass GIMarshallingTestsObjectClass;
680 typedef struct _GIMarshallingTestsObject GIMarshallingTestsObject;
681
682 typedef int (* GIMarshallingTestsCallbackIntInt) (int val, void *user_data);
683
684 struct _GIMarshallingTestsObjectClass
685 {
686         GObjectClass parent_class;
687
688     /**
689      * GIMarshallingTestsObjectClass::method_int8_in:
690      * @in: (in):
691      */
692     void (* method_int8_in) (GIMarshallingTestsObject *self, gint8 in);
693
694     /**
695      * GIMarshallingTestsObjectClass::method_int8_out:
696      * @out: (out):
697      */
698     void (* method_int8_out) (GIMarshallingTestsObject *self, gint8 *out);
699
700     /**
701      * GIMarshallingTestsObjectClass::method_with_default_implementation:
702      * @in: (in):
703      */
704     void (* method_with_default_implementation) (GIMarshallingTestsObject *self, gint8 in);
705
706     /**
707      * GIMarshallingTestsObjectClass::method_deep_hierarchy:
708      * @in: (in):
709      */
710     void (* method_deep_hierarchy) (GIMarshallingTestsObject *self, gint8 in);
711
712     void (* vfunc_with_callback) (GIMarshallingTestsObject *self,
713                                   GIMarshallingTestsCallbackIntInt callback,
714                                   void *callback_data);
715
716     /**
717      * GIMarshallingTestsObjectClass::vfunc_return_value_only:
718      */
719     glong (* vfunc_return_value_only) (GIMarshallingTestsObject *self);
720
721     /**
722      * GIMarshallingTestsObjectClass::vfunc_one_out_parameter:
723      * @a: (out):
724      */
725     void  (* vfunc_one_out_parameter) (GIMarshallingTestsObject *self, gfloat *a);
726
727     /**
728      * GIMarshallingTestsObjectClass::vfunc_multiple_out_parameters:
729      * @a: (out):
730      * @b: (out):
731      */
732     void  (* vfunc_multiple_out_parameters) (GIMarshallingTestsObject *self, gfloat *a, gfloat *b);
733
734     /**
735      * GIMarshallingTestsObjectClass::vfunc_return_value_and_one_out_parameter:
736      * @a: (out):
737      */
738     glong (* vfunc_return_value_and_one_out_parameter) (GIMarshallingTestsObject *self, glong *a);
739
740     /**
741      * GIMarshallingTestsObjectClass::vfunc_return_value_and_multiple_out_parameters:
742      * @a: (out):
743      * @b: (out):
744      */
745     glong (* vfunc_return_value_and_multiple_out_parameters) (GIMarshallingTestsObject *self, glong *a, glong *b);
746
747     /**
748      * GIMarshallingTestsObjectClass::vfunc_meth_with_err:
749      * @x:
750      * @error: A #GError
751      */
752     gboolean (*vfunc_meth_with_err) (GIMarshallingTestsObject *object, gint x, GError **error);
753 };
754
755 struct _GIMarshallingTestsObject
756 {
757         GObject parent_instance;
758
759     gint int_;
760 };
761
762 GType gi_marshalling_tests_object_get_type (void) G_GNUC_CONST;
763 void gi_marshalling_tests_object_static_method (void);
764 void gi_marshalling_tests_object_method (GIMarshallingTestsObject *object);
765 void gi_marshalling_tests_object_overridden_method (GIMarshallingTestsObject *object);
766 GIMarshallingTestsObject *gi_marshalling_tests_object_new (gint int_);
767
768 void gi_marshalling_tests_object_method_array_in (GIMarshallingTestsObject *object, const gint *ints, gint length);
769 void gi_marshalling_tests_object_method_array_out (GIMarshallingTestsObject *object, gint **ints, gint *length);
770 void gi_marshalling_tests_object_method_array_inout (GIMarshallingTestsObject *object, gint **ints, gint *length);
771 const gint *gi_marshalling_tests_object_method_array_return (GIMarshallingTestsObject *object, gint *length);
772
773 void gi_marshalling_tests_object_method_int8_in (GIMarshallingTestsObject *object, gint8 in);
774 void gi_marshalling_tests_object_method_int8_out (GIMarshallingTestsObject *object, gint8 *out);
775 void gi_marshalling_tests_object_method_with_default_implementation (GIMarshallingTestsObject *object, gint8 in);
776
777 glong gi_marshalling_tests_object_vfunc_return_value_only (GIMarshallingTestsObject *self);
778 void gi_marshalling_tests_object_vfunc_one_out_parameter (GIMarshallingTestsObject *self, gfloat *a);
779 void gi_marshalling_tests_object_vfunc_multiple_out_parameters (GIMarshallingTestsObject *self, gfloat *a, gfloat *b);
780 glong gi_marshalling_tests_object_vfunc_return_value_and_one_out_parameter (GIMarshallingTestsObject *self, glong *a);
781 glong gi_marshalling_tests_object_vfunc_return_value_and_multiple_out_parameters (GIMarshallingTestsObject *self, glong *a, glong *b);
782 gboolean gi_marshalling_tests_object_vfunc_meth_with_error (GIMarshallingTestsObject *object, gint x, GError **error);
783
784 GIMarshallingTestsObject *gi_marshalling_tests_object_none_return (void);
785 GIMarshallingTestsObject *gi_marshalling_tests_object_full_return (void);
786
787 void gi_marshalling_tests_object_none_in (GIMarshallingTestsObject *object);
788 void gi_marshalling_tests_object_full_in (GIMarshallingTestsObject *object);
789
790 void gi_marshalling_tests_object_none_out (GIMarshallingTestsObject **object);
791 void gi_marshalling_tests_object_full_out (GIMarshallingTestsObject **object);
792
793 void gi_marshalling_tests_object_none_inout (GIMarshallingTestsObject **object);
794 void gi_marshalling_tests_object_full_inout (GIMarshallingTestsObject **object);
795 void gi_marshalling_tests_object_inout_same (GIMarshallingTestsObject **object);
796
797 void gi_marshalling_tests_object_int8_in (GIMarshallingTestsObject *object, gint8 in);
798 void gi_marshalling_tests_object_int8_out (GIMarshallingTestsObject *object, gint8 *out);
799
800 void gi_marshalling_tests_object_vfunc_with_callback (GIMarshallingTestsObject *object,
801                                                       GIMarshallingTestsCallbackIntInt callback,
802                                                       void *callback_data);
803 void gi_marshalling_tests_object_call_vfunc_with_callback (GIMarshallingTestsObject *object);
804
805 #define GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT             (gi_marshalling_tests_sub_object_get_type ())
806 #define GI_MARSHALLING_TESTS_SUB_OBJECT(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT, GIMarshallingTestsSubObject))
807 #define GI_MARSHALLING_TESTS_SUB_OBJECT_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT, GIMarshallingTestsSubObjectClass))
808 #define GI_MARSHALLING_TESTS_IS_SUB_OBJECT(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT))
809 #define GI_MARSHALLING_TESTS_IS_SUB_OBJECT_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT))
810 #define GI_MARSHALLING_TESTS_SUB_OBJECT_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT, GIMarshallingTestsSubObjectClass))
811
812 typedef struct _GIMarshallingTestsSubObjectClass GIMarshallingTestsSubObjectClass;
813 typedef struct _GIMarshallingTestsSubObject GIMarshallingTestsSubObject;
814
815 struct _GIMarshallingTestsSubObjectClass
816 {
817         GIMarshallingTestsObjectClass parent_class;
818 };
819
820 struct _GIMarshallingTestsSubObject
821 {
822         GIMarshallingTestsObject parent_instance;
823 };
824
825 GType gi_marshalling_tests_sub_object_get_type (void) G_GNUC_CONST;
826
827 void gi_marshalling_tests_sub_object_sub_method (GIMarshallingTestsSubObject *object);
828 void gi_marshalling_tests_sub_object_overwritten_method (GIMarshallingTestsSubObject *object);
829
830 #define GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT             (gi_marshalling_tests_sub_sub_object_get_type ())
831 #define GI_MARSHALLING_TESTS_SUB_SUB_OBJECT(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT, GIMarshallingTestsSubSubObject))
832 #define GI_MARSHALLING_TESTS_SUB_SUB_OBJECT_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT, GIMarshallingTestsSubSubObjectClass))
833 #define GI_MARSHALLING_TESTS_IS_SUB_SUB_OBJECT(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT))
834 #define GI_MARSHALLING_TESTS_IS_SUB_SUB_OBJECT_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT))
835 #define GI_MARSHALLING_TESTS_SUB_SUB_OBJECT_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT, GIMarshallingTestsSubSubObjectClass))
836
837 typedef struct _GIMarshallingTestsSubSubObjectClass GIMarshallingTestsSubSubObjectClass;
838 typedef struct _GIMarshallingTestsSubSubObject GIMarshallingTestsSubSubObject;
839
840 struct _GIMarshallingTestsSubSubObjectClass
841 {
842         GIMarshallingTestsSubObjectClass parent_class;
843 };
844
845 struct _GIMarshallingTestsSubSubObject
846 {
847         GIMarshallingTestsSubObject parent_instance;
848 };
849
850 GType gi_marshalling_tests_sub_sub_object_get_type (void) G_GNUC_CONST;
851
852 /* Interfaces */
853
854 #define GI_MARSHALLING_TESTS_TYPE_INTERFACE              (gi_marshalling_tests_interface_get_type ())
855 #define GI_MARSHALLING_TESTS_INTERFACE(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE, GIMarshallingTestsInterface))
856 #define GI_MARSHALLING_TESTS_IS_INTERFACE(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE))
857 #define GI_MARSHALLING_TESTS_INTERFACE_GET_IFACE(obj)    (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GI_MARSHALLING_TESTS_TYPE_INTERFACE, GIMarshallingTestsInterfaceIface))
858
859 typedef struct _GIMarshallingTestsInterface GIMarshallingTestsInterface;
860 typedef struct _GIMarshallingTestsInterfaceIface GIMarshallingTestsInterfaceIface;
861
862 struct _GIMarshallingTestsInterfaceIface {
863     GTypeInterface base_iface;
864
865     /**
866      * GIMarshallingTestsInterfaceIface::test_int8_in:
867      * @in: (in):
868      */
869     void (* test_int8_in) (GIMarshallingTestsInterface *self, gint8 in);
870 };
871
872 GType gi_marshalling_tests_interface_get_type (void) G_GNUC_CONST;
873
874 void gi_marshalling_tests_interface_test_int8_in (GIMarshallingTestsInterface *self, gint8 in);
875
876 void gi_marshalling_tests_test_interface_test_int8_in (GIMarshallingTestsInterface *test_iface, gint8 in);
877
878 /* GIMarshallingTestsInterface2 allows us testing vfunc clashes when a class'
879    vfunc implementation ambiguously relates to its prototype */
880
881 #define GI_MARSHALLING_TESTS_TYPE_INTERFACE2              (gi_marshalling_tests_interface2_get_type ())
882 #define GI_MARSHALLING_TESTS_INTERFACE2(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE2, GIMarshallingTestsInterface2))
883 #define GI_MARSHALLING_TESTS_IS_INTERFACE2(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE2))
884 #define GI_MARSHALLING_TESTS_INTERFACE2_GET_IFACE(obj)    (G_TYPE_INSTANCE_GET_INTERFACE2 ((obj), GI_MARSHALLING_TESTS_TYPE_INTERFACE2, GIMarshallingTestsInterface2Iface))
885
886 typedef struct _GIMarshallingTestsInterface2 GIMarshallingTestsInterface2;
887 typedef struct _GIMarshallingTestsInterface2Iface GIMarshallingTestsInterface2Iface;
888
889 struct _GIMarshallingTestsInterface2Iface {
890     GTypeInterface base_iface;
891
892     /**
893      * GIMarshallingTestsInterface2Iface::test_int8_in:
894      * @in: (in):
895      */
896     void (* test_int8_in) (GIMarshallingTestsInterface2 *self, gint8 in);
897 };
898
899 GType gi_marshalling_tests_interface2_get_type (void) G_GNUC_CONST;
900
901
902 /* Multiple output arguments */
903
904 void gi_marshalling_tests_int_out_out (gint *int0, gint *int1);
905 void gi_marshalling_tests_int_three_in_three_out(gint a, gint b, gint c,
906                                                  gint *out0, gint *out1, gint *out2);
907 gint gi_marshalling_tests_int_return_out (gint *int_);
908
909
910 /* GError */
911
912 #define GI_MARSHALLING_TESTS_CONSTANT_GERROR_DOMAIN "gi-marshalling-tests-gerror-domain"
913 #define GI_MARSHALLING_TESTS_CONSTANT_GERROR_CODE 5
914 #define GI_MARSHALLING_TESTS_CONSTANT_GERROR_MESSAGE "gi-marshalling-tests-gerror-message"
915 #define GI_MARSHALLING_TESTS_CONSTANT_GERROR_DEBUG_MESSAGE "we got an error, life is shit"
916
917 void gi_marshalling_tests_gerror(GError **error);
918 void gi_marshalling_tests_gerror_array_in(gint *in_ints, GError **error);
919 void gi_marshalling_tests_gerror_out(GError **error, gchar **debug);
920 void gi_marshalling_tests_gerror_out_transfer_none(GError **err, const gchar **debug);
921 GError *gi_marshalling_tests_gerror_return(void);
922
923 /* Overrides */
924
925 #define GI_MARSHALLING_TESTS_OVERRIDES_CONSTANT 42
926
927
928 typedef struct {
929     glong long_;
930 } GIMarshallingTestsOverridesStruct;
931
932 GType gi_marshalling_tests_overrides_struct_get_type (void) G_GNUC_CONST;
933
934 GIMarshallingTestsOverridesStruct *gi_marshalling_tests_overrides_struct_new (void);
935
936 glong gi_marshalling_tests_overrides_struct_method (GIMarshallingTestsOverridesStruct *struct_);
937
938 GIMarshallingTestsOverridesStruct *gi_marshalling_tests_overrides_struct_returnv (void);
939
940
941 #define GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT             (gi_marshalling_tests_overrides_object_get_type ())
942 #define GI_MARSHALLING_TESTS_OVERRIDES_OBJECT(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT, GIMarshallingTestsOverridesObject))
943 #define GI_MARSHALLING_TESTS_OVERRIDES_OBJECT_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT, GIMarshallingTestsOverridesObjectClass))
944 #define GI_MARSHALLING_TESTS_IS_OVERRIDES_OBJECT(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT))
945 #define GI_MARSHALLING_TESTS_IS_OVERRIDES_OBJECT_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT))
946 #define GI_MARSHALLING_TESTS_OVERRIDES_OBJECT_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT, GIMarshallingTestsOverridesObjectClass))
947
948 typedef struct _GIMarshallingTestsOverridesObjectClass GIMarshallingTestsOverridesObjectClass;
949 typedef struct _GIMarshallingTestsOverridesObject GIMarshallingTestsOverridesObject;
950
951 struct _GIMarshallingTestsOverridesObjectClass
952 {
953     GObjectClass parent_class;
954 };
955
956 struct _GIMarshallingTestsOverridesObject
957 {
958     GObject parent_instance;
959
960     glong long_;
961 };
962
963 GType gi_marshalling_tests_overrides_object_get_type (void) G_GNUC_CONST;
964
965 GIMarshallingTestsOverridesObject *gi_marshalling_tests_overrides_object_new (void);
966
967 glong gi_marshalling_tests_overrides_object_method (GIMarshallingTestsOverridesObject *object);
968
969 GIMarshallingTestsOverridesObject *gi_marshalling_tests_overrides_object_returnv (void);
970
971 /* Properties Object */
972
973 #define GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT (gi_marshalling_tests_properties_object_get_type ())
974 #define GI_MARSHALLING_TESTS_PROPERTIES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT, GIMarshallingTestsPropertiesObject))
975 #define GI_MARSHALLING_TESTS_PROPERTIES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT, GIMarshallingTestsPropertiesObjectClass))
976 #define GI_MARSHALLING_TESTS_IS_PROPERTIES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT))
977 #define GI_MARSHALLING_TESTS_IS_PROPERTIES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT))
978 #define GI_MARSHALLING_TESTS_PROPERTIES_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT, GIMarshallingTestsPropertiesObjectClass))
979
980 typedef struct _GIMarshallingTestsPropertiesObject GIMarshallingTestsPropertiesObject;
981 typedef struct _GIMarshallingTestsPropertiesObjectClass GIMarshallingTestsPropertiesObjectClass;
982
983 struct _GIMarshallingTestsPropertiesObject {
984     GObject parent_instance;
985
986     gboolean some_boolean;
987     gchar some_char;
988     guchar some_uchar;
989     gint some_int;
990     guint some_uint;
991     glong some_long;
992     gulong some_ulong;
993     gint64 some_int64;
994     guint64 some_uint64;
995     gfloat some_float;
996     gdouble some_double;
997 };
998
999 struct _GIMarshallingTestsPropertiesObjectClass {
1000     GObjectClass parent_class;
1001 };
1002
1003 GType gi_marshalling_tests_properties_object_get_type (void) G_GNUC_CONST;
1004
1005 GIMarshallingTestsPropertiesObject *gi_marshalling_tests_properties_object_new (void);
1006
1007 #endif /* _GI_MARSHALLING_TESTS_H_ */