gobject-introspection 2.2.4-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (294) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +129 -0
  3. data/ext/gobject-introspection/depend +10 -0
  4. data/ext/gobject-introspection/extconf.rb +94 -0
  5. data/ext/gobject-introspection/gobject_introspection.def +5 -0
  6. data/ext/gobject-introspection/rb-gi-arg-info.c +151 -0
  7. data/ext/gobject-introspection/rb-gi-argument.c +2053 -0
  8. data/ext/gobject-introspection/rb-gi-base-info.c +218 -0
  9. data/ext/gobject-introspection/rb-gi-boxed-info.c +48 -0
  10. data/ext/gobject-introspection/rb-gi-callable-info.c +104 -0
  11. data/ext/gobject-introspection/rb-gi-callback-info.c +48 -0
  12. data/ext/gobject-introspection/rb-gi-constant-info.c +77 -0
  13. data/ext/gobject-introspection/rb-gi-constructor-info.c +133 -0
  14. data/ext/gobject-introspection/rb-gi-conversions.h +145 -0
  15. data/ext/gobject-introspection/rb-gi-enum-info.c +155 -0
  16. data/ext/gobject-introspection/rb-gi-field-info.c +153 -0
  17. data/ext/gobject-introspection/rb-gi-flags-info.c +48 -0
  18. data/ext/gobject-introspection/rb-gi-function-info.c +841 -0
  19. data/ext/gobject-introspection/rb-gi-interface-info.c +222 -0
  20. data/ext/gobject-introspection/rb-gi-loader.c +224 -0
  21. data/ext/gobject-introspection/rb-gi-method-info.c +83 -0
  22. data/ext/gobject-introspection/rb-gi-object-info.c +345 -0
  23. data/ext/gobject-introspection/rb-gi-private.h +105 -0
  24. data/ext/gobject-introspection/rb-gi-property-info.c +77 -0
  25. data/ext/gobject-introspection/rb-gi-registered-type-info.c +86 -0
  26. data/ext/gobject-introspection/rb-gi-repository.c +246 -0
  27. data/ext/gobject-introspection/rb-gi-signal-info.c +77 -0
  28. data/ext/gobject-introspection/rb-gi-struct-info.c +202 -0
  29. data/ext/gobject-introspection/rb-gi-type-info.c +143 -0
  30. data/ext/gobject-introspection/rb-gi-type-tag.c +43 -0
  31. data/ext/gobject-introspection/rb-gi-types.h +71 -0
  32. data/ext/gobject-introspection/rb-gi-union-info.c +206 -0
  33. data/ext/gobject-introspection/rb-gi-unresolved-info.c +48 -0
  34. data/ext/gobject-introspection/rb-gi-value-info.c +57 -0
  35. data/ext/gobject-introspection/rb-gi-vfunc-info.c +91 -0
  36. data/ext/gobject-introspection/rb-gobject-introspection.c +44 -0
  37. data/ext/gobject-introspection/rb-gobject-introspection.h +60 -0
  38. data/extconf.rb +71 -0
  39. data/lib/2.0/gobject_introspection.so +0 -0
  40. data/lib/2.1/gobject_introspection.so +0 -0
  41. data/lib/2.2/gobject_introspection.so +0 -0
  42. data/lib/gobject-introspection.rb +53 -0
  43. data/lib/gobject-introspection/boxed-info.rb +28 -0
  44. data/lib/gobject-introspection/callable-info.rb +100 -0
  45. data/lib/gobject-introspection/collection-reader.rb +34 -0
  46. data/lib/gobject-introspection/interface-info.rb +32 -0
  47. data/lib/gobject-introspection/loader.rb +465 -0
  48. data/lib/gobject-introspection/object-info.rb +33 -0
  49. data/lib/gobject-introspection/repository.rb +32 -0
  50. data/lib/gobject-introspection/struct-info.rb +28 -0
  51. data/lib/gobject-introspection/union-info.rb +28 -0
  52. data/test/gobject-introspection-test-utils.rb +26 -0
  53. data/test/run-test.rb +45 -0
  54. data/test/test-arg-info.rb +68 -0
  55. data/test/test-base-info.rb +31 -0
  56. data/test/test-boxed-info.rb +21 -0
  57. data/test/test-callable-info.rb +49 -0
  58. data/test/test-callback-info.rb +29 -0
  59. data/test/test-constant-info.rb +24 -0
  60. data/test/test-enum-info.rb +61 -0
  61. data/test/test-field-type.rb +42 -0
  62. data/test/test-flags-info.rb +27 -0
  63. data/test/test-function-info.rb +39 -0
  64. data/test/test-interface-info.rb +97 -0
  65. data/test/test-loader.rb +30 -0
  66. data/test/test-object-info.rb +131 -0
  67. data/test/test-property-info.rb +38 -0
  68. data/test/test-registered-type-info.rb +35 -0
  69. data/test/test-repository.rb +62 -0
  70. data/test/test-signal-info.rb +40 -0
  71. data/test/test-struct-info.rb +57 -0
  72. data/test/test-type-info.rb +62 -0
  73. data/test/test-type-tag.rb +29 -0
  74. data/test/test-union-info.rb +21 -0
  75. data/test/test-value-info.rb +28 -0
  76. data/test/test-vfunc-info.rb +42 -0
  77. data/vendor/local/bin/g-ir-compiler.exe +0 -0
  78. data/vendor/local/bin/g-ir-generate.exe +0 -0
  79. data/vendor/local/bin/libgirepository-1.0-1.dll +0 -0
  80. data/vendor/local/include/gobject-introspection-1.0/giarginfo.h +82 -0
  81. data/vendor/local/include/gobject-introspection-1.0/gibaseinfo.h +120 -0
  82. data/vendor/local/include/gobject-introspection-1.0/gicallableinfo.h +110 -0
  83. data/vendor/local/include/gobject-introspection-1.0/giconstantinfo.h +58 -0
  84. data/vendor/local/include/gobject-introspection-1.0/gienuminfo.h +82 -0
  85. data/vendor/local/include/gobject-introspection-1.0/gifieldinfo.h +71 -0
  86. data/vendor/local/include/gobject-introspection-1.0/gifunctioninfo.h +100 -0
  87. data/vendor/local/include/gobject-introspection-1.0/giinterfaceinfo.h +106 -0
  88. data/vendor/local/include/gobject-introspection-1.0/giobjectinfo.h +207 -0
  89. data/vendor/local/include/gobject-introspection-1.0/gipropertyinfo.h +56 -0
  90. data/vendor/local/include/gobject-introspection-1.0/giregisteredtypeinfo.h +64 -0
  91. data/vendor/local/include/gobject-introspection-1.0/girepository.h +239 -0
  92. data/vendor/local/include/gobject-introspection-1.0/girffi.h +104 -0
  93. data/vendor/local/include/gobject-introspection-1.0/gisignalinfo.h +57 -0
  94. data/vendor/local/include/gobject-introspection-1.0/gistructinfo.h +77 -0
  95. data/vendor/local/include/gobject-introspection-1.0/gitypeinfo.h +87 -0
  96. data/vendor/local/include/gobject-introspection-1.0/gitypelib.h +80 -0
  97. data/vendor/local/include/gobject-introspection-1.0/gitypes.h +524 -0
  98. data/vendor/local/include/gobject-introspection-1.0/giunioninfo.h +84 -0
  99. data/vendor/local/include/gobject-introspection-1.0/giversionmacros.h +128 -0
  100. data/vendor/local/include/gobject-introspection-1.0/givfuncinfo.h +73 -0
  101. data/vendor/local/lib/girepository-1.0/DBus-1.0.typelib +0 -0
  102. data/vendor/local/lib/girepository-1.0/DBusGLib-1.0.typelib +0 -0
  103. data/vendor/local/lib/girepository-1.0/GIRepository-2.0.typelib +0 -0
  104. data/vendor/local/lib/girepository-1.0/GL-1.0.typelib +0 -0
  105. data/vendor/local/lib/girepository-1.0/GLib-2.0.typelib +0 -0
  106. data/vendor/local/lib/girepository-1.0/GModule-2.0.typelib +0 -0
  107. data/vendor/local/lib/girepository-1.0/GObject-2.0.typelib +0 -0
  108. data/vendor/local/lib/girepository-1.0/Gio-2.0.typelib +0 -0
  109. data/vendor/local/lib/girepository-1.0/cairo-1.0.typelib +0 -0
  110. data/vendor/local/lib/girepository-1.0/fontconfig-2.0.typelib +0 -0
  111. data/vendor/local/lib/girepository-1.0/freetype2-2.0.typelib +0 -0
  112. data/vendor/local/lib/girepository-1.0/libxml2-2.0.typelib +0 -0
  113. data/vendor/local/lib/girepository-1.0/win32-1.0.typelib +0 -0
  114. data/vendor/local/lib/girepository-1.0/xfixes-4.0.typelib +0 -0
  115. data/vendor/local/lib/girepository-1.0/xft-2.0.typelib +0 -0
  116. data/vendor/local/lib/girepository-1.0/xlib-2.0.typelib +0 -0
  117. data/vendor/local/lib/girepository-1.0/xrandr-1.3.typelib +0 -0
  118. data/vendor/local/lib/gobject-introspection/giscanner/__init__.py +24 -0
  119. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyc +0 -0
  120. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyo +0 -0
  121. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.py +76 -0
  122. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyc +0 -0
  123. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyo +0 -0
  124. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.py +2161 -0
  125. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyc +0 -0
  126. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyo +0 -0
  127. data/vendor/local/lib/gobject-introspection/giscanner/ast.py +1139 -0
  128. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyc +0 -0
  129. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyo +0 -0
  130. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.py +203 -0
  131. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyc +0 -0
  132. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyo +0 -0
  133. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.py +202 -0
  134. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyc +0 -0
  135. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyo +0 -0
  136. data/vendor/local/lib/gobject-introspection/giscanner/codegen.py +173 -0
  137. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyc +0 -0
  138. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyo +0 -0
  139. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.py +23 -0
  140. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyc +0 -0
  141. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyo +0 -0
  142. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.py +305 -0
  143. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyc +0 -0
  144. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyo +0 -0
  145. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.py +120 -0
  146. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyc +0 -0
  147. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyo +0 -0
  148. data/vendor/local/lib/gobject-introspection/giscanner/docmain.py +72 -0
  149. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyc +0 -0
  150. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyo +0 -0
  151. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/callback.tmpl +4 -0
  152. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/class.tmpl +2 -0
  153. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/constructor.tmpl +1 -0
  154. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/default.tmpl +1 -0
  155. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/enum.tmpl +2 -0
  156. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/field.tmpl +1 -0
  157. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/function.tmpl +60 -0
  158. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/interface.tmpl +2 -0
  159. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/method.tmpl +1 -0
  160. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/namespace.tmpl +1 -0
  161. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/property.tmpl +5 -0
  162. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/record.tmpl +1 -0
  163. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/signal.tmpl +5 -0
  164. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/vfunc.tmpl +4 -0
  165. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/callback.tmpl +27 -0
  166. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/class.tmpl +30 -0
  167. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/constructor.tmpl +1 -0
  168. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/default.tmpl +1 -0
  169. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/enum.tmpl +21 -0
  170. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/field.tmpl +9 -0
  171. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl +47 -0
  172. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/interface.tmpl +17 -0
  173. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/method.tmpl +1 -0
  174. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/namespace.tmpl +2 -0
  175. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/property.tmpl +9 -0
  176. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/record.tmpl +2 -0
  177. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/signal.tmpl +38 -0
  178. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/vfunc.tmpl +27 -0
  179. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/callback.tmpl +27 -0
  180. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/class.tmpl +18 -0
  181. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/constructor.tmpl +1 -0
  182. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/default.tmpl +1 -0
  183. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/enum.tmpl +13 -0
  184. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/field.tmpl +1 -0
  185. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/function.tmpl +47 -0
  186. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/interface.tmpl +16 -0
  187. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/method.tmpl +1 -0
  188. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/namespace.tmpl +2 -0
  189. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/property.tmpl +9 -0
  190. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/record.tmpl +2 -0
  191. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/signal.tmpl +41 -0
  192. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/vfunc.tmpl +27 -0
  193. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/base.tmpl +20 -0
  194. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/class.tmpl +61 -0
  195. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/namespace.tmpl +16 -0
  196. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.py +958 -0
  197. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyc +0 -0
  198. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyo +0 -0
  199. data/vendor/local/lib/gobject-introspection/giscanner/dumper.py +338 -0
  200. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyc +0 -0
  201. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyo +0 -0
  202. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.py +529 -0
  203. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyc +0 -0
  204. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyo +0 -0
  205. data/vendor/local/lib/gobject-introspection/giscanner/girparser.py +593 -0
  206. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyc +0 -0
  207. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyo +0 -0
  208. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.py +612 -0
  209. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyc +0 -0
  210. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyo +0 -0
  211. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.py +240 -0
  212. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyc +0 -0
  213. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyo +0 -0
  214. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.py +76 -0
  215. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyc +0 -0
  216. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyo +0 -0
  217. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.py +1366 -0
  218. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyc +0 -0
  219. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyo +0 -0
  220. data/vendor/local/lib/gobject-introspection/giscanner/message.py +203 -0
  221. data/vendor/local/lib/gobject-introspection/giscanner/message.pyc +0 -0
  222. data/vendor/local/lib/gobject-introspection/giscanner/message.pyo +0 -0
  223. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.py +561 -0
  224. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyc +0 -0
  225. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyo +0 -0
  226. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.py +152 -0
  227. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyc +0 -0
  228. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyo +0 -0
  229. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.py +140 -0
  230. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyc +0 -0
  231. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyo +0 -0
  232. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.py +329 -0
  233. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyc +0 -0
  234. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyo +0 -0
  235. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.py +136 -0
  236. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyc +0 -0
  237. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyo +0 -0
  238. data/vendor/local/lib/gobject-introspection/giscanner/transformer.py +971 -0
  239. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyc +0 -0
  240. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyo +0 -0
  241. data/vendor/local/lib/gobject-introspection/giscanner/utils.py +211 -0
  242. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyc +0 -0
  243. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyo +0 -0
  244. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.py +156 -0
  245. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyc +0 -0
  246. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyo +0 -0
  247. data/vendor/local/lib/libgirepository-1.0.a +0 -0
  248. data/vendor/local/lib/libgirepository-1.0.dll.a +0 -0
  249. data/vendor/local/lib/libgirepository-1.0.la +41 -0
  250. data/vendor/local/lib/pkgconfig/gobject-introspection-1.0.pc +26 -0
  251. data/vendor/local/lib/pkgconfig/gobject-introspection-no-export-1.0.pc +23 -0
  252. data/vendor/local/lib/pkgconfig/patched +0 -0
  253. data/vendor/local/share/aclocal/introspection.m4 +96 -0
  254. data/vendor/local/share/gir-1.0/DBus-1.0.gir +32 -0
  255. data/vendor/local/share/gir-1.0/DBusGLib-1.0.gir +18 -0
  256. data/vendor/local/share/gir-1.0/GIRepository-2.0.gir +4042 -0
  257. data/vendor/local/share/gir-1.0/GL-1.0.gir +31 -0
  258. data/vendor/local/share/gir-1.0/GLib-2.0.gir +47221 -0
  259. data/vendor/local/share/gir-1.0/GModule-2.0.gir +301 -0
  260. data/vendor/local/share/gir-1.0/GObject-2.0.gir +14733 -0
  261. data/vendor/local/share/gir-1.0/Gio-2.0.gir +82459 -0
  262. data/vendor/local/share/gir-1.0/cairo-1.0.gir +70 -0
  263. data/vendor/local/share/gir-1.0/fontconfig-2.0.gir +18 -0
  264. data/vendor/local/share/gir-1.0/freetype2-2.0.gir +22 -0
  265. data/vendor/local/share/gir-1.0/libxml2-2.0.gir +25 -0
  266. data/vendor/local/share/gir-1.0/win32-1.0.gir +19 -0
  267. data/vendor/local/share/gir-1.0/xfixes-4.0.gir +10 -0
  268. data/vendor/local/share/gir-1.0/xft-2.0.gir +23 -0
  269. data/vendor/local/share/gir-1.0/xlib-2.0.gir +67 -0
  270. data/vendor/local/share/gir-1.0/xrandr-1.3.gir +16 -0
  271. data/vendor/local/share/gobject-introspection-1.0/Makefile.introspection +166 -0
  272. data/vendor/local/share/gobject-introspection-1.0/gdump.c +569 -0
  273. data/vendor/local/share/gobject-introspection-1.0/tests/annotation.c +831 -0
  274. data/vendor/local/share/gobject-introspection-1.0/tests/annotation.h +301 -0
  275. data/vendor/local/share/gobject-introspection-1.0/tests/drawable.c +57 -0
  276. data/vendor/local/share/gobject-introspection-1.0/tests/drawable.h +44 -0
  277. data/vendor/local/share/gobject-introspection-1.0/tests/everything.c +1579 -0
  278. data/vendor/local/share/gobject-introspection-1.0/tests/everything.h +535 -0
  279. data/vendor/local/share/gobject-introspection-1.0/tests/foo.c +790 -0
  280. data/vendor/local/share/gobject-introspection-1.0/tests/foo.h +582 -0
  281. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.c +5426 -0
  282. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.h +1948 -0
  283. data/vendor/local/share/gobject-introspection-1.0/tests/gitestmacros.h +10 -0
  284. data/vendor/local/share/gobject-introspection-1.0/tests/regress.c +4068 -0
  285. data/vendor/local/share/gobject-introspection-1.0/tests/regress.h +1415 -0
  286. data/vendor/local/share/gobject-introspection-1.0/tests/utility.c +47 -0
  287. data/vendor/local/share/gobject-introspection-1.0/tests/utility.h +102 -0
  288. data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.c +47 -0
  289. data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.h +46 -0
  290. data/vendor/local/share/license/gobject-introspection/AUTHORS +9 -0
  291. data/vendor/local/share/license/gobject-introspection/COPYING +12 -0
  292. data/vendor/local/share/man/man1/g-ir-compiler.1 +42 -0
  293. data/vendor/local/share/man/man1/g-ir-generate.1 +29 -0
  294. metadata +363 -0
@@ -0,0 +1,1948 @@
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
+ #include "gitestmacros.h"
8
+
9
+ #ifndef __GI_MARSHALLING_TESTS_H__
10
+ #define __GI_MARSHALLING_TESTS_H__
11
+
12
+ typedef struct _GIMarshallingTestsSimpleStruct GIMarshallingTestsSimpleStruct;
13
+ typedef struct _GIMarshallingTestsBoxedStruct GIMarshallingTestsBoxedStruct;
14
+
15
+ /* Constants */
16
+
17
+ #define GI_MARSHALLING_TESTS_CONSTANT_NUMBER 42
18
+ #define GI_MARSHALLING_TESTS_CONSTANT_UTF8 "const \xe2\x99\xa5 utf8"
19
+
20
+
21
+ /* Booleans */
22
+
23
+ _GI_TEST_EXTERN
24
+ gboolean gi_marshalling_tests_boolean_return_true (void);
25
+
26
+ _GI_TEST_EXTERN
27
+ gboolean gi_marshalling_tests_boolean_return_false (void);
28
+
29
+
30
+ _GI_TEST_EXTERN
31
+ void gi_marshalling_tests_boolean_in_true (gboolean v);
32
+
33
+ _GI_TEST_EXTERN
34
+ void gi_marshalling_tests_boolean_in_false (gboolean v);
35
+
36
+
37
+ _GI_TEST_EXTERN
38
+ void gi_marshalling_tests_boolean_out_true (gboolean *v);
39
+
40
+ _GI_TEST_EXTERN
41
+ void gi_marshalling_tests_boolean_out_false (gboolean *v);
42
+
43
+
44
+ _GI_TEST_EXTERN
45
+ void gi_marshalling_tests_boolean_inout_true_false (gboolean *v);
46
+
47
+ _GI_TEST_EXTERN
48
+ void gi_marshalling_tests_boolean_inout_false_true (gboolean *v);
49
+
50
+
51
+ /* Integers */
52
+
53
+ _GI_TEST_EXTERN
54
+ gint8 gi_marshalling_tests_int8_return_max (void);
55
+
56
+ _GI_TEST_EXTERN
57
+ gint8 gi_marshalling_tests_int8_return_min (void);
58
+
59
+
60
+ _GI_TEST_EXTERN
61
+ void gi_marshalling_tests_int8_in_max (gint8 v);
62
+
63
+ _GI_TEST_EXTERN
64
+ void gi_marshalling_tests_int8_in_min (gint8 v);
65
+
66
+
67
+ _GI_TEST_EXTERN
68
+ void gi_marshalling_tests_int8_out_max (gint8 *v);
69
+
70
+ _GI_TEST_EXTERN
71
+ void gi_marshalling_tests_int8_out_min (gint8 *v);
72
+
73
+
74
+ _GI_TEST_EXTERN
75
+ void gi_marshalling_tests_int8_inout_max_min (gint8 *v);
76
+
77
+ _GI_TEST_EXTERN
78
+ void gi_marshalling_tests_int8_inout_min_max (gint8 *v);
79
+
80
+
81
+
82
+ _GI_TEST_EXTERN
83
+ guint8 gi_marshalling_tests_uint8_return (void);
84
+
85
+
86
+ _GI_TEST_EXTERN
87
+ void gi_marshalling_tests_uint8_in (guint8 v);
88
+
89
+
90
+ _GI_TEST_EXTERN
91
+ void gi_marshalling_tests_uint8_out (guint8 *v);
92
+
93
+ _GI_TEST_EXTERN
94
+ void gi_marshalling_tests_uint8_inout (guint8 *v);
95
+
96
+
97
+ _GI_TEST_EXTERN
98
+ gint16 gi_marshalling_tests_int16_return_max (void);
99
+
100
+ _GI_TEST_EXTERN
101
+ gint16 gi_marshalling_tests_int16_return_min (void);
102
+
103
+
104
+ _GI_TEST_EXTERN
105
+ void gi_marshalling_tests_int16_in_max (gint16 v);
106
+
107
+ _GI_TEST_EXTERN
108
+ void gi_marshalling_tests_int16_in_min (gint16 v);
109
+
110
+
111
+ _GI_TEST_EXTERN
112
+ void gi_marshalling_tests_int16_out_max (gint16 *v);
113
+
114
+ _GI_TEST_EXTERN
115
+ void gi_marshalling_tests_int16_out_min (gint16 *v);
116
+
117
+
118
+ _GI_TEST_EXTERN
119
+ void gi_marshalling_tests_int16_inout_max_min (gint16 *v);
120
+
121
+ _GI_TEST_EXTERN
122
+ void gi_marshalling_tests_int16_inout_min_max (gint16 *v);
123
+
124
+
125
+
126
+ _GI_TEST_EXTERN
127
+ guint16 gi_marshalling_tests_uint16_return (void);
128
+
129
+
130
+ _GI_TEST_EXTERN
131
+ void gi_marshalling_tests_uint16_in (guint16 v);
132
+
133
+
134
+ _GI_TEST_EXTERN
135
+ void gi_marshalling_tests_uint16_out (guint16 *v);
136
+
137
+ _GI_TEST_EXTERN
138
+ void gi_marshalling_tests_uint16_inout (guint16 *v);
139
+
140
+
141
+
142
+ _GI_TEST_EXTERN
143
+ gint32 gi_marshalling_tests_int32_return_max (void);
144
+
145
+ _GI_TEST_EXTERN
146
+ gint32 gi_marshalling_tests_int32_return_min (void);
147
+
148
+
149
+ _GI_TEST_EXTERN
150
+ void gi_marshalling_tests_int32_in_max (gint32 v);
151
+
152
+ _GI_TEST_EXTERN
153
+ void gi_marshalling_tests_int32_in_min (gint32 v);
154
+
155
+
156
+ _GI_TEST_EXTERN
157
+ void gi_marshalling_tests_int32_out_max (gint32 *v);
158
+
159
+ _GI_TEST_EXTERN
160
+ void gi_marshalling_tests_int32_out_min (gint32 *v);
161
+
162
+
163
+ _GI_TEST_EXTERN
164
+ void gi_marshalling_tests_int32_inout_max_min (gint32 *v);
165
+
166
+ _GI_TEST_EXTERN
167
+ void gi_marshalling_tests_int32_inout_min_max (gint32 *v);
168
+
169
+
170
+
171
+ _GI_TEST_EXTERN
172
+ guint32 gi_marshalling_tests_uint32_return (void);
173
+
174
+
175
+ _GI_TEST_EXTERN
176
+ void gi_marshalling_tests_uint32_in (guint32 v);
177
+
178
+
179
+ _GI_TEST_EXTERN
180
+ void gi_marshalling_tests_uint32_out (guint32 *v);
181
+
182
+ _GI_TEST_EXTERN
183
+ void gi_marshalling_tests_uint32_inout (guint32 *v);
184
+
185
+
186
+
187
+ _GI_TEST_EXTERN
188
+ gint64 gi_marshalling_tests_int64_return_max (void);
189
+
190
+ _GI_TEST_EXTERN
191
+ gint64 gi_marshalling_tests_int64_return_min (void);
192
+
193
+
194
+ _GI_TEST_EXTERN
195
+ void gi_marshalling_tests_int64_in_max (gint64 v);
196
+
197
+ _GI_TEST_EXTERN
198
+ void gi_marshalling_tests_int64_in_min (gint64 v);
199
+
200
+
201
+ _GI_TEST_EXTERN
202
+ void gi_marshalling_tests_int64_out_max (gint64 *v);
203
+
204
+ _GI_TEST_EXTERN
205
+ void gi_marshalling_tests_int64_out_min (gint64 *v);
206
+
207
+
208
+ _GI_TEST_EXTERN
209
+ void gi_marshalling_tests_int64_inout_max_min (gint64 *v);
210
+
211
+ _GI_TEST_EXTERN
212
+ void gi_marshalling_tests_int64_inout_min_max (gint64 *v);
213
+
214
+
215
+
216
+ _GI_TEST_EXTERN
217
+ guint64 gi_marshalling_tests_uint64_return (void);
218
+
219
+
220
+ _GI_TEST_EXTERN
221
+ void gi_marshalling_tests_uint64_in (guint64 v);
222
+
223
+
224
+ _GI_TEST_EXTERN
225
+ void gi_marshalling_tests_uint64_out (guint64 *v);
226
+
227
+ _GI_TEST_EXTERN
228
+ void gi_marshalling_tests_uint64_inout (guint64 *v);
229
+
230
+
231
+
232
+ _GI_TEST_EXTERN
233
+ gshort gi_marshalling_tests_short_return_max (void);
234
+
235
+ _GI_TEST_EXTERN
236
+ gshort gi_marshalling_tests_short_return_min (void);
237
+
238
+
239
+ _GI_TEST_EXTERN
240
+ void gi_marshalling_tests_short_in_max (gshort short_);
241
+
242
+ _GI_TEST_EXTERN
243
+ void gi_marshalling_tests_short_in_min (gshort short_);
244
+
245
+
246
+ _GI_TEST_EXTERN
247
+ void gi_marshalling_tests_short_out_max (gshort *short_);
248
+
249
+ _GI_TEST_EXTERN
250
+ void gi_marshalling_tests_short_out_min (gshort *short_);
251
+
252
+
253
+ _GI_TEST_EXTERN
254
+ void gi_marshalling_tests_short_inout_max_min (gshort *short_);
255
+
256
+ _GI_TEST_EXTERN
257
+ void gi_marshalling_tests_short_inout_min_max (gshort *short_);
258
+
259
+
260
+
261
+ _GI_TEST_EXTERN
262
+ gushort gi_marshalling_tests_ushort_return (void);
263
+
264
+
265
+ _GI_TEST_EXTERN
266
+ void gi_marshalling_tests_ushort_in (gushort ushort_);
267
+
268
+
269
+ _GI_TEST_EXTERN
270
+ void gi_marshalling_tests_ushort_out (gushort *ushort_);
271
+
272
+ _GI_TEST_EXTERN
273
+ void gi_marshalling_tests_ushort_inout (gushort *ushort_);
274
+
275
+
276
+
277
+ _GI_TEST_EXTERN
278
+ gint gi_marshalling_tests_int_return_max (void);
279
+
280
+ _GI_TEST_EXTERN
281
+ gint gi_marshalling_tests_int_return_min (void);
282
+
283
+
284
+ _GI_TEST_EXTERN
285
+ void gi_marshalling_tests_int_in_max (gint int_);
286
+
287
+ _GI_TEST_EXTERN
288
+ void gi_marshalling_tests_int_in_min (gint int_);
289
+
290
+
291
+ _GI_TEST_EXTERN
292
+ void gi_marshalling_tests_int_out_max (gint *int_);
293
+
294
+ _GI_TEST_EXTERN
295
+ void gi_marshalling_tests_int_out_min (gint *int_);
296
+
297
+
298
+ _GI_TEST_EXTERN
299
+ void gi_marshalling_tests_int_inout_max_min (gint *int_);
300
+
301
+ _GI_TEST_EXTERN
302
+ void gi_marshalling_tests_int_inout_min_max (gint *int_);
303
+
304
+
305
+ _GI_TEST_EXTERN
306
+ guint gi_marshalling_tests_uint_return (void);
307
+
308
+
309
+ _GI_TEST_EXTERN
310
+ void gi_marshalling_tests_uint_in (guint uint_);
311
+
312
+
313
+ _GI_TEST_EXTERN
314
+ void gi_marshalling_tests_uint_out (guint *uint_);
315
+
316
+ _GI_TEST_EXTERN
317
+ void gi_marshalling_tests_uint_inout (guint *uint_);
318
+
319
+
320
+ _GI_TEST_EXTERN
321
+ glong gi_marshalling_tests_long_return_max (void);
322
+
323
+ _GI_TEST_EXTERN
324
+ glong gi_marshalling_tests_long_return_min (void);
325
+
326
+
327
+ _GI_TEST_EXTERN
328
+ void gi_marshalling_tests_long_in_max (glong long_);
329
+
330
+ _GI_TEST_EXTERN
331
+ void gi_marshalling_tests_long_in_min (glong long_);
332
+
333
+
334
+ _GI_TEST_EXTERN
335
+ void gi_marshalling_tests_long_out_max (glong *long_);
336
+
337
+ _GI_TEST_EXTERN
338
+ void gi_marshalling_tests_long_out_min (glong *long_);
339
+
340
+
341
+ _GI_TEST_EXTERN
342
+ void gi_marshalling_tests_long_inout_max_min (glong *long_);
343
+
344
+ _GI_TEST_EXTERN
345
+ void gi_marshalling_tests_long_inout_min_max (glong *long_);
346
+
347
+
348
+ _GI_TEST_EXTERN
349
+ gulong gi_marshalling_tests_ulong_return (void);
350
+
351
+
352
+ _GI_TEST_EXTERN
353
+ void gi_marshalling_tests_ulong_in (gulong ulong_);
354
+
355
+
356
+ _GI_TEST_EXTERN
357
+ void gi_marshalling_tests_ulong_out (gulong *ulong_);
358
+
359
+ _GI_TEST_EXTERN
360
+ void gi_marshalling_tests_ulong_inout (gulong *ulong_);
361
+
362
+
363
+ _GI_TEST_EXTERN
364
+ gssize gi_marshalling_tests_ssize_return_max (void);
365
+
366
+ _GI_TEST_EXTERN
367
+ gssize gi_marshalling_tests_ssize_return_min (void);
368
+
369
+
370
+ _GI_TEST_EXTERN
371
+ void gi_marshalling_tests_ssize_in_max (gssize ssize);
372
+
373
+ _GI_TEST_EXTERN
374
+ void gi_marshalling_tests_ssize_in_min (gssize ssize);
375
+
376
+
377
+ _GI_TEST_EXTERN
378
+ void gi_marshalling_tests_ssize_out_max (gssize *ssize);
379
+
380
+ _GI_TEST_EXTERN
381
+ void gi_marshalling_tests_ssize_out_min (gssize *ssize);
382
+
383
+
384
+ _GI_TEST_EXTERN
385
+ void gi_marshalling_tests_ssize_inout_max_min (gssize *ssize);
386
+
387
+ _GI_TEST_EXTERN
388
+ void gi_marshalling_tests_ssize_inout_min_max (gssize *ssize);
389
+
390
+
391
+
392
+ _GI_TEST_EXTERN
393
+ gsize gi_marshalling_tests_size_return (void);
394
+
395
+
396
+ _GI_TEST_EXTERN
397
+ void gi_marshalling_tests_size_in (gsize size);
398
+
399
+
400
+ _GI_TEST_EXTERN
401
+ void gi_marshalling_tests_size_out (gsize *size);
402
+
403
+ _GI_TEST_EXTERN
404
+ void gi_marshalling_tests_size_inout (gsize *size);
405
+
406
+
407
+ /* Floating-point */
408
+
409
+ _GI_TEST_EXTERN
410
+ gfloat gi_marshalling_tests_float_return (void);
411
+
412
+
413
+ _GI_TEST_EXTERN
414
+ void gi_marshalling_tests_float_in (gfloat v);
415
+
416
+
417
+ _GI_TEST_EXTERN
418
+ void gi_marshalling_tests_float_out (gfloat *v);
419
+
420
+
421
+ _GI_TEST_EXTERN
422
+ void gi_marshalling_tests_float_inout (gfloat *v);
423
+
424
+
425
+
426
+ _GI_TEST_EXTERN
427
+ gdouble gi_marshalling_tests_double_return (void);
428
+
429
+
430
+ _GI_TEST_EXTERN
431
+ void gi_marshalling_tests_double_in (gdouble v);
432
+
433
+
434
+ _GI_TEST_EXTERN
435
+ void gi_marshalling_tests_double_out (gdouble *v);
436
+
437
+
438
+ _GI_TEST_EXTERN
439
+ void gi_marshalling_tests_double_inout (gdouble *v);
440
+
441
+
442
+ /* Timestamps */
443
+
444
+ _GI_TEST_EXTERN
445
+ time_t gi_marshalling_tests_time_t_return (void);
446
+
447
+
448
+ _GI_TEST_EXTERN
449
+ void gi_marshalling_tests_time_t_in (time_t v);
450
+
451
+
452
+ _GI_TEST_EXTERN
453
+ void gi_marshalling_tests_time_t_out (time_t *v);
454
+
455
+
456
+ _GI_TEST_EXTERN
457
+ void gi_marshalling_tests_time_t_inout (time_t *v);
458
+
459
+
460
+ /* GType */
461
+
462
+ _GI_TEST_EXTERN
463
+ GType gi_marshalling_tests_gtype_return (void);
464
+
465
+
466
+ _GI_TEST_EXTERN
467
+ GType gi_marshalling_tests_gtype_string_return (void);
468
+
469
+
470
+ _GI_TEST_EXTERN
471
+ void gi_marshalling_tests_gtype_in (GType gtype);
472
+
473
+
474
+ _GI_TEST_EXTERN
475
+ void gi_marshalling_tests_gtype_string_in (GType gtype);
476
+
477
+
478
+ _GI_TEST_EXTERN
479
+ void gi_marshalling_tests_gtype_out (GType *gtype);
480
+
481
+
482
+ _GI_TEST_EXTERN
483
+ void gi_marshalling_tests_gtype_string_out (GType *gtype);
484
+
485
+
486
+ _GI_TEST_EXTERN
487
+ void gi_marshalling_tests_gtype_inout (GType *gtype);
488
+
489
+
490
+ /* UTF-8 */
491
+
492
+ _GI_TEST_EXTERN
493
+ const gchar *gi_marshalling_tests_utf8_none_return (void);
494
+
495
+ _GI_TEST_EXTERN
496
+ gchar *gi_marshalling_tests_utf8_full_return (void);
497
+
498
+
499
+ _GI_TEST_EXTERN
500
+ void gi_marshalling_tests_utf8_none_in (const gchar *utf8);
501
+
502
+ _GI_TEST_EXTERN
503
+ void gi_marshalling_tests_utf8_full_in (gchar *utf8);
504
+
505
+
506
+ _GI_TEST_EXTERN
507
+ void gi_marshalling_tests_utf8_none_out (gchar **utf8);
508
+
509
+ _GI_TEST_EXTERN
510
+ void gi_marshalling_tests_utf8_full_out (gchar **utf8);
511
+
512
+
513
+ _GI_TEST_EXTERN
514
+ void gi_marshalling_tests_utf8_dangling_out (gchar **utf8);
515
+
516
+
517
+ _GI_TEST_EXTERN
518
+ void gi_marshalling_tests_utf8_none_inout (gchar **utf8);
519
+
520
+ _GI_TEST_EXTERN
521
+ void gi_marshalling_tests_utf8_full_inout (gchar **utf8);
522
+
523
+
524
+ _GI_TEST_EXTERN
525
+ GSList *gi_marshalling_tests_filename_list_return (void);
526
+
527
+
528
+ _GI_TEST_EXTERN
529
+ void gi_marshalling_tests_utf8_as_uint8array_in (const guint8 *array,
530
+ gsize len);
531
+
532
+
533
+ /* Enum */
534
+
535
+ typedef enum
536
+ {
537
+ GI_MARSHALLING_TESTS_ENUM_VALUE1,
538
+ GI_MARSHALLING_TESTS_ENUM_VALUE2,
539
+ GI_MARSHALLING_TESTS_ENUM_VALUE3 = 42
540
+ } GIMarshallingTestsEnum;
541
+
542
+ typedef enum
543
+ {
544
+ GI_MARSHALLING_TESTS_SECOND_ENUM_SECONDVALUE1,
545
+ GI_MARSHALLING_TESTS_SECOND_ENUM_SECONDVALUE2,
546
+ } GIMarshallingTestsSecondEnum;
547
+
548
+
549
+ _GI_TEST_EXTERN
550
+ GIMarshallingTestsEnum gi_marshalling_tests_enum_returnv (void);
551
+
552
+
553
+ _GI_TEST_EXTERN
554
+ void gi_marshalling_tests_enum_in (GIMarshallingTestsEnum v);
555
+
556
+
557
+ _GI_TEST_EXTERN
558
+ void gi_marshalling_tests_enum_out (GIMarshallingTestsEnum *v);
559
+
560
+
561
+ _GI_TEST_EXTERN
562
+ void gi_marshalling_tests_enum_inout (GIMarshallingTestsEnum *v);
563
+
564
+
565
+ /* GEnum */
566
+
567
+ typedef enum
568
+ {
569
+ GI_MARSHALLING_TESTS_GENUM_VALUE1,
570
+ GI_MARSHALLING_TESTS_GENUM_VALUE2,
571
+ GI_MARSHALLING_TESTS_GENUM_VALUE3 = 42
572
+ } GIMarshallingTestsGEnum;
573
+
574
+ _GI_TEST_EXTERN
575
+ GType gi_marshalling_tests_genum_get_type (void) G_GNUC_CONST;
576
+ #define GI_MARSHALLING_TESTS_TYPE_GENUM (gi_marshalling_tests_genum_get_type ())
577
+
578
+
579
+ _GI_TEST_EXTERN
580
+ GIMarshallingTestsGEnum gi_marshalling_tests_genum_returnv (void);
581
+
582
+
583
+ _GI_TEST_EXTERN
584
+ void gi_marshalling_tests_genum_in (GIMarshallingTestsGEnum v);
585
+
586
+
587
+ _GI_TEST_EXTERN
588
+ void gi_marshalling_tests_genum_out (GIMarshallingTestsGEnum *v);
589
+
590
+
591
+ _GI_TEST_EXTERN
592
+ void gi_marshalling_tests_genum_inout (GIMarshallingTestsGEnum *v);
593
+
594
+
595
+ /* GFlags */
596
+
597
+ typedef enum
598
+ {
599
+ GI_MARSHALLING_TESTS_FLAGS_VALUE1 = 1 << 0,
600
+ GI_MARSHALLING_TESTS_FLAGS_VALUE2 = 1 << 1,
601
+ GI_MARSHALLING_TESTS_FLAGS_VALUE3 = 1 << 2,
602
+ GI_MARSHALLING_TESTS_FLAGS_MASK = GI_MARSHALLING_TESTS_FLAGS_VALUE1 |
603
+ GI_MARSHALLING_TESTS_FLAGS_VALUE2,
604
+ GI_MARSHALLING_TESTS_FLAGS_MASK2 = GI_MARSHALLING_TESTS_FLAGS_MASK
605
+ } GIMarshallingTestsFlags;
606
+
607
+ _GI_TEST_EXTERN
608
+ GType gi_marshalling_tests_flags_get_type (void) G_GNUC_CONST;
609
+ #define GI_MARSHALLING_TESTS_TYPE_FLAGS (gi_marshalling_tests_flags_get_type ())
610
+
611
+
612
+ _GI_TEST_EXTERN
613
+ GIMarshallingTestsFlags gi_marshalling_tests_flags_returnv (void);
614
+
615
+
616
+ _GI_TEST_EXTERN
617
+ void gi_marshalling_tests_flags_in (GIMarshallingTestsFlags v);
618
+
619
+ _GI_TEST_EXTERN
620
+ void gi_marshalling_tests_flags_in_zero (GIMarshallingTestsFlags v);
621
+
622
+
623
+ _GI_TEST_EXTERN
624
+ void gi_marshalling_tests_flags_out (GIMarshallingTestsFlags *v);
625
+
626
+
627
+ _GI_TEST_EXTERN
628
+ void gi_marshalling_tests_flags_inout (GIMarshallingTestsFlags *v);
629
+
630
+ /* Flags with no GType */
631
+
632
+ typedef enum
633
+ {
634
+ GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE1 = 1 << 0,
635
+ GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE2 = 1 << 1,
636
+ GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE3 = 1 << 2,
637
+ GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_MASK = GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE1 |
638
+ GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE2,
639
+ GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_MASK2 = GI_MARSHALLING_TESTS_FLAGS_MASK
640
+ } GIMarshallingTestsNoTypeFlags;
641
+
642
+
643
+ _GI_TEST_EXTERN
644
+ GIMarshallingTestsNoTypeFlags gi_marshalling_tests_no_type_flags_returnv (void);
645
+
646
+
647
+ _GI_TEST_EXTERN
648
+ void gi_marshalling_tests_no_type_flags_in (GIMarshallingTestsNoTypeFlags v);
649
+
650
+ _GI_TEST_EXTERN
651
+ void gi_marshalling_tests_no_type_flags_in_zero (GIMarshallingTestsNoTypeFlags v);
652
+
653
+
654
+ _GI_TEST_EXTERN
655
+ void gi_marshalling_tests_no_type_flags_out (GIMarshallingTestsNoTypeFlags *v);
656
+
657
+
658
+ _GI_TEST_EXTERN
659
+ void gi_marshalling_tests_no_type_flags_inout (GIMarshallingTestsNoTypeFlags *v);
660
+
661
+ /* Arrays */
662
+
663
+
664
+ _GI_TEST_EXTERN
665
+ gboolean gi_marshalling_tests_init_function (gint *n_args, char ***argv);
666
+
667
+ /* Fixed-size */
668
+
669
+ _GI_TEST_EXTERN
670
+ const gint *gi_marshalling_tests_array_fixed_int_return (void);
671
+
672
+ _GI_TEST_EXTERN
673
+ const gshort *gi_marshalling_tests_array_fixed_short_return (void);
674
+
675
+
676
+ _GI_TEST_EXTERN
677
+ void gi_marshalling_tests_array_fixed_int_in (const gint *ints);
678
+
679
+ _GI_TEST_EXTERN
680
+ void gi_marshalling_tests_array_fixed_short_in (const gshort *shorts);
681
+
682
+
683
+ _GI_TEST_EXTERN
684
+ void gi_marshalling_tests_array_fixed_out (gint **ints);
685
+
686
+
687
+ _GI_TEST_EXTERN
688
+ void gi_marshalling_tests_array_fixed_out_struct (GIMarshallingTestsSimpleStruct **structs);
689
+
690
+
691
+ _GI_TEST_EXTERN
692
+ void gi_marshalling_tests_array_fixed_inout (gint **ints);
693
+
694
+ /* Variable-size */
695
+
696
+
697
+ _GI_TEST_EXTERN
698
+ const gint *gi_marshalling_tests_array_return (gint *length);
699
+
700
+ _GI_TEST_EXTERN
701
+ const gint *gi_marshalling_tests_array_return_etc (gint first, gint *length, gint last, gint *sum);
702
+
703
+
704
+ _GI_TEST_EXTERN
705
+ void gi_marshalling_tests_array_in (const gint *ints, gint length);
706
+
707
+ _GI_TEST_EXTERN
708
+ void gi_marshalling_tests_array_in_len_before (gint length, const gint *ints);
709
+
710
+ _GI_TEST_EXTERN
711
+ void gi_marshalling_tests_array_in_len_zero_terminated (const gint *ints, gint length);
712
+
713
+ _GI_TEST_EXTERN
714
+ void gi_marshalling_tests_array_string_in (const gchar **strings, gint length);
715
+
716
+ _GI_TEST_EXTERN
717
+ void gi_marshalling_tests_array_uint8_in (const guint8 *chars, gint length);
718
+
719
+ _GI_TEST_EXTERN
720
+ void gi_marshalling_tests_array_struct_in (GIMarshallingTestsBoxedStruct **structs, gint length);
721
+
722
+ _GI_TEST_EXTERN
723
+ void gi_marshalling_tests_array_struct_value_in (GIMarshallingTestsBoxedStruct *structs, gint length);
724
+
725
+ _GI_TEST_EXTERN
726
+ void gi_marshalling_tests_array_struct_take_in (GIMarshallingTestsBoxedStruct **structs, gint length);
727
+
728
+ _GI_TEST_EXTERN
729
+ void gi_marshalling_tests_array_simple_struct_in (GIMarshallingTestsSimpleStruct *structs, gint length);
730
+
731
+ _GI_TEST_EXTERN
732
+ void gi_marshalling_tests_multi_array_key_value_in (gint length, const gchar **keys, const GValue *values);
733
+
734
+ _GI_TEST_EXTERN
735
+ void gi_marshalling_tests_array_enum_in (GIMarshallingTestsEnum *_enum, gint length);
736
+
737
+ _GI_TEST_EXTERN
738
+ void gi_marshalling_tests_array_in_guint64_len (const gint *ints, guint64 length);
739
+
740
+ _GI_TEST_EXTERN
741
+ void gi_marshalling_tests_array_in_guint8_len (const gint *ints, guint8 length);
742
+
743
+
744
+ _GI_TEST_EXTERN
745
+ void gi_marshalling_tests_array_out (gint **ints, gint *length);
746
+
747
+ _GI_TEST_EXTERN
748
+ void gi_marshalling_tests_array_out_etc (gint first, gint **ints, gint *length, gint last, gint *sum);
749
+
750
+
751
+ _GI_TEST_EXTERN
752
+ void gi_marshalling_tests_array_inout (gint **ints, gint *length);
753
+
754
+ _GI_TEST_EXTERN
755
+ void gi_marshalling_tests_array_inout_etc (gint first, gint **ints, gint *length, gint last, gint *sum);
756
+
757
+
758
+ _GI_TEST_EXTERN
759
+ void gi_marshalling_tests_array_in_nonzero_nonlen (gint first, const guint8 *chars);
760
+
761
+ /* Zero-terminated */
762
+
763
+
764
+ _GI_TEST_EXTERN
765
+ gchar **gi_marshalling_tests_array_zero_terminated_return (void);
766
+
767
+ _GI_TEST_EXTERN
768
+ gchar **gi_marshalling_tests_array_zero_terminated_return_null (void);
769
+
770
+ _GI_TEST_EXTERN
771
+ GIMarshallingTestsBoxedStruct **gi_marshalling_tests_array_zero_terminated_return_struct (void);
772
+
773
+
774
+ _GI_TEST_EXTERN
775
+ void gi_marshalling_tests_array_zero_terminated_in (gchar **utf8s);
776
+
777
+
778
+ _GI_TEST_EXTERN
779
+ void gi_marshalling_tests_array_zero_terminated_out (gchar ***utf8s);
780
+
781
+
782
+ _GI_TEST_EXTERN
783
+ void gi_marshalling_tests_array_zero_terminated_inout (gchar ***utf8s);
784
+
785
+
786
+ _GI_TEST_EXTERN
787
+ GVariant **gi_marshalling_tests_array_gvariant_none_in (GVariant **variants);
788
+
789
+
790
+ _GI_TEST_EXTERN
791
+ GVariant **gi_marshalling_tests_array_gvariant_container_in (GVariant **variants);
792
+
793
+
794
+ _GI_TEST_EXTERN
795
+ GVariant **gi_marshalling_tests_array_gvariant_full_in (GVariant **variants);
796
+
797
+
798
+ /* GArray */
799
+
800
+ _GI_TEST_EXTERN
801
+ GArray *gi_marshalling_tests_garray_int_none_return (void);
802
+
803
+ _GI_TEST_EXTERN
804
+ GArray *gi_marshalling_tests_garray_uint64_none_return (void);
805
+
806
+ _GI_TEST_EXTERN
807
+ GArray *gi_marshalling_tests_garray_utf8_none_return (void);
808
+
809
+ _GI_TEST_EXTERN
810
+ GArray *gi_marshalling_tests_garray_utf8_container_return (void);
811
+
812
+ _GI_TEST_EXTERN
813
+ GArray *gi_marshalling_tests_garray_utf8_full_return (void);
814
+
815
+
816
+ _GI_TEST_EXTERN
817
+ void gi_marshalling_tests_garray_int_none_in (GArray *array_);
818
+
819
+ _GI_TEST_EXTERN
820
+ void gi_marshalling_tests_garray_uint64_none_in (GArray *array_);
821
+
822
+ _GI_TEST_EXTERN
823
+ void gi_marshalling_tests_garray_utf8_none_in (GArray *array_);
824
+
825
+
826
+ _GI_TEST_EXTERN
827
+ void gi_marshalling_tests_garray_utf8_none_out (GArray **array_);
828
+
829
+ _GI_TEST_EXTERN
830
+ void gi_marshalling_tests_garray_utf8_container_out (GArray **array_);
831
+
832
+ _GI_TEST_EXTERN
833
+ void gi_marshalling_tests_garray_utf8_full_out (GArray **array_);
834
+
835
+ _GI_TEST_EXTERN
836
+ void gi_marshalling_tests_garray_utf8_full_out_caller_allocated (GArray *array_);
837
+
838
+
839
+ _GI_TEST_EXTERN
840
+ void gi_marshalling_tests_garray_utf8_none_inout (GArray **array_);
841
+
842
+ _GI_TEST_EXTERN
843
+ void gi_marshalling_tests_garray_utf8_container_inout (GArray **array_);
844
+
845
+ _GI_TEST_EXTERN
846
+ void gi_marshalling_tests_garray_utf8_full_inout (GArray **array_);
847
+
848
+ /* GPtrArray */
849
+
850
+ _GI_TEST_EXTERN
851
+ GPtrArray *gi_marshalling_tests_gptrarray_utf8_none_return (void);
852
+
853
+ _GI_TEST_EXTERN
854
+ GPtrArray *gi_marshalling_tests_gptrarray_utf8_container_return (void);
855
+
856
+ _GI_TEST_EXTERN
857
+ GPtrArray *gi_marshalling_tests_gptrarray_utf8_full_return (void);
858
+
859
+
860
+ _GI_TEST_EXTERN
861
+ void gi_marshalling_tests_gptrarray_utf8_none_in (GPtrArray *parray_);
862
+
863
+
864
+ _GI_TEST_EXTERN
865
+ void gi_marshalling_tests_gptrarray_utf8_none_out (GPtrArray **parray_);
866
+
867
+ _GI_TEST_EXTERN
868
+ void gi_marshalling_tests_gptrarray_utf8_container_out (GPtrArray **parray_);
869
+
870
+ _GI_TEST_EXTERN
871
+ void gi_marshalling_tests_gptrarray_utf8_full_out (GPtrArray **parray_);
872
+
873
+
874
+ _GI_TEST_EXTERN
875
+ void gi_marshalling_tests_gptrarray_utf8_none_inout (GPtrArray **parray_);
876
+
877
+ _GI_TEST_EXTERN
878
+ void gi_marshalling_tests_gptrarray_utf8_container_inout (GPtrArray **parray_);
879
+
880
+ _GI_TEST_EXTERN
881
+ void gi_marshalling_tests_gptrarray_utf8_full_inout (GPtrArray **parray_);
882
+
883
+ /* GByteArray */
884
+
885
+ _GI_TEST_EXTERN
886
+ GByteArray *gi_marshalling_tests_bytearray_full_return (void);
887
+
888
+ _GI_TEST_EXTERN
889
+ void gi_marshalling_tests_bytearray_none_in (GByteArray* v);
890
+
891
+ /* GBytes */
892
+
893
+ _GI_TEST_EXTERN
894
+ GBytes *gi_marshalling_tests_gbytes_full_return (void);
895
+
896
+ _GI_TEST_EXTERN
897
+ void gi_marshalling_tests_gbytes_none_in (GBytes* v);
898
+
899
+ /* GStrv */
900
+
901
+ _GI_TEST_EXTERN
902
+ GStrv gi_marshalling_tests_gstrv_return (void);
903
+
904
+ _GI_TEST_EXTERN
905
+ void gi_marshalling_tests_gstrv_in (GStrv g_strv);
906
+
907
+ _GI_TEST_EXTERN
908
+ void gi_marshalling_tests_gstrv_out (GStrv *g_strv);
909
+
910
+ _GI_TEST_EXTERN
911
+ void gi_marshalling_tests_gstrv_inout (GStrv *g_strv);
912
+
913
+ /* GList */
914
+
915
+ _GI_TEST_EXTERN
916
+ GList *gi_marshalling_tests_glist_int_none_return (void);
917
+
918
+ _GI_TEST_EXTERN
919
+ GList *gi_marshalling_tests_glist_uint32_none_return (void);
920
+
921
+ _GI_TEST_EXTERN
922
+ GList *gi_marshalling_tests_glist_utf8_none_return (void);
923
+
924
+ _GI_TEST_EXTERN
925
+ GList *gi_marshalling_tests_glist_utf8_container_return (void);
926
+
927
+ _GI_TEST_EXTERN
928
+ GList *gi_marshalling_tests_glist_utf8_full_return (void);
929
+
930
+
931
+ _GI_TEST_EXTERN
932
+ void gi_marshalling_tests_glist_int_none_in (GList *list);
933
+
934
+ _GI_TEST_EXTERN
935
+ void gi_marshalling_tests_glist_uint32_none_in (GList *list);
936
+
937
+ _GI_TEST_EXTERN
938
+ void gi_marshalling_tests_glist_utf8_none_in (GList *list);
939
+
940
+
941
+ _GI_TEST_EXTERN
942
+ void gi_marshalling_tests_glist_utf8_none_out (GList **list);
943
+
944
+ _GI_TEST_EXTERN
945
+ void gi_marshalling_tests_glist_utf8_container_out (GList **list);
946
+
947
+ _GI_TEST_EXTERN
948
+ void gi_marshalling_tests_glist_utf8_full_out (GList **list);
949
+
950
+
951
+ _GI_TEST_EXTERN
952
+ void gi_marshalling_tests_glist_utf8_none_inout (GList **list);
953
+
954
+ _GI_TEST_EXTERN
955
+ void gi_marshalling_tests_glist_utf8_container_inout (GList **list);
956
+
957
+ _GI_TEST_EXTERN
958
+ void gi_marshalling_tests_glist_utf8_full_inout (GList **list);
959
+
960
+
961
+ /* GSList */
962
+
963
+ _GI_TEST_EXTERN
964
+ GSList *gi_marshalling_tests_gslist_int_none_return (void);
965
+
966
+ _GI_TEST_EXTERN
967
+ GSList *gi_marshalling_tests_gslist_utf8_none_return (void);
968
+
969
+ _GI_TEST_EXTERN
970
+ GSList *gi_marshalling_tests_gslist_utf8_container_return (void);
971
+
972
+ _GI_TEST_EXTERN
973
+ GSList *gi_marshalling_tests_gslist_utf8_full_return (void);
974
+
975
+
976
+ _GI_TEST_EXTERN
977
+ void gi_marshalling_tests_gslist_int_none_in (GSList *list);
978
+
979
+ _GI_TEST_EXTERN
980
+ void gi_marshalling_tests_gslist_utf8_none_in (GSList *list);
981
+
982
+
983
+ _GI_TEST_EXTERN
984
+ void gi_marshalling_tests_gslist_utf8_none_out (GSList **list);
985
+
986
+ _GI_TEST_EXTERN
987
+ void gi_marshalling_tests_gslist_utf8_container_out (GSList **list);
988
+
989
+ _GI_TEST_EXTERN
990
+ void gi_marshalling_tests_gslist_utf8_full_out (GSList **list);
991
+
992
+
993
+ _GI_TEST_EXTERN
994
+ void gi_marshalling_tests_gslist_utf8_none_inout (GSList **list);
995
+
996
+ _GI_TEST_EXTERN
997
+ void gi_marshalling_tests_gslist_utf8_container_inout (GSList **list);
998
+
999
+ _GI_TEST_EXTERN
1000
+ void gi_marshalling_tests_gslist_utf8_full_inout (GSList **list);
1001
+
1002
+
1003
+ /* GHashTable */
1004
+
1005
+ _GI_TEST_EXTERN
1006
+ GHashTable *gi_marshalling_tests_ghashtable_int_none_return (void);
1007
+
1008
+ _GI_TEST_EXTERN
1009
+ GHashTable *gi_marshalling_tests_ghashtable_utf8_none_return (void);
1010
+
1011
+ _GI_TEST_EXTERN
1012
+ GHashTable *gi_marshalling_tests_ghashtable_utf8_container_return (void);
1013
+
1014
+ _GI_TEST_EXTERN
1015
+ GHashTable *gi_marshalling_tests_ghashtable_utf8_full_return (void);
1016
+
1017
+
1018
+ _GI_TEST_EXTERN
1019
+ void gi_marshalling_tests_ghashtable_int_none_in (GHashTable *hash_table);
1020
+
1021
+ _GI_TEST_EXTERN
1022
+ void gi_marshalling_tests_ghashtable_utf8_none_in (GHashTable *hash_table);
1023
+
1024
+ _GI_TEST_EXTERN
1025
+ void gi_marshalling_tests_ghashtable_utf8_container_in (GHashTable *hash_table);
1026
+
1027
+ _GI_TEST_EXTERN
1028
+ void gi_marshalling_tests_ghashtable_utf8_full_in (GHashTable *hash_table);
1029
+
1030
+
1031
+ _GI_TEST_EXTERN
1032
+ void gi_marshalling_tests_ghashtable_utf8_none_out (GHashTable **hash_table);
1033
+
1034
+ _GI_TEST_EXTERN
1035
+ void gi_marshalling_tests_ghashtable_utf8_container_out (GHashTable **hash_table);
1036
+
1037
+ _GI_TEST_EXTERN
1038
+ void gi_marshalling_tests_ghashtable_utf8_full_out (GHashTable **hash_table);
1039
+
1040
+
1041
+ _GI_TEST_EXTERN
1042
+ void gi_marshalling_tests_ghashtable_utf8_none_inout (GHashTable **hash_table);
1043
+
1044
+ _GI_TEST_EXTERN
1045
+ void gi_marshalling_tests_ghashtable_utf8_container_inout (GHashTable **hash_table);
1046
+
1047
+ _GI_TEST_EXTERN
1048
+ void gi_marshalling_tests_ghashtable_utf8_full_inout (GHashTable **hash_table);
1049
+
1050
+
1051
+ /* GValue */
1052
+
1053
+ _GI_TEST_EXTERN
1054
+ GValue *gi_marshalling_tests_gvalue_return (void);
1055
+
1056
+
1057
+ _GI_TEST_EXTERN
1058
+ void gi_marshalling_tests_gvalue_in (GValue *value);
1059
+
1060
+ _GI_TEST_EXTERN
1061
+ void gi_marshalling_tests_gvalue_int64_in (GValue *value);
1062
+
1063
+ _GI_TEST_EXTERN
1064
+ void gi_marshalling_tests_gvalue_in_with_type (GValue *value, GType type);
1065
+
1066
+ _GI_TEST_EXTERN
1067
+ void gi_marshalling_tests_gvalue_in_with_modification (GValue *value);
1068
+
1069
+
1070
+ _GI_TEST_EXTERN
1071
+ void gi_marshalling_tests_gvalue_in_enum (GValue *value);
1072
+
1073
+
1074
+ _GI_TEST_EXTERN
1075
+ void gi_marshalling_tests_gvalue_out (GValue **value);
1076
+
1077
+ _GI_TEST_EXTERN
1078
+ void gi_marshalling_tests_gvalue_int64_out (GValue **value);
1079
+
1080
+ _GI_TEST_EXTERN
1081
+ void gi_marshalling_tests_gvalue_out_caller_allocates (GValue *value);
1082
+
1083
+
1084
+ _GI_TEST_EXTERN
1085
+ void gi_marshalling_tests_gvalue_inout (GValue **value);
1086
+
1087
+
1088
+ _GI_TEST_EXTERN
1089
+ void gi_marshalling_tests_gvalue_flat_array (guint n_values,
1090
+ const GValue *values);
1091
+
1092
+
1093
+ _GI_TEST_EXTERN
1094
+ GValue *gi_marshalling_tests_return_gvalue_flat_array (void);
1095
+
1096
+
1097
+ _GI_TEST_EXTERN
1098
+ GValue *gi_marshalling_tests_gvalue_flat_array_round_trip (const GValue one,
1099
+ const GValue two,
1100
+ const GValue three);
1101
+
1102
+ /* GClosure */
1103
+
1104
+ _GI_TEST_EXTERN
1105
+ void gi_marshalling_tests_gclosure_in (GClosure *closure);
1106
+
1107
+ _GI_TEST_EXTERN
1108
+ GClosure *gi_marshalling_tests_gclosure_return (void);
1109
+
1110
+ /* Callback return values */
1111
+
1112
+ /**
1113
+ * GIMarshallingTestsCallbackReturnValueOnly:
1114
+ */
1115
+ typedef glong (* GIMarshallingTestsCallbackReturnValueOnly) (void);
1116
+
1117
+
1118
+ _GI_TEST_EXTERN
1119
+ glong gi_marshalling_tests_callback_return_value_only (GIMarshallingTestsCallbackReturnValueOnly callback);
1120
+
1121
+ /**
1122
+ * GIMarshallingTestsCallbackOneOutParameter:
1123
+ * @a: (out):
1124
+ */
1125
+ typedef void (* GIMarshallingTestsCallbackOneOutParameter) (gfloat *a);
1126
+
1127
+
1128
+ _GI_TEST_EXTERN
1129
+ void gi_marshalling_tests_callback_one_out_parameter (GIMarshallingTestsCallbackOneOutParameter callback,
1130
+ gfloat *a);
1131
+
1132
+ /**
1133
+ * GIMarshallingTestsCallbackMultipleOutParameters:
1134
+ * @a: (out):
1135
+ * @b: (out):
1136
+ */
1137
+ typedef void (* GIMarshallingTestsCallbackMultipleOutParameters) (gfloat *a, gfloat *b);
1138
+
1139
+
1140
+ _GI_TEST_EXTERN
1141
+ void gi_marshalling_tests_callback_multiple_out_parameters (GIMarshallingTestsCallbackMultipleOutParameters callback,
1142
+ gfloat *a,
1143
+ gfloat *b);
1144
+
1145
+ /**
1146
+ * GIMarshallingTestsCallbackReturnValueAndOneOutParameter:
1147
+ * @a: (out):
1148
+ */
1149
+ typedef glong (* GIMarshallingTestsCallbackReturnValueAndOneOutParameter) (glong *a);
1150
+
1151
+
1152
+ _GI_TEST_EXTERN
1153
+ glong gi_marshalling_tests_callback_return_value_and_one_out_parameter (GIMarshallingTestsCallbackReturnValueAndOneOutParameter callback,
1154
+ glong *a);
1155
+
1156
+ /**
1157
+ * GIMarshallingTestsCallbackReturnValueAndMultipleOutParameters:
1158
+ * @a: (out):
1159
+ * @b: (out):
1160
+ */
1161
+ typedef glong (* GIMarshallingTestsCallbackReturnValueAndMultipleOutParameters) (glong *a, glong *b);
1162
+
1163
+
1164
+ _GI_TEST_EXTERN
1165
+ glong gi_marshalling_tests_callback_return_value_and_multiple_out_parameters (GIMarshallingTestsCallbackReturnValueAndMultipleOutParameters callback,
1166
+ glong *a,
1167
+ glong *b);
1168
+
1169
+ /**
1170
+ * GIMarshallingTestsCallbackOwnedBoxed
1171
+ * @box: (transfer none): the boxed structure.
1172
+ */
1173
+ typedef void (* GIMarshallingTestsCallbackOwnedBoxed) (GIMarshallingTestsBoxedStruct *box,
1174
+ void *user_data);
1175
+
1176
+
1177
+ _GI_TEST_EXTERN
1178
+ glong gi_marshalling_tests_callback_owned_boxed (GIMarshallingTestsCallbackOwnedBoxed callback,
1179
+ void *callback_data);
1180
+
1181
+ /* Pointer */
1182
+
1183
+
1184
+ _GI_TEST_EXTERN
1185
+ gpointer gi_marshalling_tests_pointer_in_return (gpointer pointer);
1186
+
1187
+ /* Structure */
1188
+
1189
+ struct _GIMarshallingTestsSimpleStruct {
1190
+ glong long_;
1191
+ gint8 int8;
1192
+ };
1193
+
1194
+ typedef struct {
1195
+ GIMarshallingTestsSimpleStruct simple_struct;
1196
+ } GIMarshallingTestsNestedStruct;
1197
+
1198
+ typedef struct {
1199
+ GIMarshallingTestsNestedStruct *pointer;
1200
+ } GIMarshallingTestsNotSimpleStruct;
1201
+
1202
+
1203
+ _GI_TEST_EXTERN
1204
+ GIMarshallingTestsSimpleStruct *gi_marshalling_tests_simple_struct_returnv (void);
1205
+
1206
+
1207
+ _GI_TEST_EXTERN
1208
+ void gi_marshalling_tests_simple_struct_inv (GIMarshallingTestsSimpleStruct *struct_);
1209
+
1210
+
1211
+ _GI_TEST_EXTERN
1212
+ void gi_marshalling_tests_simple_struct_method (GIMarshallingTestsSimpleStruct *struct_);
1213
+
1214
+
1215
+ typedef struct {
1216
+ glong long_;
1217
+ } GIMarshallingTestsPointerStruct;
1218
+
1219
+
1220
+ _GI_TEST_EXTERN
1221
+ GType gi_marshalling_tests_pointer_struct_get_type (void) G_GNUC_CONST;
1222
+
1223
+
1224
+ _GI_TEST_EXTERN
1225
+ GIMarshallingTestsPointerStruct *gi_marshalling_tests_pointer_struct_returnv (void);
1226
+
1227
+
1228
+ _GI_TEST_EXTERN
1229
+ void gi_marshalling_tests_pointer_struct_inv (GIMarshallingTestsPointerStruct *struct_);
1230
+
1231
+ struct _GIMarshallingTestsBoxedStruct {
1232
+ glong long_;
1233
+ gchar *string_;
1234
+ GStrv g_strv;
1235
+ };
1236
+
1237
+
1238
+ _GI_TEST_EXTERN
1239
+ GType gi_marshalling_tests_boxed_struct_get_type (void) G_GNUC_CONST;
1240
+
1241
+
1242
+ _GI_TEST_EXTERN
1243
+ GIMarshallingTestsBoxedStruct *gi_marshalling_tests_boxed_struct_new (void);
1244
+
1245
+
1246
+ _GI_TEST_EXTERN
1247
+ GIMarshallingTestsBoxedStruct *gi_marshalling_tests_boxed_struct_returnv (void);
1248
+
1249
+
1250
+ _GI_TEST_EXTERN
1251
+ void gi_marshalling_tests_boxed_struct_inv (GIMarshallingTestsBoxedStruct *struct_);
1252
+
1253
+
1254
+ _GI_TEST_EXTERN
1255
+ void gi_marshalling_tests_boxed_struct_out (GIMarshallingTestsBoxedStruct **struct_);
1256
+
1257
+
1258
+ _GI_TEST_EXTERN
1259
+ void gi_marshalling_tests_boxed_struct_inout (GIMarshallingTestsBoxedStruct **struct_);
1260
+
1261
+ typedef union {
1262
+ glong long_;
1263
+ } GIMarshallingTestsUnion;
1264
+
1265
+
1266
+ _GI_TEST_EXTERN
1267
+ GType gi_marshalling_tests_union_get_type (void) G_GNUC_CONST;
1268
+
1269
+
1270
+ _GI_TEST_EXTERN
1271
+ GIMarshallingTestsUnion *gi_marshalling_tests_union_returnv (void);
1272
+
1273
+
1274
+ _GI_TEST_EXTERN
1275
+ void gi_marshalling_tests_union_inv (GIMarshallingTestsUnion *union_);
1276
+
1277
+
1278
+ _GI_TEST_EXTERN
1279
+ void gi_marshalling_tests_union_out (GIMarshallingTestsUnion **union_);
1280
+
1281
+
1282
+ _GI_TEST_EXTERN
1283
+ void gi_marshalling_tests_union_inout (GIMarshallingTestsUnion **union_);
1284
+
1285
+
1286
+ _GI_TEST_EXTERN
1287
+ void gi_marshalling_tests_union_method (GIMarshallingTestsUnion *union_);
1288
+
1289
+ /* Object */
1290
+
1291
+ #define GI_MARSHALLING_TESTS_TYPE_OBJECT (gi_marshalling_tests_object_get_type ())
1292
+ #define GI_MARSHALLING_TESTS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_OBJECT, GIMarshallingTestsObject))
1293
+ #define GI_MARSHALLING_TESTS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_OBJECT, GIMarshallingTestsObjectClass))
1294
+ #define GI_MARSHALLING_TESTS_IS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_OBJECT))
1295
+ #define GI_MARSHALLING_TESTS_IS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_OBJECT))
1296
+ #define GI_MARSHALLING_TESTS_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_OBJECT, GIMarshallingTestsObjectClass))
1297
+
1298
+ typedef struct _GIMarshallingTestsObjectClass GIMarshallingTestsObjectClass;
1299
+ typedef struct _GIMarshallingTestsObject GIMarshallingTestsObject;
1300
+
1301
+ typedef int (* GIMarshallingTestsCallbackIntInt) (int val, void *user_data);
1302
+
1303
+ struct _GIMarshallingTestsObjectClass
1304
+ {
1305
+ GObjectClass parent_class;
1306
+
1307
+ /**
1308
+ * GIMarshallingTestsObjectClass::method_int8_in:
1309
+ * @in: (in):
1310
+ */
1311
+ void (* method_int8_in) (GIMarshallingTestsObject *self, gint8 in);
1312
+
1313
+ /**
1314
+ * GIMarshallingTestsObjectClass::method_int8_out:
1315
+ * @out: (out):
1316
+ */
1317
+ void (* method_int8_out) (GIMarshallingTestsObject *self, gint8 *out);
1318
+
1319
+ /**
1320
+ * GIMarshallingTestsObjectClass::method_int8_arg_and_out_caller:
1321
+ * @out: (out caller-allocates):
1322
+ */
1323
+ void (* method_int8_arg_and_out_caller) (GIMarshallingTestsObject *self, gint8 arg, gint8 *out);
1324
+
1325
+ /**
1326
+ * GIMarshallingTestsObjectClass::method_int8_arg_and_out_callee:
1327
+ * @out: (out):
1328
+ */
1329
+ void (* method_int8_arg_and_out_callee) (GIMarshallingTestsObject *self, gint8 arg, gint8 **out);
1330
+
1331
+ /**
1332
+ * GIMarshallingTestsObjectClass::method_str_arg_out_ret:
1333
+ * @out: (out caller-allocates):
1334
+ *
1335
+ * Returns: (transfer none)
1336
+ */
1337
+ const gchar* (* method_str_arg_out_ret) (GIMarshallingTestsObject *self, const gchar* arg, guint *out);
1338
+
1339
+ /**
1340
+ * GIMarshallingTestsObjectClass::method_with_default_implementation:
1341
+ * @in: (in):
1342
+ */
1343
+ void (* method_with_default_implementation) (GIMarshallingTestsObject *self, gint8 in);
1344
+
1345
+ /**
1346
+ * GIMarshallingTestsObjectClass::method_deep_hierarchy:
1347
+ * @in: (in):
1348
+ */
1349
+ void (* method_deep_hierarchy) (GIMarshallingTestsObject *self, gint8 in);
1350
+
1351
+ void (* vfunc_with_callback) (GIMarshallingTestsObject *self,
1352
+ GIMarshallingTestsCallbackIntInt callback,
1353
+ void *callback_data);
1354
+
1355
+ /**
1356
+ * GIMarshallingTestsObjectClass::vfunc_return_value_only:
1357
+ */
1358
+ glong (* vfunc_return_value_only) (GIMarshallingTestsObject *self);
1359
+
1360
+ /**
1361
+ * GIMarshallingTestsObjectClass::vfunc_one_out_parameter:
1362
+ * @a: (out):
1363
+ */
1364
+ void (* vfunc_one_out_parameter) (GIMarshallingTestsObject *self, gfloat *a);
1365
+
1366
+ /**
1367
+ * GIMarshallingTestsObjectClass::vfunc_multiple_out_parameters:
1368
+ * @a: (out):
1369
+ * @b: (out):
1370
+ */
1371
+ void (* vfunc_multiple_out_parameters) (GIMarshallingTestsObject *self, gfloat *a, gfloat *b);
1372
+
1373
+ /**
1374
+ * GIMarshallingTestsObjectClass::vfunc_caller_allocated_out_parameter:
1375
+ * @a: (out):
1376
+ */
1377
+ void (* vfunc_caller_allocated_out_parameter) (GIMarshallingTestsObject *self, GValue *a);
1378
+
1379
+ /**
1380
+ * GIMarshallingTestsObjectClass::vfunc_array_out_parameter:
1381
+ * @a: (out) (array zero-terminated=1):
1382
+ */
1383
+ void (* vfunc_array_out_parameter) (GIMarshallingTestsObject *self, gfloat **a);
1384
+
1385
+ /**
1386
+ * GIMarshallingTestsObjectClass::vfunc_return_value_and_one_out_parameter:
1387
+ * @a: (out):
1388
+ */
1389
+ glong (* vfunc_return_value_and_one_out_parameter) (GIMarshallingTestsObject *self, glong *a);
1390
+
1391
+ /**
1392
+ * GIMarshallingTestsObjectClass::vfunc_return_value_and_multiple_out_parameters:
1393
+ * @a: (out):
1394
+ * @b: (out):
1395
+ */
1396
+ glong (* vfunc_return_value_and_multiple_out_parameters) (GIMarshallingTestsObject *self, glong *a, glong *b);
1397
+
1398
+ /**
1399
+ * GIMarshallingTestsObjectClass::vfunc_meth_with_err:
1400
+ * @x:
1401
+ * @error: A #GError
1402
+ */
1403
+ gboolean (*vfunc_meth_with_err) (GIMarshallingTestsObject *object, gint x, GError **error);
1404
+
1405
+ /**
1406
+ * GIMarshallingTestsObjectClass::vfunc_return_enum:
1407
+ */
1408
+ GIMarshallingTestsEnum (* vfunc_return_enum) (GIMarshallingTestsObject *self);
1409
+
1410
+ /**
1411
+ * GIMarshallingTestsObjectClass::vfunc_out_enum:
1412
+ * @_enum: (out):
1413
+ */
1414
+ void (* vfunc_out_enum) (GIMarshallingTestsObject *self, GIMarshallingTestsEnum *_enum);
1415
+
1416
+ /**
1417
+ * GIMarshallingTestsObjectClass::vfunc_return_object_transfer_none:
1418
+ *
1419
+ * Returns: (transfer none)
1420
+ */
1421
+ GObject* (* vfunc_return_object_transfer_none) (GIMarshallingTestsObject *self);
1422
+
1423
+ /**
1424
+ * GIMarshallingTestsObjectClass::vfunc_return_object_transfer_full:
1425
+ *
1426
+ * Returns: (transfer full)
1427
+ */
1428
+ GObject* (* vfunc_return_object_transfer_full) (GIMarshallingTestsObject *self);
1429
+
1430
+ /**
1431
+ * GIMarshallingTestsObjectClass::vfunc_out_object_transfer_none:
1432
+ * @object: (out) (transfer none):
1433
+ */
1434
+ void (* vfunc_out_object_transfer_none) (GIMarshallingTestsObject *self, GObject **object);
1435
+
1436
+ /**
1437
+ * GIMarshallingTestsObjectClass::vfunc_out_object_transfer_full:
1438
+ * @object: (out) (transfer full):
1439
+ */
1440
+ void (* vfunc_out_object_transfer_full) (GIMarshallingTestsObject *self, GObject **object);
1441
+
1442
+ /**
1443
+ * GIMarshallingTestsObjectClass::vfunc_in_object_transfer_none:
1444
+ * @object: (in) (transfer none):
1445
+ */
1446
+ void (* vfunc_in_object_transfer_none) (GIMarshallingTestsObject *self, GObject *object);
1447
+
1448
+ /**
1449
+ * GIMarshallingTestsObjectClass::vfunc_in_object_transfer_full:
1450
+ * @object: (in) (transfer full):
1451
+ */
1452
+ void (* vfunc_in_object_transfer_full) (GIMarshallingTestsObject *self, GObject *object);
1453
+ };
1454
+
1455
+ struct _GIMarshallingTestsObject
1456
+ {
1457
+ GObject parent_instance;
1458
+
1459
+ gint int_;
1460
+ };
1461
+
1462
+
1463
+ _GI_TEST_EXTERN
1464
+ GType gi_marshalling_tests_object_get_type (void) G_GNUC_CONST;
1465
+
1466
+ _GI_TEST_EXTERN
1467
+ void gi_marshalling_tests_object_static_method (void);
1468
+
1469
+ _GI_TEST_EXTERN
1470
+ void gi_marshalling_tests_object_method (GIMarshallingTestsObject *object);
1471
+
1472
+ _GI_TEST_EXTERN
1473
+ void gi_marshalling_tests_object_overridden_method (GIMarshallingTestsObject *object);
1474
+
1475
+ _GI_TEST_EXTERN
1476
+ GIMarshallingTestsObject *gi_marshalling_tests_object_new (gint int_);
1477
+ GIMarshallingTestsObject *gi_marshalling_tests_object_new_fail (gint int_, GError **error);
1478
+
1479
+
1480
+ _GI_TEST_EXTERN
1481
+ void gi_marshalling_tests_object_method_array_in (GIMarshallingTestsObject *object, const gint *ints, gint length);
1482
+
1483
+ _GI_TEST_EXTERN
1484
+ void gi_marshalling_tests_object_method_array_out (GIMarshallingTestsObject *object, gint **ints, gint *length);
1485
+
1486
+ _GI_TEST_EXTERN
1487
+ void gi_marshalling_tests_object_method_array_inout (GIMarshallingTestsObject *object, gint **ints, gint *length);
1488
+
1489
+ _GI_TEST_EXTERN
1490
+ const gint *gi_marshalling_tests_object_method_array_return (GIMarshallingTestsObject *object, gint *length);
1491
+
1492
+
1493
+ _GI_TEST_EXTERN
1494
+ void gi_marshalling_tests_object_method_int8_in (GIMarshallingTestsObject *object, gint8 in);
1495
+
1496
+ _GI_TEST_EXTERN
1497
+ void gi_marshalling_tests_object_method_int8_out (GIMarshallingTestsObject *object, gint8 *out);
1498
+
1499
+ _GI_TEST_EXTERN
1500
+ void gi_marshalling_tests_object_method_int8_arg_and_out_caller (GIMarshallingTestsObject *object, gint8 arg, gint8 *out);
1501
+
1502
+ _GI_TEST_EXTERN
1503
+ void gi_marshalling_tests_object_method_int8_arg_and_out_callee (GIMarshallingTestsObject *object, gint8 arg, gint8 **out);
1504
+
1505
+ _GI_TEST_EXTERN
1506
+ const gchar* gi_marshalling_tests_object_method_str_arg_out_ret (GIMarshallingTestsObject *object, const gchar* arg, guint *out);
1507
+
1508
+ _GI_TEST_EXTERN
1509
+ void gi_marshalling_tests_object_method_with_default_implementation (GIMarshallingTestsObject *object, gint8 in);
1510
+
1511
+ _GI_TEST_EXTERN
1512
+ void gi_marshalling_tests_object_method_variant_array_in (GIMarshallingTestsObject *object, GVariant **in, gsize n_in);
1513
+
1514
+
1515
+ _GI_TEST_EXTERN
1516
+ glong gi_marshalling_tests_object_vfunc_return_value_only (GIMarshallingTestsObject *self);
1517
+
1518
+ _GI_TEST_EXTERN
1519
+ void gi_marshalling_tests_object_vfunc_one_out_parameter (GIMarshallingTestsObject *self, gfloat *a);
1520
+
1521
+ _GI_TEST_EXTERN
1522
+ void gi_marshalling_tests_object_vfunc_multiple_out_parameters (GIMarshallingTestsObject *self, gfloat *a, gfloat *b);
1523
+
1524
+ _GI_TEST_EXTERN
1525
+ void gi_marshalling_tests_object_vfunc_caller_allocated_out_parameter (GIMarshallingTestsObject *self, GValue *a);
1526
+
1527
+ _GI_TEST_EXTERN
1528
+ void gi_marshalling_tests_object_vfunc_array_out_parameter (GIMarshallingTestsObject *self, gfloat **a);
1529
+
1530
+ _GI_TEST_EXTERN
1531
+ glong gi_marshalling_tests_object_vfunc_return_value_and_one_out_parameter (GIMarshallingTestsObject *self, glong *a);
1532
+
1533
+ _GI_TEST_EXTERN
1534
+ glong gi_marshalling_tests_object_vfunc_return_value_and_multiple_out_parameters (GIMarshallingTestsObject *self, glong *a, glong *b);
1535
+
1536
+ _GI_TEST_EXTERN
1537
+ gboolean gi_marshalling_tests_object_vfunc_meth_with_error (GIMarshallingTestsObject *object, gint x, GError **error);
1538
+
1539
+
1540
+ _GI_TEST_EXTERN
1541
+ GIMarshallingTestsEnum gi_marshalling_tests_object_vfunc_return_enum (GIMarshallingTestsObject *self);
1542
+
1543
+ _GI_TEST_EXTERN
1544
+ void gi_marshalling_tests_object_vfunc_out_enum (GIMarshallingTestsObject *self, GIMarshallingTestsEnum *_enum);
1545
+
1546
+
1547
+ _GI_TEST_EXTERN
1548
+ void gi_marshalling_tests_object_get_ref_info_for_vfunc_return_object_transfer_none (GIMarshallingTestsObject *self, guint *ref_count, gboolean *is_floating);
1549
+
1550
+ _GI_TEST_EXTERN
1551
+ void gi_marshalling_tests_object_get_ref_info_for_vfunc_return_object_transfer_full (GIMarshallingTestsObject *self, guint *ref_count, gboolean *is_floating);
1552
+
1553
+ _GI_TEST_EXTERN
1554
+ void gi_marshalling_tests_object_get_ref_info_for_vfunc_out_object_transfer_none (GIMarshallingTestsObject *self, guint *ref_count, gboolean *is_floating);
1555
+
1556
+ _GI_TEST_EXTERN
1557
+ void gi_marshalling_tests_object_get_ref_info_for_vfunc_out_object_transfer_full (GIMarshallingTestsObject *self, guint *ref_count, gboolean *is_floating);
1558
+
1559
+ _GI_TEST_EXTERN
1560
+ void gi_marshalling_tests_object_get_ref_info_for_vfunc_in_object_transfer_none (GIMarshallingTestsObject *self, GType type, guint *ref_count, gboolean *is_floating);
1561
+
1562
+ _GI_TEST_EXTERN
1563
+ void gi_marshalling_tests_object_get_ref_info_for_vfunc_in_object_transfer_full (GIMarshallingTestsObject *self, GType type, guint *ref_count, gboolean *is_floating);
1564
+
1565
+
1566
+ _GI_TEST_EXTERN
1567
+ GIMarshallingTestsObject *gi_marshalling_tests_object_none_return (void);
1568
+
1569
+ _GI_TEST_EXTERN
1570
+ GIMarshallingTestsObject *gi_marshalling_tests_object_full_return (void);
1571
+
1572
+
1573
+ _GI_TEST_EXTERN
1574
+ void gi_marshalling_tests_object_none_in (GIMarshallingTestsObject *object);
1575
+
1576
+ _GI_TEST_EXTERN
1577
+ void gi_marshalling_tests_object_full_in (GIMarshallingTestsObject *object);
1578
+
1579
+
1580
+ _GI_TEST_EXTERN
1581
+ void gi_marshalling_tests_object_none_out (GIMarshallingTestsObject **object);
1582
+
1583
+ _GI_TEST_EXTERN
1584
+ void gi_marshalling_tests_object_full_out (GIMarshallingTestsObject **object);
1585
+
1586
+
1587
+ _GI_TEST_EXTERN
1588
+ void gi_marshalling_tests_object_none_inout (GIMarshallingTestsObject **object);
1589
+
1590
+ _GI_TEST_EXTERN
1591
+ void gi_marshalling_tests_object_full_inout (GIMarshallingTestsObject **object);
1592
+
1593
+
1594
+ _GI_TEST_EXTERN
1595
+ void gi_marshalling_tests_object_int8_in (GIMarshallingTestsObject *object, gint8 in);
1596
+
1597
+ _GI_TEST_EXTERN
1598
+ void gi_marshalling_tests_object_int8_out (GIMarshallingTestsObject *object, gint8 *out);
1599
+
1600
+
1601
+ _GI_TEST_EXTERN
1602
+ void gi_marshalling_tests_object_vfunc_with_callback (GIMarshallingTestsObject *object,
1603
+ GIMarshallingTestsCallbackIntInt callback,
1604
+ void *callback_data);
1605
+
1606
+ _GI_TEST_EXTERN
1607
+ void gi_marshalling_tests_object_call_vfunc_with_callback (GIMarshallingTestsObject *object);
1608
+
1609
+ #define GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT (gi_marshalling_tests_sub_object_get_type ())
1610
+ #define GI_MARSHALLING_TESTS_SUB_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT, GIMarshallingTestsSubObject))
1611
+ #define GI_MARSHALLING_TESTS_SUB_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT, GIMarshallingTestsSubObjectClass))
1612
+ #define GI_MARSHALLING_TESTS_IS_SUB_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT))
1613
+ #define GI_MARSHALLING_TESTS_IS_SUB_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT))
1614
+ #define GI_MARSHALLING_TESTS_SUB_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT, GIMarshallingTestsSubObjectClass))
1615
+
1616
+ typedef struct _GIMarshallingTestsSubObjectClass GIMarshallingTestsSubObjectClass;
1617
+ typedef struct _GIMarshallingTestsSubObject GIMarshallingTestsSubObject;
1618
+
1619
+ struct _GIMarshallingTestsSubObjectClass
1620
+ {
1621
+ GIMarshallingTestsObjectClass parent_class;
1622
+ };
1623
+
1624
+ struct _GIMarshallingTestsSubObject
1625
+ {
1626
+ GIMarshallingTestsObject parent_instance;
1627
+ };
1628
+
1629
+
1630
+ _GI_TEST_EXTERN
1631
+ GType gi_marshalling_tests_sub_object_get_type (void) G_GNUC_CONST;
1632
+
1633
+
1634
+ _GI_TEST_EXTERN
1635
+ void gi_marshalling_tests_sub_object_sub_method (GIMarshallingTestsSubObject *object);
1636
+
1637
+ _GI_TEST_EXTERN
1638
+ void gi_marshalling_tests_sub_object_overwritten_method (GIMarshallingTestsSubObject *object);
1639
+
1640
+ #define GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT (gi_marshalling_tests_sub_sub_object_get_type ())
1641
+ #define GI_MARSHALLING_TESTS_SUB_SUB_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT, GIMarshallingTestsSubSubObject))
1642
+ #define GI_MARSHALLING_TESTS_SUB_SUB_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT, GIMarshallingTestsSubSubObjectClass))
1643
+ #define GI_MARSHALLING_TESTS_IS_SUB_SUB_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT))
1644
+ #define GI_MARSHALLING_TESTS_IS_SUB_SUB_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT))
1645
+ #define GI_MARSHALLING_TESTS_SUB_SUB_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT, GIMarshallingTestsSubSubObjectClass))
1646
+
1647
+ typedef struct _GIMarshallingTestsSubSubObjectClass GIMarshallingTestsSubSubObjectClass;
1648
+ typedef struct _GIMarshallingTestsSubSubObject GIMarshallingTestsSubSubObject;
1649
+
1650
+ struct _GIMarshallingTestsSubSubObjectClass
1651
+ {
1652
+ GIMarshallingTestsSubObjectClass parent_class;
1653
+ };
1654
+
1655
+ struct _GIMarshallingTestsSubSubObject
1656
+ {
1657
+ GIMarshallingTestsSubObject parent_instance;
1658
+ };
1659
+
1660
+
1661
+ _GI_TEST_EXTERN
1662
+ GType gi_marshalling_tests_sub_sub_object_get_type (void) G_GNUC_CONST;
1663
+
1664
+ /* Interfaces */
1665
+
1666
+ #define GI_MARSHALLING_TESTS_TYPE_INTERFACE (gi_marshalling_tests_interface_get_type ())
1667
+ #define GI_MARSHALLING_TESTS_INTERFACE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE, GIMarshallingTestsInterface))
1668
+ #define GI_MARSHALLING_TESTS_IS_INTERFACE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE))
1669
+ #define GI_MARSHALLING_TESTS_INTERFACE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GI_MARSHALLING_TESTS_TYPE_INTERFACE, GIMarshallingTestsInterfaceIface))
1670
+
1671
+ typedef struct _GIMarshallingTestsInterface GIMarshallingTestsInterface;
1672
+ typedef struct _GIMarshallingTestsInterfaceIface GIMarshallingTestsInterfaceIface;
1673
+
1674
+ struct _GIMarshallingTestsInterfaceIface {
1675
+ GTypeInterface base_iface;
1676
+
1677
+ /**
1678
+ * GIMarshallingTestsInterfaceIface::test_int8_in:
1679
+ * @in: (in):
1680
+ */
1681
+ void (* test_int8_in) (GIMarshallingTestsInterface *self, gint8 in);
1682
+ };
1683
+
1684
+
1685
+ _GI_TEST_EXTERN
1686
+ GType gi_marshalling_tests_interface_get_type (void) G_GNUC_CONST;
1687
+
1688
+
1689
+ _GI_TEST_EXTERN
1690
+ void gi_marshalling_tests_interface_test_int8_in (GIMarshallingTestsInterface *self, gint8 in);
1691
+
1692
+
1693
+ _GI_TEST_EXTERN
1694
+ void gi_marshalling_tests_test_interface_test_int8_in (GIMarshallingTestsInterface *test_iface, gint8 in);
1695
+
1696
+ /* GIMarshallingTestsInterfaceImpl is a class that implements
1697
+ GIMarshallingTestsInterface */
1698
+
1699
+ #define GI_MARSHALLING_TESTS_TYPE_INTERFACE_IMPL (gi_marshalling_tests_interface_impl_get_type ())
1700
+ #define GI_MARSHALLING_TESTS_INTERFACE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_INTERFACE_IMPL, GIMarshallingTestsInterfaceImpl))
1701
+ #define GI_MARSHALLING_TESTS_INTERFACE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_INTERFACE_IMPL, GIMarshallingTestsInterfaceImplClass))
1702
+ #define GI_MARSHALLING_TESTS_IS_INTERFACE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_INTERFACE_IMPL))
1703
+ #define GI_MARSHALLING_TESTS_IS_INTERFACE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_INTERFACE_IMPL))
1704
+ #define GI_MARSHALLING_TESTS_INTERFACE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_INTERFACE_IMPL, GIMarshallingTestsInterfaceImplClass))
1705
+
1706
+
1707
+ typedef struct _GIMarshallingTestsInterfaceImplClass GIMarshallingTestsInterfaceImplClass;
1708
+ typedef struct _GIMarshallingTestsInterfaceImpl GIMarshallingTestsInterfaceImpl;
1709
+
1710
+ struct _GIMarshallingTestsInterfaceImplClass
1711
+ {
1712
+ GObjectClass parent_class;
1713
+ };
1714
+
1715
+ struct _GIMarshallingTestsInterfaceImpl
1716
+ {
1717
+ GObject parent_instance;
1718
+
1719
+ gint int_;
1720
+ };
1721
+
1722
+
1723
+ _GI_TEST_EXTERN
1724
+ GType gi_marshalling_tests_interface_impl_get_type (void) G_GNUC_CONST;
1725
+
1726
+ _GI_TEST_EXTERN
1727
+ GIMarshallingTestsInterface *gi_marshalling_tests_interface_impl_get_as_interface (GIMarshallingTestsInterfaceImpl *self);
1728
+
1729
+ /* GIMarshallingTestsInterface2 allows us testing vfunc clashes when a class'
1730
+ vfunc implementation ambiguously relates to its prototype */
1731
+
1732
+ #define GI_MARSHALLING_TESTS_TYPE_INTERFACE2 (gi_marshalling_tests_interface2_get_type ())
1733
+ #define GI_MARSHALLING_TESTS_INTERFACE2(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE2, GIMarshallingTestsInterface2))
1734
+ #define GI_MARSHALLING_TESTS_IS_INTERFACE2(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE2))
1735
+ #define GI_MARSHALLING_TESTS_INTERFACE2_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GI_MARSHALLING_TESTS_TYPE_INTERFACE2, GIMarshallingTestsInterface2Iface))
1736
+
1737
+ typedef struct _GIMarshallingTestsInterface2 GIMarshallingTestsInterface2;
1738
+ typedef struct _GIMarshallingTestsInterface2Iface GIMarshallingTestsInterface2Iface;
1739
+
1740
+ struct _GIMarshallingTestsInterface2Iface {
1741
+ GTypeInterface base_iface;
1742
+
1743
+ /**
1744
+ * GIMarshallingTestsInterface2Iface::test_int8_in:
1745
+ * @in: (in):
1746
+ */
1747
+ void (* test_int8_in) (GIMarshallingTestsInterface2 *self, gint8 in);
1748
+ };
1749
+
1750
+
1751
+ _GI_TEST_EXTERN
1752
+ GType gi_marshalling_tests_interface2_get_type (void) G_GNUC_CONST;
1753
+
1754
+ /* GIMarshallingTestsInterface3 tests passing arrays of variants from C to @lang */
1755
+
1756
+ #define GI_MARSHALLING_TESTS_TYPE_INTERFACE3 (gi_marshalling_tests_interface3_get_type ())
1757
+ #define GI_MARSHALLING_TESTS_INTERFACE3(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE3, GIMarshallingTestsInterface3))
1758
+ #define GI_MARSHALLING_TESTS_IS_INTERFACE3(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE3))
1759
+ #define GI_MARSHALLING_TESTS_INTERFACE3_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GI_MARSHALLING_TESTS_TYPE_INTERFACE3, GIMarshallingTestsInterface3Iface))
1760
+
1761
+ typedef struct _GIMarshallingTestsInterface3 GIMarshallingTestsInterface3;
1762
+ typedef struct _GIMarshallingTestsInterface3Iface GIMarshallingTestsInterface3Iface;
1763
+
1764
+ struct _GIMarshallingTestsInterface3Iface {
1765
+ GTypeInterface base_iface;
1766
+
1767
+ /**
1768
+ * GIMarshallingTestsInterface3::test_variant_array_in:
1769
+ * @in: (in) (array length=n_in):
1770
+ */
1771
+ void (* test_variant_array_in) (GIMarshallingTestsInterface3 *self, GVariant **in, gsize n_in);
1772
+ };
1773
+
1774
+
1775
+ _GI_TEST_EXTERN
1776
+ GType gi_marshalling_tests_interface3_get_type (void) G_GNUC_CONST;
1777
+
1778
+
1779
+ _GI_TEST_EXTERN
1780
+ void gi_marshalling_tests_interface3_test_variant_array_in (GIMarshallingTestsInterface3 *self, GVariant **in, gsize n_in);
1781
+
1782
+ /* Multiple output arguments */
1783
+
1784
+
1785
+ _GI_TEST_EXTERN
1786
+ void gi_marshalling_tests_int_out_out (gint *int0, gint *int1);
1787
+
1788
+ _GI_TEST_EXTERN
1789
+ void gi_marshalling_tests_int_three_in_three_out(gint a, gint b, gint c,
1790
+ gint *out0, gint *out1, gint *out2);
1791
+
1792
+ _GI_TEST_EXTERN
1793
+ gint gi_marshalling_tests_int_return_out (gint *int_);
1794
+
1795
+ /* Default arguments */
1796
+ _GI_TEST_EXTERN
1797
+ void gi_marshalling_tests_int_two_in_utf8_two_in_with_allow_none (gint a, gint b, const gchar *c, const gchar *d);
1798
+
1799
+ _GI_TEST_EXTERN
1800
+ void gi_marshalling_tests_int_one_in_utf8_two_in_one_allows_none (gint a, const gchar *b, const gchar *c);
1801
+
1802
+ _GI_TEST_EXTERN
1803
+ void gi_marshalling_tests_array_in_utf8_two_in (const gint *ints, gint length, const gchar *a, const gchar *b);
1804
+
1805
+ _GI_TEST_EXTERN
1806
+ void gi_marshalling_tests_array_in_utf8_two_in_out_of_order (gint length, const gchar *a, const gint *ints, const gchar *b);
1807
+
1808
+ /* GError */
1809
+
1810
+ #define GI_MARSHALLING_TESTS_CONSTANT_GERROR_DOMAIN "gi-marshalling-tests-gerror-domain"
1811
+ #define GI_MARSHALLING_TESTS_CONSTANT_GERROR_CODE 5
1812
+ #define GI_MARSHALLING_TESTS_CONSTANT_GERROR_MESSAGE "gi-marshalling-tests-gerror-message"
1813
+ #define GI_MARSHALLING_TESTS_CONSTANT_GERROR_DEBUG_MESSAGE "we got an error, life is shit"
1814
+
1815
+
1816
+ _GI_TEST_EXTERN
1817
+ void gi_marshalling_tests_gerror(GError **error);
1818
+
1819
+ _GI_TEST_EXTERN
1820
+ void gi_marshalling_tests_gerror_array_in(gint *in_ints, GError **error);
1821
+
1822
+ _GI_TEST_EXTERN
1823
+ void gi_marshalling_tests_gerror_out(GError **error, gchar **debug);
1824
+
1825
+ _GI_TEST_EXTERN
1826
+ void gi_marshalling_tests_gerror_out_transfer_none(GError **err, const gchar **debug);
1827
+
1828
+ _GI_TEST_EXTERN
1829
+ GError *gi_marshalling_tests_gerror_return(void);
1830
+
1831
+ /* GParamSpec */
1832
+ _GI_TEST_EXTERN
1833
+ void gi_marshalling_tests_param_spec_in_bool(const GParamSpec *param);
1834
+
1835
+ _GI_TEST_EXTERN
1836
+ GParamSpec *gi_marshalling_tests_param_spec_return (void);
1837
+
1838
+ _GI_TEST_EXTERN
1839
+ void gi_marshalling_tests_param_spec_out(GParamSpec **param);
1840
+
1841
+ /* Overrides */
1842
+
1843
+ #define GI_MARSHALLING_TESTS_OVERRIDES_CONSTANT 42
1844
+
1845
+
1846
+ typedef struct {
1847
+ glong long_;
1848
+ } GIMarshallingTestsOverridesStruct;
1849
+
1850
+ _GI_TEST_EXTERN
1851
+ GType gi_marshalling_tests_overrides_struct_get_type (void) G_GNUC_CONST;
1852
+
1853
+
1854
+ _GI_TEST_EXTERN
1855
+ GIMarshallingTestsOverridesStruct *gi_marshalling_tests_overrides_struct_new (void);
1856
+
1857
+
1858
+ _GI_TEST_EXTERN
1859
+ glong gi_marshalling_tests_overrides_struct_method (GIMarshallingTestsOverridesStruct *struct_);
1860
+
1861
+
1862
+ _GI_TEST_EXTERN
1863
+ GIMarshallingTestsOverridesStruct *gi_marshalling_tests_overrides_struct_returnv (void);
1864
+
1865
+
1866
+ #define GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT (gi_marshalling_tests_overrides_object_get_type ())
1867
+ #define GI_MARSHALLING_TESTS_OVERRIDES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT, GIMarshallingTestsOverridesObject))
1868
+ #define GI_MARSHALLING_TESTS_OVERRIDES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT, GIMarshallingTestsOverridesObjectClass))
1869
+ #define GI_MARSHALLING_TESTS_IS_OVERRIDES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT))
1870
+ #define GI_MARSHALLING_TESTS_IS_OVERRIDES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT))
1871
+ #define GI_MARSHALLING_TESTS_OVERRIDES_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT, GIMarshallingTestsOverridesObjectClass))
1872
+
1873
+ typedef struct _GIMarshallingTestsOverridesObjectClass GIMarshallingTestsOverridesObjectClass;
1874
+ typedef struct _GIMarshallingTestsOverridesObject GIMarshallingTestsOverridesObject;
1875
+
1876
+ struct _GIMarshallingTestsOverridesObjectClass
1877
+ {
1878
+ GObjectClass parent_class;
1879
+ };
1880
+
1881
+ struct _GIMarshallingTestsOverridesObject
1882
+ {
1883
+ GObject parent_instance;
1884
+
1885
+ glong long_;
1886
+ };
1887
+
1888
+ _GI_TEST_EXTERN
1889
+ GType gi_marshalling_tests_overrides_object_get_type (void) G_GNUC_CONST;
1890
+
1891
+
1892
+ _GI_TEST_EXTERN
1893
+ GIMarshallingTestsOverridesObject *gi_marshalling_tests_overrides_object_new (void);
1894
+
1895
+
1896
+ _GI_TEST_EXTERN
1897
+ glong gi_marshalling_tests_overrides_object_method (GIMarshallingTestsOverridesObject *object);
1898
+
1899
+
1900
+ _GI_TEST_EXTERN
1901
+ GIMarshallingTestsOverridesObject *gi_marshalling_tests_overrides_object_returnv (void);
1902
+
1903
+ /* Properties Object */
1904
+
1905
+ #define GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT (gi_marshalling_tests_properties_object_get_type ())
1906
+ #define GI_MARSHALLING_TESTS_PROPERTIES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT, GIMarshallingTestsPropertiesObject))
1907
+ #define GI_MARSHALLING_TESTS_PROPERTIES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT, GIMarshallingTestsPropertiesObjectClass))
1908
+ #define GI_MARSHALLING_TESTS_IS_PROPERTIES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT))
1909
+ #define GI_MARSHALLING_TESTS_IS_PROPERTIES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT))
1910
+ #define GI_MARSHALLING_TESTS_PROPERTIES_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT, GIMarshallingTestsPropertiesObjectClass))
1911
+
1912
+ typedef struct _GIMarshallingTestsPropertiesObject GIMarshallingTestsPropertiesObject;
1913
+ typedef struct _GIMarshallingTestsPropertiesObjectClass GIMarshallingTestsPropertiesObjectClass;
1914
+
1915
+ struct _GIMarshallingTestsPropertiesObject {
1916
+ GObject parent_instance;
1917
+
1918
+ gboolean some_boolean;
1919
+ gchar some_char;
1920
+ guchar some_uchar;
1921
+ gint some_int;
1922
+ guint some_uint;
1923
+ glong some_long;
1924
+ gulong some_ulong;
1925
+ gint64 some_int64;
1926
+ guint64 some_uint64;
1927
+ gfloat some_float;
1928
+ gdouble some_double;
1929
+ gchar **some_strv;
1930
+ GIMarshallingTestsBoxedStruct* some_boxed_struct;
1931
+ GList* some_boxed_glist;
1932
+ GVariant *some_variant;
1933
+ GObject *some_object;
1934
+ };
1935
+
1936
+ struct _GIMarshallingTestsPropertiesObjectClass {
1937
+ GObjectClass parent_class;
1938
+ };
1939
+
1940
+
1941
+ _GI_TEST_EXTERN
1942
+ GType gi_marshalling_tests_properties_object_get_type (void) G_GNUC_CONST;
1943
+
1944
+
1945
+ _GI_TEST_EXTERN
1946
+ GIMarshallingTestsPropertiesObject *gi_marshalling_tests_properties_object_new (void);
1947
+
1948
+ #endif /* _GI_MARSHALLING_TESTS_H_ */