gobject-introspection 2.2.0-x86-mingw32 → 2.2.1-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +7 -7
  3. data/ext/gobject-introspection/rb-gi-argument.c +28 -3
  4. data/ext/gobject-introspection/rb-gi-constructor-info.c +6 -1
  5. data/ext/gobject-introspection/rb-gi-function-info.c +29 -4
  6. data/ext/gobject-introspection/rb-gi-loader.c +19 -3
  7. data/ext/gobject-introspection/rb-gi-struct-info.c +28 -16
  8. data/lib/2.0/gobject_introspection.so +0 -0
  9. data/lib/gobject-introspection/callable-info.rb +16 -7
  10. data/lib/gobject-introspection/loader.rb +47 -19
  11. data/test/test-object-info.rb +1 -1
  12. data/test/test-signal-info.rb +2 -2
  13. data/test/test-struct-info.rb +1 -1
  14. data/vendor/local/bin/g-ir-compiler.exe +0 -0
  15. data/vendor/local/bin/g-ir-generate.exe +0 -0
  16. data/vendor/local/bin/libgirepository-1.0-1.dll +0 -0
  17. data/vendor/local/include/gobject-introspection-1.0/giarginfo.h +30 -0
  18. data/vendor/local/include/gobject-introspection-1.0/gibaseinfo.h +31 -0
  19. data/vendor/local/include/gobject-introspection-1.0/gicallableinfo.h +36 -0
  20. data/vendor/local/include/gobject-introspection-1.0/giconstantinfo.h +12 -0
  21. data/vendor/local/include/gobject-introspection-1.0/gienuminfo.h +26 -0
  22. data/vendor/local/include/gobject-introspection-1.0/gifieldinfo.h +19 -0
  23. data/vendor/local/include/gobject-introspection-1.0/gifunctioninfo.h +23 -0
  24. data/vendor/local/include/gobject-introspection-1.0/giinterfaceinfo.h +38 -0
  25. data/vendor/local/include/gobject-introspection-1.0/giobjectinfo.h +72 -2
  26. data/vendor/local/include/gobject-introspection-1.0/gipropertyinfo.h +12 -0
  27. data/vendor/local/include/gobject-introspection-1.0/giregisteredtypeinfo.h +11 -0
  28. data/vendor/local/include/gobject-introspection-1.0/girepository.h +68 -8
  29. data/vendor/local/include/gobject-introspection-1.0/girffi.h +25 -1
  30. data/vendor/local/include/gobject-introspection-1.0/gisignalinfo.h +12 -0
  31. data/vendor/local/include/gobject-introspection-1.0/gistructinfo.h +24 -0
  32. data/vendor/local/include/gobject-introspection-1.0/gitypeinfo.h +31 -0
  33. data/vendor/local/include/gobject-introspection-1.0/gitypelib.h +25 -0
  34. data/vendor/local/include/gobject-introspection-1.0/gitypes.h +84 -13
  35. data/vendor/local/include/gobject-introspection-1.0/giunioninfo.h +27 -0
  36. data/vendor/local/include/gobject-introspection-1.0/giversionmacros.h +128 -0
  37. data/vendor/local/include/gobject-introspection-1.0/givfuncinfo.h +17 -0
  38. data/vendor/local/lib/girepository-1.0/GIRepository-2.0.typelib +0 -0
  39. data/vendor/local/lib/girepository-1.0/GLib-2.0.typelib +0 -0
  40. data/vendor/local/lib/girepository-1.0/GObject-2.0.typelib +0 -0
  41. data/vendor/local/lib/girepository-1.0/Gio-2.0.typelib +0 -0
  42. data/vendor/local/lib/girepository-1.0/libxml2-2.0.typelib +0 -0
  43. data/vendor/local/lib/girepository-1.0/win32-1.0.typelib +0 -0
  44. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyc +0 -0
  45. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyo +0 -0
  46. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.py +5 -4
  47. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyc +0 -0
  48. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyo +0 -0
  49. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.py +1865 -913
  50. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyc +0 -0
  51. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyo +0 -0
  52. data/vendor/local/lib/gobject-introspection/giscanner/ast.py +49 -16
  53. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyc +0 -0
  54. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyo +0 -0
  55. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.py +10 -4
  56. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyc +0 -0
  57. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyo +0 -0
  58. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.py +202 -0
  59. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyc +0 -0
  60. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyo +0 -0
  61. data/vendor/local/lib/gobject-introspection/giscanner/codegen.py +32 -1
  62. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyc +0 -0
  63. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyo +0 -0
  64. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.py +1 -0
  65. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyc +0 -0
  66. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyo +0 -0
  67. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.py +305 -0
  68. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyc +0 -0
  69. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyo +0 -0
  70. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyc +0 -0
  71. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyo +0 -0
  72. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyc +0 -0
  73. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyo +0 -0
  74. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/callback.tmpl +4 -0
  75. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/field.tmpl +1 -0
  76. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/function.tmpl +8 -9
  77. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/interface.tmpl +2 -0
  78. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/callback.tmpl +27 -0
  79. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/class.tmpl +17 -5
  80. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/enum.tmpl +8 -0
  81. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/field.tmpl +9 -0
  82. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl +12 -13
  83. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/interface.tmpl +17 -0
  84. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/property.tmpl +3 -4
  85. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/signal.tmpl +10 -9
  86. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/vfunc.tmpl +7 -7
  87. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/callback.tmpl +27 -0
  88. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/class.tmpl +5 -4
  89. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/field.tmpl +1 -0
  90. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/function.tmpl +8 -14
  91. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/interface.tmpl +16 -0
  92. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/property.tmpl +2 -3
  93. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/signal.tmpl +6 -7
  94. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/vfunc.tmpl +7 -13
  95. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/base.tmpl +10 -19
  96. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/class.tmpl +24 -3
  97. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/namespace.tmpl +4 -7
  98. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.py +375 -61
  99. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyc +0 -0
  100. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyo +0 -0
  101. data/vendor/local/lib/gobject-introspection/giscanner/dumper.py +43 -75
  102. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyc +0 -0
  103. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyo +0 -0
  104. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.py +1 -20
  105. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyc +0 -0
  106. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyo +0 -0
  107. data/vendor/local/lib/gobject-introspection/giscanner/girparser.py +33 -15
  108. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyc +0 -0
  109. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyo +0 -0
  110. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.py +51 -22
  111. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyc +0 -0
  112. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyo +0 -0
  113. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyc +0 -0
  114. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyo +0 -0
  115. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyc +0 -0
  116. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyo +0 -0
  117. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.py +285 -254
  118. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyc +0 -0
  119. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyo +0 -0
  120. data/vendor/local/lib/gobject-introspection/giscanner/message.py +41 -25
  121. data/vendor/local/lib/gobject-introspection/giscanner/message.pyc +0 -0
  122. data/vendor/local/lib/gobject-introspection/giscanner/message.pyo +0 -0
  123. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.py +67 -15
  124. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyc +0 -0
  125. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyo +0 -0
  126. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyc +0 -0
  127. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyo +0 -0
  128. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.py +10 -6
  129. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyc +0 -0
  130. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyo +0 -0
  131. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.py +14 -8
  132. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyc +0 -0
  133. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyo +0 -0
  134. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.py +16 -2
  135. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyc +0 -0
  136. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyo +0 -0
  137. data/vendor/local/lib/gobject-introspection/giscanner/transformer.py +150 -169
  138. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyc +0 -0
  139. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyo +0 -0
  140. data/vendor/local/lib/gobject-introspection/giscanner/utils.py +64 -3
  141. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyc +0 -0
  142. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyo +0 -0
  143. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.py +5 -44
  144. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyc +0 -0
  145. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyo +0 -0
  146. data/vendor/local/lib/libgirepository-1.0.a +0 -0
  147. data/vendor/local/lib/libgirepository-1.0.dll.a +0 -0
  148. data/vendor/local/lib/libgirepository-1.0.la +1 -1
  149. data/vendor/local/lib/pkgconfig/gobject-introspection-1.0.pc +4 -4
  150. data/vendor/local/lib/pkgconfig/gobject-introspection-no-export-1.0.pc +5 -5
  151. data/vendor/local/share/gir-1.0/GIRepository-2.0.gir +352 -143
  152. data/vendor/local/share/gir-1.0/GLib-2.0.gir +6402 -3872
  153. data/vendor/local/share/gir-1.0/GModule-2.0.gir +42 -24
  154. data/vendor/local/share/gir-1.0/GObject-2.0.gir +1543 -887
  155. data/vendor/local/share/gir-1.0/Gio-2.0.gir +10859 -3705
  156. data/vendor/local/share/gobject-introspection-1.0/tests/annotation.c +10 -14
  157. data/vendor/local/share/gobject-introspection-1.0/tests/annotation.h +112 -9
  158. data/vendor/local/share/gobject-introspection-1.0/tests/drawable.c +2 -0
  159. data/vendor/local/share/gobject-introspection-1.0/tests/drawable.h +11 -0
  160. data/vendor/local/share/gobject-introspection-1.0/tests/everything.c +106 -0
  161. data/vendor/local/share/gobject-introspection-1.0/tests/everything.h +107 -0
  162. data/vendor/local/share/gobject-introspection-1.0/tests/foo.c +3 -3
  163. data/vendor/local/share/gobject-introspection-1.0/tests/foo.h +145 -0
  164. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.c +166 -10
  165. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.h +790 -0
  166. data/vendor/local/share/gobject-introspection-1.0/tests/gitestmacros.h +10 -0
  167. data/vendor/local/share/gobject-introspection-1.0/tests/regress.c +79 -28
  168. data/vendor/local/share/gobject-introspection-1.0/tests/regress.h +462 -0
  169. data/vendor/local/share/gobject-introspection-1.0/tests/utility.c +2 -0
  170. data/vendor/local/share/gobject-introspection-1.0/tests/utility.h +7 -0
  171. data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.c +14 -0
  172. data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.h +10 -0
  173. data/vendor/local/share/man/man1/g-ir-compiler.1 +1 -10
  174. metadata +38 -23
  175. data/lib/1.9/gobject_introspection.so +0 -0
  176. data/lib/2.1/gobject_introspection.so +0 -0
@@ -10,146 +10,344 @@
10
10
  #include <string.h>
11
11
  #include <stdlib.h>
12
12
 
13
+ #include "gitestmacros.h"
14
+
15
+ _GI_TEST_EXTERN
13
16
  void regress_set_abort_on_error (gboolean abort_on_error);
14
17
 
15
18
  /* basic types */
19
+ _GI_TEST_EXTERN
16
20
  gboolean regress_test_boolean (gboolean in);
21
+
22
+ _GI_TEST_EXTERN
17
23
  gboolean regress_test_boolean_true (gboolean in);
24
+
25
+ _GI_TEST_EXTERN
18
26
  gboolean regress_test_boolean_false (gboolean in);
27
+
28
+ _GI_TEST_EXTERN
19
29
  gint8 regress_test_int8 (gint8 in);
30
+
31
+ _GI_TEST_EXTERN
20
32
  guint8 regress_test_uint8 (guint8 in);
33
+
34
+ _GI_TEST_EXTERN
21
35
  gint16 regress_test_int16 (gint16 in);
36
+
37
+ _GI_TEST_EXTERN
22
38
  guint16 regress_test_uint16 (guint16 in);
39
+
40
+ _GI_TEST_EXTERN
23
41
  gint32 regress_test_int32 (gint32 in);
42
+
43
+ _GI_TEST_EXTERN
24
44
  guint32 regress_test_uint32 (guint32 in);
45
+
46
+ _GI_TEST_EXTERN
25
47
  gint64 regress_test_int64 (gint64 in);
48
+
49
+ _GI_TEST_EXTERN
26
50
  guint64 regress_test_uint64 (guint64 in);
51
+
52
+ _GI_TEST_EXTERN
27
53
  gshort regress_test_short (gshort in);
54
+
55
+ _GI_TEST_EXTERN
28
56
  gushort regress_test_ushort (gushort in);
57
+
58
+ _GI_TEST_EXTERN
29
59
  gint regress_test_int (gint in);
60
+
61
+ _GI_TEST_EXTERN
30
62
  guint regress_test_uint (guint in);
63
+
64
+ _GI_TEST_EXTERN
31
65
  glong regress_test_long (glong in);
66
+
67
+ _GI_TEST_EXTERN
32
68
  gulong regress_test_ulong (gulong in);
69
+
70
+ _GI_TEST_EXTERN
33
71
  gssize regress_test_ssize (gssize in);
72
+
73
+ _GI_TEST_EXTERN
34
74
  gsize regress_test_size (gsize in);
75
+
76
+ _GI_TEST_EXTERN
35
77
  gfloat regress_test_float (gfloat in);
78
+
79
+ _GI_TEST_EXTERN
36
80
  gdouble regress_test_double (gdouble in);
81
+
82
+ _GI_TEST_EXTERN
37
83
  gunichar regress_test_unichar (gunichar in);
84
+
85
+ _GI_TEST_EXTERN
38
86
  time_t regress_test_timet (time_t in);
87
+
88
+ _GI_TEST_EXTERN
39
89
  GType regress_test_gtype (GType in);
40
90
 
41
91
  /* utf8 */
92
+ _GI_TEST_EXTERN
42
93
  const char *regress_test_utf8_const_return (void);
94
+
95
+ _GI_TEST_EXTERN
43
96
  char *regress_test_utf8_nonconst_return (void);
97
+
98
+ _GI_TEST_EXTERN
44
99
  void regress_test_utf8_const_in (const char *in);
100
+
101
+ _GI_TEST_EXTERN
45
102
  void regress_test_utf8_out (char **out);
103
+
104
+ _GI_TEST_EXTERN
46
105
  void regress_test_utf8_inout (char **inout);
106
+
107
+ _GI_TEST_EXTERN
47
108
  GSList *regress_test_filename_return (void);
109
+
110
+ _GI_TEST_EXTERN
48
111
  void regress_test_utf8_null_in (char *in);
112
+
113
+ _GI_TEST_EXTERN
49
114
  void regress_test_utf8_null_out (char **char_out);
50
115
 
51
116
  /* in arguments after out arguments */
117
+ _GI_TEST_EXTERN
52
118
  void regress_test_int_out_utf8 (int *length, const char *in);
53
119
 
54
120
  /* multiple output arguments */
121
+
122
+ _GI_TEST_EXTERN
55
123
  void regress_test_multi_double_args (gdouble in, gdouble *one, gdouble *two);
124
+
125
+ _GI_TEST_EXTERN
56
126
  void regress_test_utf8_out_out (char **out0, char **out1);
127
+
128
+ _GI_TEST_EXTERN
57
129
  char *regress_test_utf8_out_nonconst_return (char **out);
58
130
 
59
131
  /* non-basic-types */
60
132
  /* array */
133
+ _GI_TEST_EXTERN
61
134
  gboolean regress_test_strv_in (char **arr);
135
+
136
+ _GI_TEST_EXTERN
62
137
  int regress_test_array_int_in (int n_ints, int *ints);
138
+
139
+ _GI_TEST_EXTERN
63
140
  void regress_test_array_int_out (int *n_ints, int **ints);
141
+
142
+ _GI_TEST_EXTERN
64
143
  void regress_test_array_int_inout (int *n_ints, int **ints);
144
+
145
+ _GI_TEST_EXTERN
65
146
  int regress_test_array_gint8_in (int n_ints, gint8 *ints);
147
+
148
+ _GI_TEST_EXTERN
66
149
  int regress_test_array_gint16_in (int n_ints, gint16 *ints);
150
+
151
+ _GI_TEST_EXTERN
67
152
  gint32 regress_test_array_gint32_in (int n_ints, gint32 *ints);
153
+
154
+ _GI_TEST_EXTERN
68
155
  gint64 regress_test_array_gint64_in (int n_ints, gint64 *ints);
156
+
157
+ _GI_TEST_EXTERN
69
158
  char *regress_test_array_gtype_in (int n_types, GType *types);
159
+
160
+ _GI_TEST_EXTERN
70
161
  char **regress_test_strv_out_container (void);
162
+
163
+ _GI_TEST_EXTERN
71
164
  char **regress_test_strv_out (void);
165
+
166
+ _GI_TEST_EXTERN
72
167
  const char * const * regress_test_strv_out_c (void);
168
+
169
+ _GI_TEST_EXTERN
73
170
  void regress_test_strv_outarg (char ***retp);
171
+
172
+ _GI_TEST_EXTERN
74
173
  int regress_test_array_fixed_size_int_in (int *ints);
174
+
175
+ _GI_TEST_EXTERN
75
176
  void regress_test_array_fixed_size_int_out (int **ints);
177
+
178
+ _GI_TEST_EXTERN
76
179
  int *regress_test_array_fixed_size_int_return (void);
77
180
 
78
181
  /* transfer tests */
182
+ _GI_TEST_EXTERN
79
183
  int *regress_test_array_int_full_out(int *len);
184
+
185
+ _GI_TEST_EXTERN
80
186
  int *regress_test_array_int_none_out(int *len);
187
+
188
+ _GI_TEST_EXTERN
81
189
  void regress_test_array_int_null_in (int *arr, int len);
190
+
191
+ _GI_TEST_EXTERN
82
192
  void regress_test_array_int_null_out (int **arr, int *len);
83
193
 
84
194
  /* interface */
85
195
  /* GList */
196
+ _GI_TEST_EXTERN
86
197
  const GList *regress_test_glist_nothing_return (void);
198
+
199
+ _GI_TEST_EXTERN
87
200
  GList *regress_test_glist_nothing_return2 (void);
201
+
202
+ _GI_TEST_EXTERN
88
203
  GList *regress_test_glist_container_return (void);
204
+
205
+ _GI_TEST_EXTERN
89
206
  GList *regress_test_glist_everything_return (void);
207
+
208
+ _GI_TEST_EXTERN
90
209
  void regress_test_glist_nothing_in (const GList *in);
210
+
211
+ _GI_TEST_EXTERN
91
212
  void regress_test_glist_nothing_in2 (GList *in);
213
+
214
+ _GI_TEST_EXTERN
92
215
  void regress_test_glist_null_in(GSList *in);
216
+
217
+ _GI_TEST_EXTERN
93
218
  void regress_test_glist_null_out(GSList **out_list);
94
219
 
95
220
  /* GSList */
221
+ _GI_TEST_EXTERN
96
222
  const GSList *regress_test_gslist_nothing_return (void);
223
+
224
+ _GI_TEST_EXTERN
97
225
  GSList *regress_test_gslist_nothing_return2 (void);
226
+
227
+ _GI_TEST_EXTERN
98
228
  GSList *regress_test_gslist_container_return (void);
229
+
230
+ _GI_TEST_EXTERN
99
231
  GSList *regress_test_gslist_everything_return (void);
232
+
233
+ _GI_TEST_EXTERN
100
234
  void regress_test_gslist_nothing_in (const GSList *in);
235
+
236
+ _GI_TEST_EXTERN
101
237
  void regress_test_gslist_nothing_in2 (GSList *in);
238
+
239
+ _GI_TEST_EXTERN
102
240
  void regress_test_gslist_null_in(GSList *in);
241
+
242
+ _GI_TEST_EXTERN
103
243
  void regress_test_gslist_null_out(GSList **out_list);
104
244
 
105
245
  /* GHashTable */
246
+ _GI_TEST_EXTERN
106
247
  const GHashTable *regress_test_ghash_null_return (void);
248
+
249
+ _GI_TEST_EXTERN
107
250
  const GHashTable *regress_test_ghash_nothing_return (void);
251
+
252
+ _GI_TEST_EXTERN
108
253
  GHashTable *regress_test_ghash_nothing_return2 (void);
254
+
255
+ _GI_TEST_EXTERN
109
256
  GHashTable *regress_test_ghash_gvalue_return (void);
257
+
258
+ _GI_TEST_EXTERN
110
259
  void regress_test_ghash_gvalue_in (GHashTable *hash);
260
+
261
+ _GI_TEST_EXTERN
111
262
  GHashTable *regress_test_ghash_container_return (void);
263
+
264
+ _GI_TEST_EXTERN
112
265
  GHashTable *regress_test_ghash_everything_return (void);
266
+
267
+ _GI_TEST_EXTERN
113
268
  void regress_test_ghash_null_in (const GHashTable *in);
269
+
270
+ _GI_TEST_EXTERN
114
271
  void regress_test_ghash_null_out (const GHashTable **out);
272
+
273
+ _GI_TEST_EXTERN
115
274
  void regress_test_ghash_nothing_in (const GHashTable *in);
275
+
276
+ _GI_TEST_EXTERN
116
277
  void regress_test_ghash_nothing_in2 (GHashTable *in);
278
+
279
+ _GI_TEST_EXTERN
117
280
  GHashTable *regress_test_ghash_nested_everything_return (void);
281
+
282
+ _GI_TEST_EXTERN
118
283
  GHashTable *regress_test_ghash_nested_everything_return2 (void);
119
284
 
120
285
  /* GPtrArray */
286
+ _GI_TEST_EXTERN
121
287
  GPtrArray *regress_test_garray_container_return (void);
288
+
289
+ _GI_TEST_EXTERN
122
290
  GPtrArray *regress_test_garray_full_return (void);
123
291
 
124
292
  /* error? */
125
293
 
126
294
  /* closure */
295
+ _GI_TEST_EXTERN
127
296
  int regress_test_closure (GClosure *closure);
297
+
298
+ _GI_TEST_EXTERN
128
299
  int regress_test_closure_one_arg (GClosure *closure, int arg);
300
+
301
+ _GI_TEST_EXTERN
129
302
  GVariant *regress_test_closure_variant (GClosure *closure, GVariant* arg);
130
303
 
131
304
  /* value */
305
+ _GI_TEST_EXTERN
132
306
  int regress_test_int_value_arg(const GValue *v);
307
+
308
+ _GI_TEST_EXTERN
133
309
  const GValue *regress_test_value_return(int i);
134
310
 
135
311
  /* foreign structs */
136
312
  #ifndef _GI_DISABLE_CAIRO
313
+ _GI_TEST_EXTERN
137
314
  cairo_t *regress_test_cairo_context_full_return (void);
315
+
316
+ _GI_TEST_EXTERN
138
317
  void regress_test_cairo_context_none_in (cairo_t *context);
139
318
 
319
+
320
+ _GI_TEST_EXTERN
140
321
  cairo_surface_t *regress_test_cairo_surface_none_return (void);
322
+
323
+ _GI_TEST_EXTERN
141
324
  cairo_surface_t *regress_test_cairo_surface_full_return (void);
325
+
326
+ _GI_TEST_EXTERN
142
327
  void regress_test_cairo_surface_none_in (cairo_surface_t *surface);
328
+
329
+ _GI_TEST_EXTERN
143
330
  void regress_test_cairo_surface_full_out (cairo_surface_t **surface);
144
331
  #endif
145
332
 
146
333
  /* versioning (deprecated, since, stability) */
334
+ _GI_TEST_EXTERN
147
335
  void regress_test_versioning (void);
148
336
 
337
+
338
+ _GI_TEST_EXTERN
149
339
  GVariant *regress_test_gvariant_i (void);
340
+
341
+ _GI_TEST_EXTERN
150
342
  GVariant *regress_test_gvariant_s (void);
343
+
344
+ _GI_TEST_EXTERN
151
345
  GVariant *regress_test_gvariant_asv (void);
346
+
347
+ _GI_TEST_EXTERN
152
348
  GVariant *regress_test_gvariant_v (void);
349
+
350
+ _GI_TEST_EXTERN
153
351
  GVariant *regress_test_gvariant_as (void);
154
352
 
155
353
  /* enums / flags */
@@ -184,10 +382,15 @@ typedef enum
184
382
  REGRESS_TEST_FLAG3 = 1 << 2,
185
383
  } RegressTestFlags;
186
384
 
385
+ _GI_TEST_EXTERN
187
386
  GType regress_test_enum_get_type (void) G_GNUC_CONST;
188
387
  #define REGRESS_TEST_TYPE_ENUM (regress_test_enum_get_type ())
388
+
389
+ _GI_TEST_EXTERN
189
390
  GType regress_test_enum_unsigned_get_type (void) G_GNUC_CONST;
190
391
  #define REGRESS_TEST_TYPE_ENUM_UNSIGNED (regress_test_enum_unsigned_get_type ())
392
+
393
+ _GI_TEST_EXTERN
191
394
  GType regress_test_flags_get_type (void) G_GNUC_CONST;
192
395
  #define REGRESS_TEST_TYPE_FLAGS (regress_test_flags_get_type ())
193
396
 
@@ -209,9 +412,14 @@ typedef enum
209
412
  REGRESS_TEST_EVALUE3 = '0'
210
413
  } RegressTestEnumNoGEnum;
211
414
 
415
+ _GI_TEST_EXTERN
212
416
  const gchar * regress_test_enum_param(RegressTestEnum e);
417
+
418
+ _GI_TEST_EXTERN
213
419
  const gchar * regress_test_unsigned_enum_param(RegressTestEnumUnsigned e);
214
420
 
421
+
422
+ _GI_TEST_EXTERN
215
423
  void regress_global_get_flags_out (RegressTestFlags *v);
216
424
 
217
425
  /* error domains */
@@ -223,7 +431,10 @@ typedef enum
223
431
  REGRESS_TEST_ERROR_CODE3 = 3
224
432
  } RegressTestError;
225
433
 
434
+ _GI_TEST_EXTERN
226
435
  GType regress_test_error_get_type (void);
436
+
437
+ _GI_TEST_EXTERN
227
438
  GQuark regress_test_error_quark (void);
228
439
 
229
440
  /* Test weird names, with and without
@@ -236,7 +447,10 @@ typedef enum
236
447
  REGRESS_TEST_ABC_ERROR_CODE3 = 3
237
448
  } RegressTestABCError;
238
449
 
450
+ _GI_TEST_EXTERN
239
451
  GType regress_test_abc_error_get_type (void);
452
+
453
+ _GI_TEST_EXTERN
240
454
  GQuark regress_test_abc_error_quark (void);
241
455
 
242
456
  typedef enum
@@ -250,7 +464,10 @@ typedef enum
250
464
  The difference is intentional, although it
251
465
  is mainly meant for capitalization problems.
252
466
  */
467
+ _GI_TEST_EXTERN
253
468
  GType regress_test_unconventional_error_get_type (void);
469
+
470
+ _GI_TEST_EXTERN
254
471
  GQuark regress_test_unconventional_error_quark (void);
255
472
 
256
473
  typedef enum
@@ -260,6 +477,7 @@ typedef enum
260
477
  REGRESS_TEST_DEF_ERROR_CODE2 = 2
261
478
  } RegressTestDEFError;
262
479
 
480
+ _GI_TEST_EXTERN
263
481
  GQuark regress_test_def_error_quark (void);
264
482
 
265
483
  /* the scanner used to have problem
@@ -273,6 +491,7 @@ typedef enum
273
491
  REGRESS_ATEST_ERROR_CODE2 = 2
274
492
  } RegressATestError;
275
493
 
494
+ _GI_TEST_EXTERN
276
495
  GQuark regress_atest_error_quark (void);
277
496
 
278
497
 
@@ -283,6 +502,7 @@ GQuark regress_atest_error_quark (void);
283
502
  #define REGRESS_DOUBLE_CONSTANT 44.22
284
503
  #define REGRESS_STRING_CONSTANT "Some String"
285
504
  #define REGRESS_Mixed_Case_Constant 4423
505
+ #define REGRESS_BOOL_CONSTANT TRUE
286
506
  #define REGRESS_G_GINT64_CONSTANT (G_GINT64_CONSTANT (1000))
287
507
  #define REGRESS_GUINT64_CONSTANT ((guint64) -1)
288
508
 
@@ -304,8 +524,11 @@ struct _RegressTestStructA
304
524
  RegressTestEnum some_enum;
305
525
  };
306
526
 
527
+ _GI_TEST_EXTERN
307
528
  void regress_test_struct_a_clone (RegressTestStructA *a,
308
529
  RegressTestStructA *a_out);
530
+
531
+ _GI_TEST_EXTERN
309
532
  void regress_test_struct_a_parse (RegressTestStructA *a_out, const gchar *string);
310
533
 
311
534
  struct _RegressTestStructB
@@ -314,6 +537,7 @@ struct _RegressTestStructB
314
537
  RegressTestStructA nested_a;
315
538
  };
316
539
 
540
+ _GI_TEST_EXTERN
317
541
  void regress_test_struct_b_clone (RegressTestStructB *b,
318
542
  RegressTestStructB *b_out);
319
543
 
@@ -385,10 +609,17 @@ struct _RegressTestSimpleBoxedA
385
609
  };
386
610
 
387
611
  /* Intentionally uses _get_gtype */
612
+ _GI_TEST_EXTERN
388
613
  GType regress_test_simple_boxed_a_get_gtype (void);
614
+
615
+ _GI_TEST_EXTERN
389
616
  RegressTestSimpleBoxedA *regress_test_simple_boxed_a_copy (RegressTestSimpleBoxedA *a);
617
+
618
+ _GI_TEST_EXTERN
390
619
  gboolean regress_test_simple_boxed_a_equals (RegressTestSimpleBoxedA *a,
391
620
  RegressTestSimpleBoxedA *other_a);
621
+
622
+ _GI_TEST_EXTERN
392
623
  const RegressTestSimpleBoxedA *regress_test_simple_boxed_a_const_return (void);
393
624
 
394
625
 
@@ -398,7 +629,11 @@ struct _RegressTestSimpleBoxedB
398
629
  RegressTestSimpleBoxedA nested_a;
399
630
  };
400
631
 
632
+
633
+ _GI_TEST_EXTERN
401
634
  GType regress_test_simple_boxed_b_get_type (void);
635
+
636
+ _GI_TEST_EXTERN
402
637
  RegressTestSimpleBoxedB *regress_test_simple_boxed_b_copy (RegressTestSimpleBoxedB *b);
403
638
 
404
639
  /* opaque boxed */
@@ -415,16 +650,36 @@ struct _RegressTestBoxed
415
650
  RegressTestBoxedPrivate *priv;
416
651
  };
417
652
 
653
+ _GI_TEST_EXTERN
418
654
  GType regress_test_boxed_get_type (void);
655
+
656
+ _GI_TEST_EXTERN
419
657
  RegressTestBoxed *regress_test_boxed_new (void);
658
+
659
+ _GI_TEST_EXTERN
420
660
  RegressTestBoxed *regress_test_boxed_new_alternative_constructor1 (int i);
661
+
662
+ _GI_TEST_EXTERN
421
663
  RegressTestBoxed *regress_test_boxed_new_alternative_constructor2 (int i, int j);
664
+
665
+ _GI_TEST_EXTERN
422
666
  RegressTestBoxed *regress_test_boxed_new_alternative_constructor3 (char *s);
423
667
 
668
+
669
+ _GI_TEST_EXTERN
424
670
  RegressTestBoxed *regress_test_boxed_copy (RegressTestBoxed *boxed);
671
+
672
+ _GI_TEST_EXTERN
425
673
  gboolean regress_test_boxed_equals (RegressTestBoxed *boxed,
426
674
  RegressTestBoxed *other);
427
675
 
676
+
677
+ _GI_TEST_EXTERN
678
+ void regress_test_boxeds_not_a_method (RegressTestBoxed *boxed);
679
+
680
+ _GI_TEST_EXTERN
681
+ void regress_test_boxeds_not_a_static (void);
682
+
428
683
  typedef struct _RegressTestBoxedB RegressTestBoxedB;
429
684
 
430
685
  struct _RegressTestBoxedB
@@ -433,8 +688,14 @@ struct _RegressTestBoxedB
433
688
  glong some_long;
434
689
  };
435
690
 
691
+
692
+ _GI_TEST_EXTERN
436
693
  GType regress_test_boxed_b_get_type (void);
694
+
695
+ _GI_TEST_EXTERN
437
696
  RegressTestBoxedB *regress_test_boxed_b_new (gint8 some_int8, glong some_long);
697
+
698
+ _GI_TEST_EXTERN
438
699
  RegressTestBoxedB *regress_test_boxed_b_copy (RegressTestBoxedB *boxed);
439
700
 
440
701
  typedef struct _RegressTestBoxedC RegressTestBoxedC;
@@ -445,17 +706,30 @@ struct _RegressTestBoxedC
445
706
  guint another_thing;
446
707
  };
447
708
 
709
+ _GI_TEST_EXTERN
448
710
  GType regress_test_boxed_c_get_type (void);
711
+
712
+ _GI_TEST_EXTERN
449
713
  RegressTestBoxedC *regress_test_boxed_c_new (void);
450
714
 
451
715
  typedef struct _RegressTestBoxedD RegressTestBoxedD;
452
716
 
717
+
718
+ _GI_TEST_EXTERN
453
719
  GType regress_test_boxed_d_get_type (void);
454
720
 
721
+
722
+ _GI_TEST_EXTERN
455
723
  RegressTestBoxedD *regress_test_boxed_d_new (const char *a_string, int a_int);
724
+
725
+ _GI_TEST_EXTERN
456
726
  RegressTestBoxedD *regress_test_boxed_d_copy (RegressTestBoxedD *boxed);
727
+
728
+ _GI_TEST_EXTERN
457
729
  void regress_test_boxed_d_free (RegressTestBoxedD *boxed);
458
730
 
731
+
732
+ _GI_TEST_EXTERN
459
733
  int regress_test_boxed_d_get_magic (RegressTestBoxedD *boxed);
460
734
 
461
735
  /* gobject */
@@ -484,8 +758,13 @@ struct _RegressTestObj
484
758
  double some_double;
485
759
  char* string;
486
760
  GType gtype;
761
+
762
+ /* < private > */
763
+ void (*function_ptr) (void);
487
764
  };
488
765
 
766
+ typedef void (*RegressTestExternallyDefinedCallback) (RegressTestObj *obj, int someint);
767
+
489
768
  struct _RegressTestObjClass
490
769
  {
491
770
  GObjectClass parent_class;
@@ -501,26 +780,58 @@ struct _RegressTestObjClass
501
780
  guint test_signal;
502
781
  guint test_signal_with_static_scope_arg;
503
782
 
783
+ RegressTestExternallyDefinedCallback complex_vfunc;
784
+
504
785
  /* Should be replaced with simple "gpointer" and not be callback */
505
786
  void (*_regress_reserved1) (void);
506
787
  void (*_regress_reserved2) (void);
507
788
  };
508
789
 
790
+ _GI_TEST_EXTERN
509
791
  GType regress_test_obj_get_type (void);
792
+
793
+ _GI_TEST_EXTERN
510
794
  RegressTestObj* regress_test_obj_new (RegressTestObj *obj);
795
+
796
+ _GI_TEST_EXTERN
511
797
  RegressTestObj* regress_constructor (void);
798
+
799
+ _GI_TEST_EXTERN
512
800
  RegressTestObj* regress_test_obj_new_from_file (const char *x, GError **error);
801
+
802
+ _GI_TEST_EXTERN
513
803
  void regress_test_obj_set_bare (RegressTestObj *obj, GObject *bare);
804
+
805
+ _GI_TEST_EXTERN
514
806
  void regress_test_obj_emit_sig_with_obj (RegressTestObj *obj);
807
+
808
+ _GI_TEST_EXTERN
515
809
  void regress_test_obj_emit_sig_with_foreign_struct (RegressTestObj *obj);
810
+
811
+ _GI_TEST_EXTERN
516
812
  void regress_test_obj_emit_sig_with_int64 (RegressTestObj *obj);
813
+
814
+ _GI_TEST_EXTERN
517
815
  void regress_test_obj_emit_sig_with_uint64 (RegressTestObj *obj);
816
+
817
+ _GI_TEST_EXTERN
518
818
  int regress_test_obj_instance_method (RegressTestObj *obj);
819
+
820
+ _GI_TEST_EXTERN
821
+ void regress_test_obj_instance_method_full (RegressTestObj *obj);
822
+
823
+ _GI_TEST_EXTERN
519
824
  double regress_test_obj_static_method (int x);
825
+
826
+ _GI_TEST_EXTERN
520
827
  void regress_forced_method (RegressTestObj *obj);
521
828
 
829
+
830
+ _GI_TEST_EXTERN
522
831
  void regress_test_array_fixed_out_objects (RegressTestObj ***objs);
523
832
 
833
+
834
+ _GI_TEST_EXTERN
524
835
  void regress_test_obj_torture_signature_0 (RegressTestObj *obj,
525
836
  int x,
526
837
  double *y,
@@ -528,6 +839,8 @@ void regress_test_obj_torture_signature_0 (RegressTestObj *obj,
528
839
  const char *foo,
529
840
  int *q,
530
841
  guint m);
842
+
843
+ _GI_TEST_EXTERN
531
844
  gboolean regress_test_obj_torture_signature_1 (RegressTestObj *obj,
532
845
  int x,
533
846
  double *y,
@@ -537,6 +850,8 @@ gboolean regress_test_obj_torture_signature_1 (RegressTestObj *obj,
537
850
  guint m,
538
851
  GError **error);
539
852
 
853
+
854
+ _GI_TEST_EXTERN
540
855
  gboolean regress_test_obj_skip_return_val (RegressTestObj *obj,
541
856
  gint a,
542
857
  gint *out_b,
@@ -547,10 +862,14 @@ gboolean regress_test_obj_skip_return_val (RegressTestObj *obj,
547
862
  gint num2,
548
863
  GError **error);
549
864
 
865
+
866
+ _GI_TEST_EXTERN
550
867
  gboolean regress_test_obj_skip_return_val_no_out (RegressTestObj *obj,
551
868
  gint a,
552
869
  GError **error);
553
870
 
871
+
872
+ _GI_TEST_EXTERN
554
873
  gboolean regress_test_obj_skip_param (RegressTestObj *obj,
555
874
  gint a,
556
875
  gint *out_b,
@@ -561,6 +880,8 @@ gboolean regress_test_obj_skip_param (RegressTestObj *obj,
561
880
  gint num2,
562
881
  GError **error);
563
882
 
883
+
884
+ _GI_TEST_EXTERN
564
885
  gboolean regress_test_obj_skip_out_param (RegressTestObj *obj,
565
886
  gint a,
566
887
  gint *out_b,
@@ -571,6 +892,8 @@ gboolean regress_test_obj_skip_out_param (RegressTestObj *obj,
571
892
  gint num2,
572
893
  GError **error);
573
894
 
895
+
896
+ _GI_TEST_EXTERN
574
897
  gboolean regress_test_obj_skip_inout_param (RegressTestObj *obj,
575
898
  gint a,
576
899
  gint *out_b,
@@ -582,9 +905,14 @@ gboolean regress_test_obj_skip_inout_param (RegressTestObj *obj,
582
905
  GError **error);
583
906
 
584
907
  /* virtual */
908
+ _GI_TEST_EXTERN
585
909
  int regress_test_obj_do_matrix (RegressTestObj *obj, const char *somestr);
586
910
 
911
+
912
+ _GI_TEST_EXTERN
587
913
  void regress_func_obj_null_in (RegressTestObj *obj);
914
+
915
+ _GI_TEST_EXTERN
588
916
  void regress_test_obj_null_out (RegressTestObj **obj);
589
917
 
590
918
  /* inheritance */
@@ -606,9 +934,17 @@ struct _RegressTestSubObjClass
606
934
  RegressTestObjClass parent_class;
607
935
  };
608
936
 
937
+
938
+ _GI_TEST_EXTERN
609
939
  GType regress_test_sub_obj_get_type (void);
940
+
941
+ _GI_TEST_EXTERN
610
942
  RegressTestObj* regress_test_sub_obj_new (void);
943
+
944
+ _GI_TEST_EXTERN
611
945
  void regress_test_sub_obj_unset_bare (RegressTestSubObj *obj);
946
+
947
+ _GI_TEST_EXTERN
612
948
  int regress_test_sub_obj_instance_method (RegressTestSubObj *obj);
613
949
 
614
950
  /* fundamental object */
@@ -644,13 +980,21 @@ struct _RegressTestFundamentalObjectClass {
644
980
  RegressTestFundamentalObjectFinalizeFunction finalize;
645
981
  };
646
982
 
983
+ _GI_TEST_EXTERN
647
984
  GType regress_test_fundamental_object_get_type (void);
985
+
986
+ _GI_TEST_EXTERN
648
987
  RegressTestFundamentalObject* regress_test_fundamental_object_ref (RegressTestFundamentalObject *fundamental_object);
988
+
989
+ _GI_TEST_EXTERN
649
990
  void regress_test_fundamental_object_unref (RegressTestFundamentalObject *fundamental_object);
650
991
 
651
992
  #define REGRESS_TEST_VALUE_HOLDS_FUNDAMENTAL_OBJECT(value) (G_VALUE_HOLDS(value, REGRESS_TEST_TYPE_FUNDAMENTAL_OBJECT))
652
993
 
994
+ _GI_TEST_EXTERN
653
995
  void regress_test_value_set_fundamental_object (GValue *value, RegressTestFundamentalObject *fundamental_object);
996
+
997
+ _GI_TEST_EXTERN
654
998
  RegressTestFundamentalObject* regress_test_value_get_fundamental_object (const GValue *value);
655
999
 
656
1000
  typedef struct _RegressTestFundamentalSubObject RegressTestFundamentalSubObject;
@@ -666,8 +1010,12 @@ struct _RegressTestFundamentalSubObjectClass {
666
1010
  RegressTestFundamentalObjectClass fundamental_object_class;
667
1011
  };
668
1012
 
1013
+
1014
+ _GI_TEST_EXTERN
669
1015
  GType regress_test_fundamental_sub_object_get_type(void);
670
1016
 
1017
+
1018
+ _GI_TEST_EXTERN
671
1019
  RegressTestFundamentalSubObject *
672
1020
  regress_test_fundamental_sub_object_new (const char *data);
673
1021
 
@@ -701,35 +1049,81 @@ typedef int (*RegressTestCallbackFull) (int foo, double bar, char *path);
701
1049
  * @two_length:
702
1050
  */
703
1051
  typedef int (*RegressTestCallbackArray) (int *one, gsize one_length, const char** two, int two_length);
1052
+ /**
1053
+ * RegressTestCallbackArrayInOut:
1054
+ * @ints: (inout) (array length=length):
1055
+ * @length: (inout):
1056
+ */
1057
+ typedef void (* RegressTestCallbackArrayInOut) (int **ints, int *length);
704
1058
 
1059
+ _GI_TEST_EXTERN
705
1060
  void regress_test_simple_callback (RegressTestSimpleCallback callback);
1061
+
1062
+ _GI_TEST_EXTERN
706
1063
  int regress_test_callback (RegressTestCallback callback);
1064
+
1065
+ _GI_TEST_EXTERN
707
1066
  int regress_test_multi_callback (RegressTestCallback callback);
1067
+
1068
+ _GI_TEST_EXTERN
708
1069
  int regress_test_array_callback (RegressTestCallbackArray callback);
1070
+
1071
+ _GI_TEST_EXTERN
1072
+ int regress_test_array_inout_callback (RegressTestCallbackArrayInOut callback);
1073
+
1074
+ _GI_TEST_EXTERN
709
1075
  int regress_test_callback_user_data (RegressTestCallbackUserData callback,
710
1076
  gpointer user_data);
1077
+
1078
+ _GI_TEST_EXTERN
711
1079
  int regress_test_callback_destroy_notify (RegressTestCallbackUserData callback,
712
1080
  gpointer user_data,
713
1081
  GDestroyNotify notify);
1082
+
1083
+ _GI_TEST_EXTERN
714
1084
  int regress_test_callback_destroy_notify_no_user_data (RegressTestCallbackUserData callback,
715
1085
  GDestroyNotify notify);
1086
+
1087
+ _GI_TEST_EXTERN
716
1088
  int regress_test_callback_thaw_notifications (void);
717
1089
 
1090
+
1091
+ _GI_TEST_EXTERN
718
1092
  void regress_test_callback_async (RegressTestCallbackUserData callback, gpointer user_data);
1093
+
1094
+ _GI_TEST_EXTERN
719
1095
  int regress_test_callback_thaw_async (void);
720
1096
 
1097
+
1098
+ _GI_TEST_EXTERN
721
1099
  void regress_test_async_ready_callback (GAsyncReadyCallback callback);
722
1100
 
1101
+
1102
+ _GI_TEST_EXTERN
723
1103
  void regress_test_obj_instance_method_callback (RegressTestObj *obj, RegressTestCallback callback);
1104
+
1105
+ _GI_TEST_EXTERN
724
1106
  void regress_test_obj_static_method_callback (RegressTestCallback callback);
1107
+
1108
+ _GI_TEST_EXTERN
725
1109
  RegressTestObj *regress_test_obj_new_callback (RegressTestCallbackUserData callback,
726
1110
  gpointer user_data,
727
1111
  GDestroyNotify notify);
1112
+
1113
+ _GI_TEST_EXTERN
728
1114
  void regress_test_hash_table_callback (GHashTable *data, RegressTestCallbackHashtable callback);
1115
+
1116
+ _GI_TEST_EXTERN
729
1117
  void regress_test_gerror_callback (RegressTestCallbackGError callback);
1118
+
1119
+ _GI_TEST_EXTERN
730
1120
  void regress_test_null_gerror_callback (RegressTestCallbackGError callback);
1121
+
1122
+ _GI_TEST_EXTERN
731
1123
  void regress_test_owned_gerror_callback (RegressTestCallbackOwnedGError callback);
732
1124
 
1125
+
1126
+ _GI_TEST_EXTERN
733
1127
  void regress_test_skip_unannotated_callback (RegressTestCallback callback);
734
1128
 
735
1129
  typedef struct _RegressTestInterface RegressTestInterface;
@@ -746,6 +1140,7 @@ struct _RegressTestInterfaceIface {
746
1140
  GTypeInterface base_iface;
747
1141
  };
748
1142
 
1143
+ _GI_TEST_EXTERN
749
1144
  GType regress_test_interface_get_type (void) G_GNUC_CONST;
750
1145
 
751
1146
  /* gobject with non-standard prefix */
@@ -766,10 +1161,20 @@ typedef struct
766
1161
  GObjectClass parent_class;
767
1162
  } RegressTestWi8021xClass;
768
1163
 
1164
+
1165
+ _GI_TEST_EXTERN
769
1166
  GType regress_test_wi_802_1x_get_type (void);
1167
+
1168
+ _GI_TEST_EXTERN
770
1169
  RegressTestWi8021x* regress_test_wi_802_1x_new (void);
1170
+
1171
+ _GI_TEST_EXTERN
771
1172
  gboolean regress_test_wi_802_1x_get_testbool (RegressTestWi8021x *obj);
1173
+
1174
+ _GI_TEST_EXTERN
772
1175
  void regress_test_wi_802_1x_set_testbool (RegressTestWi8021x *obj, gboolean v);
1176
+
1177
+ _GI_TEST_EXTERN
773
1178
  int regress_test_wi_802_1x_static_method (int x);
774
1179
 
775
1180
  /* floating gobject */
@@ -788,16 +1193,24 @@ typedef struct
788
1193
  GInitiallyUnownedClass parent_class;
789
1194
  } RegressTestFloatingClass;
790
1195
 
1196
+
1197
+ _GI_TEST_EXTERN
791
1198
  GType regress_test_floating_get_type (void);
1199
+
1200
+ _GI_TEST_EXTERN
792
1201
  RegressTestFloating* regress_test_floating_new (void);
793
1202
 
794
1203
  /* Function signature torture tests */
1204
+
1205
+ _GI_TEST_EXTERN
795
1206
  void regress_test_torture_signature_0 (int x,
796
1207
  double *y,
797
1208
  int *z,
798
1209
  const char *foo,
799
1210
  int *q,
800
1211
  guint m);
1212
+
1213
+ _GI_TEST_EXTERN
801
1214
  gboolean regress_test_torture_signature_1 (int x,
802
1215
  double *y,
803
1216
  int *z,
@@ -805,6 +1218,8 @@ gboolean regress_test_torture_signature_1 (int x,
805
1218
  int *q,
806
1219
  guint m,
807
1220
  GError **error);
1221
+
1222
+ _GI_TEST_EXTERN
808
1223
  void regress_test_torture_signature_2 (int x,
809
1224
  RegressTestCallbackUserData callback,
810
1225
  gpointer user_data,
@@ -815,12 +1230,22 @@ void regress_test_torture_signature_2 (int x,
815
1230
  int *q,
816
1231
  guint m);
817
1232
 
1233
+
1234
+ _GI_TEST_EXTERN
818
1235
  GValue *regress_test_date_in_gvalue (void);
1236
+
1237
+ _GI_TEST_EXTERN
819
1238
  GValue *regress_test_strv_in_gvalue (void);
820
1239
 
1240
+
1241
+ _GI_TEST_EXTERN
821
1242
  GObject * _regress_this_is_a_private_symbol (void);
822
1243
 
1244
+
1245
+ _GI_TEST_EXTERN
823
1246
  void regress_test_multiline_doc_comments (void);
1247
+
1248
+ _GI_TEST_EXTERN
824
1249
  void regress_test_nested_parameter (int a);
825
1250
 
826
1251
  /**
@@ -835,6 +1260,8 @@ typedef struct
835
1260
  double v;
836
1261
  } RegressSkippedStructure;
837
1262
 
1263
+
1264
+ _GI_TEST_EXTERN
838
1265
  void regress_random_function_with_skipped_structure (int x,
839
1266
  RegressSkippedStructure *foo,
840
1267
  double v);
@@ -862,6 +1289,8 @@ typedef RegressIntset RegressIntSet;
862
1289
  */
863
1290
  typedef GPtrArray RegressPtrArrayAlias;
864
1291
 
1292
+
1293
+ _GI_TEST_EXTERN
865
1294
  void regress_introspectable_via_alias (RegressPtrArrayAlias *data);
866
1295
 
867
1296
  /**
@@ -871,6 +1300,8 @@ void regress_introspectable_via_alias (RegressPtrArrayAlias *data);
871
1300
  */
872
1301
  typedef va_list RegressVaListAlias;
873
1302
 
1303
+
1304
+ _GI_TEST_EXTERN
874
1305
  void regress_not_introspectable_via_alias (RegressVaListAlias ok);
875
1306
 
876
1307
  /**
@@ -880,6 +1311,8 @@ void regress_not_introspectable_via_alias (RegressVaListAlias ok);
880
1311
  */
881
1312
  typedef RegressTestBoxed RegressAliasedTestBoxed;
882
1313
 
1314
+
1315
+ _GI_TEST_EXTERN
883
1316
  void regress_aliased_caller_alloc (RegressAliasedTestBoxed *boxed);
884
1317
 
885
1318
  /* private testing */
@@ -905,12 +1338,16 @@ typedef struct {
905
1338
  gint array[10];
906
1339
  } RegressTestStructFixedArray;
907
1340
 
1341
+
1342
+ _GI_TEST_EXTERN
908
1343
  void regress_test_struct_fixed_array_frob (RegressTestStructFixedArray *str);
909
1344
 
910
1345
  typedef struct {
911
1346
  gchar name[32];
912
1347
  } RegressLikeXklConfigItem;
913
1348
 
1349
+
1350
+ _GI_TEST_EXTERN
914
1351
  void regress_like_xkl_config_item_set_name (RegressLikeXklConfigItem *self,
915
1352
  const char *name);
916
1353
 
@@ -928,6 +1365,7 @@ void regress_like_xkl_config_item_set_name (RegressLikeXklConfigItem *self,
928
1365
  "POWERSHARE,PRODIGY,TLX,X400,GIF,CGM,WMF,BMP,MET,PMB,DIB,PICT,TIFF," \
929
1366
  "PDF,PS,JPEG,QTIME,MPEG,MPEG2,AVI,WAVE,AIFF,PCM,X509,PGP"
930
1367
 
1368
+ _GI_TEST_EXTERN
931
1369
  void regress_has_parameter_named_attrs (int foo,
932
1370
  gpointer attributes);
933
1371
 
@@ -950,4 +1388,28 @@ typedef struct {
950
1388
  #define REGRESS_MININT64 ((gint64) G_GINT64_CONSTANT(0x8000000000000000))
951
1389
  #define REGRESS_MAXUINT64 (G_GINT64_CONSTANT(0xffffffffffffffffU))
952
1390
 
1391
+ /* https://bugzilla.gnome.org/show_bug.cgi?id=698367 */
1392
+ #ifndef __GI_SCANNER__
1393
+ #define REGRESS_DONTSCANTHIS 1
1394
+ #else
1395
+ #define REGRESS_GI_SCANNER_ELSE 3
1396
+ #endif
1397
+ #ifndef BLAH
1398
+ #ifdef __GI_SCANNER__
1399
+ #define REGRESS_GI_SCANNER_IFDEF 3
1400
+ #endif
1401
+ #endif
1402
+
1403
+ /* This struct is one pattern by which padding can be consumed, if
1404
+ * you're willing to take a hard dependency on anonymous unions. */
1405
+ typedef struct {
1406
+ int x;
1407
+
1408
+ union {
1409
+ RegressLikeGnomeKeyringPasswordSchema *a[2];
1410
+
1411
+ guint padding[4];
1412
+ };
1413
+ } RegressAnAnonymousUnion;
1414
+
953
1415
  #endif /* __GITESTTYPES_H__ */