gobject-introspection 2.0.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (268) hide show
  1. data/Rakefile +118 -0
  2. data/ext/gobject-introspection/depend +10 -0
  3. data/ext/gobject-introspection/extconf.rb +97 -0
  4. data/ext/gobject-introspection/gobject_introspection.def +5 -0
  5. data/ext/gobject-introspection/rb-gi-arg-info.c +151 -0
  6. data/ext/gobject-introspection/rb-gi-argument.c +1015 -0
  7. data/ext/gobject-introspection/rb-gi-base-info.c +218 -0
  8. data/ext/gobject-introspection/rb-gi-boxed-info.c +48 -0
  9. data/ext/gobject-introspection/rb-gi-callable-info.c +104 -0
  10. data/ext/gobject-introspection/rb-gi-callback-info.c +48 -0
  11. data/ext/gobject-introspection/rb-gi-constant-info.c +77 -0
  12. data/ext/gobject-introspection/rb-gi-constructor-info.c +120 -0
  13. data/ext/gobject-introspection/rb-gi-conversions.h +116 -0
  14. data/ext/gobject-introspection/rb-gi-enum-info.c +145 -0
  15. data/ext/gobject-introspection/rb-gi-field-info.c +153 -0
  16. data/ext/gobject-introspection/rb-gi-flags-info.c +48 -0
  17. data/ext/gobject-introspection/rb-gi-function-info.c +658 -0
  18. data/ext/gobject-introspection/rb-gi-interface-info.c +222 -0
  19. data/ext/gobject-introspection/rb-gi-loader.c +162 -0
  20. data/ext/gobject-introspection/rb-gi-method-info.c +109 -0
  21. data/ext/gobject-introspection/rb-gi-object-info.c +345 -0
  22. data/ext/gobject-introspection/rb-gi-private.h +110 -0
  23. data/ext/gobject-introspection/rb-gi-property-info.c +77 -0
  24. data/ext/gobject-introspection/rb-gi-registered-type-info.c +86 -0
  25. data/ext/gobject-introspection/rb-gi-repository.c +164 -0
  26. data/ext/gobject-introspection/rb-gi-signal-info.c +77 -0
  27. data/ext/gobject-introspection/rb-gi-struct-info.c +190 -0
  28. data/ext/gobject-introspection/rb-gi-type-info.c +143 -0
  29. data/ext/gobject-introspection/rb-gi-type-tag.c +43 -0
  30. data/ext/gobject-introspection/rb-gi-types.h +71 -0
  31. data/ext/gobject-introspection/rb-gi-union-info.c +206 -0
  32. data/ext/gobject-introspection/rb-gi-unresolved-info.c +48 -0
  33. data/ext/gobject-introspection/rb-gi-value-info.c +57 -0
  34. data/ext/gobject-introspection/rb-gi-vfunc-info.c +91 -0
  35. data/ext/gobject-introspection/rb-gobject-introspection.c +44 -0
  36. data/ext/gobject-introspection/rb-gobject-introspection.h +57 -0
  37. data/extconf.rb +71 -0
  38. data/lib/1.9/gobject_introspection.so +0 -0
  39. data/lib/2.0/gobject_introspection.so +0 -0
  40. data/lib/gobject-introspection.rb +52 -0
  41. data/lib/gobject-introspection/callable-info.rb +91 -0
  42. data/lib/gobject-introspection/collection-reader.rb +34 -0
  43. data/lib/gobject-introspection/interface-info.rb +32 -0
  44. data/lib/gobject-introspection/loader.rb +328 -0
  45. data/lib/gobject-introspection/object-info.rb +33 -0
  46. data/lib/gobject-introspection/repository.rb +32 -0
  47. data/lib/gobject-introspection/struct-info.rb +28 -0
  48. data/lib/gobject-introspection/union-info.rb +28 -0
  49. data/test/gobject-introspection-test-utils.rb +26 -0
  50. data/test/run-test.rb +45 -0
  51. data/test/test-arg-info.rb +68 -0
  52. data/test/test-base-info.rb +31 -0
  53. data/test/test-boxed-info.rb +21 -0
  54. data/test/test-callable-info.rb +49 -0
  55. data/test/test-callback-info.rb +29 -0
  56. data/test/test-constant-info.rb +24 -0
  57. data/test/test-enum-info.rb +56 -0
  58. data/test/test-field-type.rb +42 -0
  59. data/test/test-flags-info.rb +27 -0
  60. data/test/test-function-info.rb +37 -0
  61. data/test/test-interface-info.rb +97 -0
  62. data/test/test-loader.rb +30 -0
  63. data/test/test-object-info.rb +131 -0
  64. data/test/test-property-info.rb +38 -0
  65. data/test/test-registered-type-info.rb +35 -0
  66. data/test/test-repository.rb +59 -0
  67. data/test/test-signal-info.rb +37 -0
  68. data/test/test-struct-info.rb +57 -0
  69. data/test/test-type-info.rb +62 -0
  70. data/test/test-type-tag.rb +29 -0
  71. data/test/test-union-info.rb +21 -0
  72. data/test/test-value-info.rb +28 -0
  73. data/test/test-vfunc-info.rb +42 -0
  74. data/vendor/local/bin/g-ir-compiler.exe +0 -0
  75. data/vendor/local/bin/g-ir-generate.exe +0 -0
  76. data/vendor/local/bin/libgirepository-1.0-1.dll +0 -0
  77. data/vendor/local/include/gobject-introspection-1.0/giarginfo.h +52 -0
  78. data/vendor/local/include/gobject-introspection-1.0/gibaseinfo.h +89 -0
  79. data/vendor/local/include/gobject-introspection-1.0/gicallableinfo.h +74 -0
  80. data/vendor/local/include/gobject-introspection-1.0/giconstantinfo.h +46 -0
  81. data/vendor/local/include/gobject-introspection-1.0/gienuminfo.h +56 -0
  82. data/vendor/local/include/gobject-introspection-1.0/gifieldinfo.h +52 -0
  83. data/vendor/local/include/gobject-introspection-1.0/gifunctioninfo.h +77 -0
  84. data/vendor/local/include/gobject-introspection-1.0/giinterfaceinfo.h +68 -0
  85. data/vendor/local/include/gobject-introspection-1.0/giobjectinfo.h +137 -0
  86. data/vendor/local/include/gobject-introspection-1.0/gipropertyinfo.h +44 -0
  87. data/vendor/local/include/gobject-introspection-1.0/giregisteredtypeinfo.h +53 -0
  88. data/vendor/local/include/gobject-introspection-1.0/girepository.h +179 -0
  89. data/vendor/local/include/gobject-introspection-1.0/girffi.h +80 -0
  90. data/vendor/local/include/gobject-introspection-1.0/gisignalinfo.h +45 -0
  91. data/vendor/local/include/gobject-introspection-1.0/gistructinfo.h +53 -0
  92. data/vendor/local/include/gobject-introspection-1.0/gitypeinfo.h +56 -0
  93. data/vendor/local/include/gobject-introspection-1.0/gitypelib.h +55 -0
  94. data/vendor/local/include/gobject-introspection-1.0/gitypes.h +453 -0
  95. data/vendor/local/include/gobject-introspection-1.0/giunioninfo.h +57 -0
  96. data/vendor/local/include/gobject-introspection-1.0/givfuncinfo.h +56 -0
  97. data/vendor/local/lib/girepository-1.0/DBus-1.0.typelib +0 -0
  98. data/vendor/local/lib/girepository-1.0/DBusGLib-1.0.typelib +0 -0
  99. data/vendor/local/lib/girepository-1.0/GIRepository-2.0.typelib +0 -0
  100. data/vendor/local/lib/girepository-1.0/GL-1.0.typelib +0 -0
  101. data/vendor/local/lib/girepository-1.0/GLib-2.0.typelib +0 -0
  102. data/vendor/local/lib/girepository-1.0/GModule-2.0.typelib +0 -0
  103. data/vendor/local/lib/girepository-1.0/GObject-2.0.typelib +0 -0
  104. data/vendor/local/lib/girepository-1.0/Gio-2.0.typelib +0 -0
  105. data/vendor/local/lib/girepository-1.0/cairo-1.0.typelib +0 -0
  106. data/vendor/local/lib/girepository-1.0/fontconfig-2.0.typelib +0 -0
  107. data/vendor/local/lib/girepository-1.0/freetype2-2.0.typelib +0 -0
  108. data/vendor/local/lib/girepository-1.0/libxml2-2.0.typelib +0 -0
  109. data/vendor/local/lib/girepository-1.0/xfixes-4.0.typelib +0 -0
  110. data/vendor/local/lib/girepository-1.0/xft-2.0.typelib +0 -0
  111. data/vendor/local/lib/girepository-1.0/xlib-2.0.typelib +0 -0
  112. data/vendor/local/lib/girepository-1.0/xrandr-1.3.typelib +0 -0
  113. data/vendor/local/lib/gobject-introspection/giscanner/__init__.py +24 -0
  114. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyc +0 -0
  115. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyo +0 -0
  116. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.py +74 -0
  117. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyc +0 -0
  118. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyo +0 -0
  119. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.py +1204 -0
  120. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyc +0 -0
  121. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyo +0 -0
  122. data/vendor/local/lib/gobject-introspection/giscanner/ast.py +1100 -0
  123. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyc +0 -0
  124. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyo +0 -0
  125. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.py +196 -0
  126. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyc +0 -0
  127. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyo +0 -0
  128. data/vendor/local/lib/gobject-introspection/giscanner/codegen.py +140 -0
  129. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyc +0 -0
  130. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyo +0 -0
  131. data/vendor/local/lib/gobject-introspection/giscanner/docmain.py +60 -0
  132. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyc +0 -0
  133. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyo +0 -0
  134. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/class.tmpl +2 -0
  135. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/constructor.tmpl +1 -0
  136. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/default.tmpl +1 -0
  137. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/enum.tmpl +2 -0
  138. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/function.tmpl +61 -0
  139. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/method.tmpl +1 -0
  140. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/namespace.tmpl +1 -0
  141. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/property.tmpl +5 -0
  142. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/record.tmpl +1 -0
  143. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/signal.tmpl +5 -0
  144. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/vfunc.tmpl +4 -0
  145. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/class.tmpl +18 -0
  146. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/constructor.tmpl +1 -0
  147. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/default.tmpl +1 -0
  148. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/enum.tmpl +13 -0
  149. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl +48 -0
  150. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/method.tmpl +1 -0
  151. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/namespace.tmpl +2 -0
  152. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/property.tmpl +10 -0
  153. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/record.tmpl +2 -0
  154. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/signal.tmpl +37 -0
  155. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/vfunc.tmpl +27 -0
  156. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/class.tmpl +17 -0
  157. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/constructor.tmpl +1 -0
  158. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/default.tmpl +1 -0
  159. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/enum.tmpl +13 -0
  160. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/function.tmpl +53 -0
  161. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/method.tmpl +1 -0
  162. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/namespace.tmpl +2 -0
  163. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/property.tmpl +10 -0
  164. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/record.tmpl +2 -0
  165. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/signal.tmpl +42 -0
  166. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/vfunc.tmpl +33 -0
  167. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/base.tmpl +29 -0
  168. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/class.tmpl +40 -0
  169. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/namespace.tmpl +19 -0
  170. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.py +635 -0
  171. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyc +0 -0
  172. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyo +0 -0
  173. data/vendor/local/lib/gobject-introspection/giscanner/dumper.py +363 -0
  174. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyc +0 -0
  175. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyo +0 -0
  176. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.py +551 -0
  177. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyc +0 -0
  178. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyo +0 -0
  179. data/vendor/local/lib/gobject-introspection/giscanner/girparser.py +581 -0
  180. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyc +0 -0
  181. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyo +0 -0
  182. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.py +584 -0
  183. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyc +0 -0
  184. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyo +0 -0
  185. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.py +236 -0
  186. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyc +0 -0
  187. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyo +0 -0
  188. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.py +76 -0
  189. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyc +0 -0
  190. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyo +0 -0
  191. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.py +1337 -0
  192. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyc +0 -0
  193. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyo +0 -0
  194. data/vendor/local/lib/gobject-introspection/giscanner/message.py +185 -0
  195. data/vendor/local/lib/gobject-introspection/giscanner/message.pyc +0 -0
  196. data/vendor/local/lib/gobject-introspection/giscanner/message.pyo +0 -0
  197. data/vendor/local/lib/gobject-introspection/giscanner/odict.py +50 -0
  198. data/vendor/local/lib/gobject-introspection/giscanner/odict.pyc +0 -0
  199. data/vendor/local/lib/gobject-introspection/giscanner/odict.pyo +0 -0
  200. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.py +497 -0
  201. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyc +0 -0
  202. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyo +0 -0
  203. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.py +78 -0
  204. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyc +0 -0
  205. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyo +0 -0
  206. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.py +132 -0
  207. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyc +0 -0
  208. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyo +0 -0
  209. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.py +324 -0
  210. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyc +0 -0
  211. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyo +0 -0
  212. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.py +119 -0
  213. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyc +0 -0
  214. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyo +0 -0
  215. data/vendor/local/lib/gobject-introspection/giscanner/transformer.py +999 -0
  216. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyc +0 -0
  217. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyo +0 -0
  218. data/vendor/local/lib/gobject-introspection/giscanner/utils.py +141 -0
  219. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyc +0 -0
  220. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyo +0 -0
  221. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.py +197 -0
  222. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyc +0 -0
  223. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyo +0 -0
  224. data/vendor/local/lib/libgirepository-1.0.a +0 -0
  225. data/vendor/local/lib/libgirepository-1.0.dll.a +0 -0
  226. data/vendor/local/lib/libgirepository-1.0.la +41 -0
  227. data/vendor/local/lib/pkgconfig/gobject-introspection-1.0.pc +26 -0
  228. data/vendor/local/lib/pkgconfig/gobject-introspection-no-export-1.0.pc +23 -0
  229. data/vendor/local/share/aclocal/introspection.m4 +96 -0
  230. data/vendor/local/share/gir-1.0/DBus-1.0.gir +32 -0
  231. data/vendor/local/share/gir-1.0/DBusGLib-1.0.gir +18 -0
  232. data/vendor/local/share/gir-1.0/GIRepository-2.0.gir +3833 -0
  233. data/vendor/local/share/gir-1.0/GL-1.0.gir +31 -0
  234. data/vendor/local/share/gir-1.0/GLib-2.0.gir +44304 -0
  235. data/vendor/local/share/gir-1.0/GModule-2.0.gir +184 -0
  236. data/vendor/local/share/gir-1.0/GObject-2.0.gir +13947 -0
  237. data/vendor/local/share/gir-1.0/Gio-2.0.gir +73619 -0
  238. data/vendor/local/share/gir-1.0/cairo-1.0.gir +70 -0
  239. data/vendor/local/share/gir-1.0/fontconfig-2.0.gir +18 -0
  240. data/vendor/local/share/gir-1.0/freetype2-2.0.gir +22 -0
  241. data/vendor/local/share/gir-1.0/libxml2-2.0.gir +25 -0
  242. data/vendor/local/share/gir-1.0/xfixes-4.0.gir +10 -0
  243. data/vendor/local/share/gir-1.0/xft-2.0.gir +23 -0
  244. data/vendor/local/share/gir-1.0/xlib-2.0.gir +67 -0
  245. data/vendor/local/share/gir-1.0/xrandr-1.3.gir +16 -0
  246. data/vendor/local/share/gobject-introspection-1.0/Makefile.introspection +166 -0
  247. data/vendor/local/share/gobject-introspection-1.0/gdump.c +564 -0
  248. data/vendor/local/share/gobject-introspection-1.0/tests/annotation.c +835 -0
  249. data/vendor/local/share/gobject-introspection-1.0/tests/annotation.h +198 -0
  250. data/vendor/local/share/gobject-introspection-1.0/tests/drawable.c +55 -0
  251. data/vendor/local/share/gobject-introspection-1.0/tests/drawable.h +33 -0
  252. data/vendor/local/share/gobject-introspection-1.0/tests/everything.c +1473 -0
  253. data/vendor/local/share/gobject-introspection-1.0/tests/everything.h +428 -0
  254. data/vendor/local/share/gobject-introspection-1.0/tests/foo.c +790 -0
  255. data/vendor/local/share/gobject-introspection-1.0/tests/foo.h +437 -0
  256. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.c +5256 -0
  257. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.h +1158 -0
  258. data/vendor/local/share/gobject-introspection-1.0/tests/regress.c +4009 -0
  259. data/vendor/local/share/gobject-introspection-1.0/tests/regress.h +944 -0
  260. data/vendor/local/share/gobject-introspection-1.0/tests/utility.c +45 -0
  261. data/vendor/local/share/gobject-introspection-1.0/tests/utility.h +95 -0
  262. data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.c +33 -0
  263. data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.h +36 -0
  264. data/vendor/local/share/license/gobject-introspection/AUTHORS +9 -0
  265. data/vendor/local/share/license/gobject-introspection/COPYING +12 -0
  266. data/vendor/local/share/man/man1/g-ir-compiler.1 +51 -0
  267. data/vendor/local/share/man/man1/g-ir-generate.1 +29 -0
  268. metadata +343 -0
@@ -0,0 +1,428 @@
1
+ /* GENERATED BY testcodegen.py; DO NOT EDIT */
2
+
3
+
4
+ #ifndef __EVERYTHING_H__
5
+ #define __EVERYTHING_H__
6
+
7
+ #include <glib-object.h>
8
+
9
+ void
10
+ everything_nullfunc (void);
11
+
12
+
13
+ gboolean
14
+ everything_const_return_gboolean (void);
15
+
16
+
17
+ gint8
18
+ everything_const_return_gint8 (void);
19
+
20
+
21
+ guint8
22
+ everything_const_return_guint8 (void);
23
+
24
+
25
+ gint16
26
+ everything_const_return_gint16 (void);
27
+
28
+
29
+ guint16
30
+ everything_const_return_guint16 (void);
31
+
32
+
33
+ gint32
34
+ everything_const_return_gint32 (void);
35
+
36
+
37
+ guint32
38
+ everything_const_return_guint32 (void);
39
+
40
+
41
+ gint64
42
+ everything_const_return_gint64 (void);
43
+
44
+
45
+ guint64
46
+ everything_const_return_guint64 (void);
47
+
48
+
49
+ gchar
50
+ everything_const_return_gchar (void);
51
+
52
+
53
+ gshort
54
+ everything_const_return_gshort (void);
55
+
56
+
57
+ gushort
58
+ everything_const_return_gushort (void);
59
+
60
+
61
+ gint
62
+ everything_const_return_gint (void);
63
+
64
+
65
+ guint
66
+ everything_const_return_guint (void);
67
+
68
+
69
+ glong
70
+ everything_const_return_glong (void);
71
+
72
+
73
+ gulong
74
+ everything_const_return_gulong (void);
75
+
76
+
77
+ gsize
78
+ everything_const_return_gsize (void);
79
+
80
+
81
+ gssize
82
+ everything_const_return_gssize (void);
83
+
84
+
85
+ gintptr
86
+ everything_const_return_gintptr (void);
87
+
88
+
89
+ guintptr
90
+ everything_const_return_guintptr (void);
91
+
92
+
93
+ gfloat
94
+ everything_const_return_gfloat (void);
95
+
96
+
97
+ gdouble
98
+ everything_const_return_gdouble (void);
99
+
100
+
101
+ gunichar
102
+ everything_const_return_gunichar (void);
103
+
104
+
105
+ GType
106
+ everything_const_return_GType (void);
107
+
108
+
109
+ const gchar*
110
+ everything_const_return_utf8 (void);
111
+
112
+
113
+ const gchar*
114
+ everything_const_return_filename (void);
115
+
116
+
117
+ void
118
+ everything_oneparam_gboolean (gboolean arg0);
119
+
120
+
121
+ void
122
+ everything_oneparam_gint8 (gint8 arg0);
123
+
124
+
125
+ void
126
+ everything_oneparam_guint8 (guint8 arg0);
127
+
128
+
129
+ void
130
+ everything_oneparam_gint16 (gint16 arg0);
131
+
132
+
133
+ void
134
+ everything_oneparam_guint16 (guint16 arg0);
135
+
136
+
137
+ void
138
+ everything_oneparam_gint32 (gint32 arg0);
139
+
140
+
141
+ void
142
+ everything_oneparam_guint32 (guint32 arg0);
143
+
144
+
145
+ void
146
+ everything_oneparam_gint64 (gint64 arg0);
147
+
148
+
149
+ void
150
+ everything_oneparam_guint64 (guint64 arg0);
151
+
152
+
153
+ void
154
+ everything_oneparam_gchar (gchar arg0);
155
+
156
+
157
+ void
158
+ everything_oneparam_gshort (gshort arg0);
159
+
160
+
161
+ void
162
+ everything_oneparam_gushort (gushort arg0);
163
+
164
+
165
+ void
166
+ everything_oneparam_gint (gint arg0);
167
+
168
+
169
+ void
170
+ everything_oneparam_guint (guint arg0);
171
+
172
+
173
+ void
174
+ everything_oneparam_glong (glong arg0);
175
+
176
+
177
+ void
178
+ everything_oneparam_gulong (gulong arg0);
179
+
180
+
181
+ void
182
+ everything_oneparam_gsize (gsize arg0);
183
+
184
+
185
+ void
186
+ everything_oneparam_gssize (gssize arg0);
187
+
188
+
189
+ void
190
+ everything_oneparam_gintptr (gintptr arg0);
191
+
192
+
193
+ void
194
+ everything_oneparam_guintptr (guintptr arg0);
195
+
196
+
197
+ void
198
+ everything_oneparam_gfloat (gfloat arg0);
199
+
200
+
201
+ void
202
+ everything_oneparam_gdouble (gdouble arg0);
203
+
204
+
205
+ void
206
+ everything_oneparam_gunichar (gunichar arg0);
207
+
208
+
209
+ void
210
+ everything_oneparam_GType (GType arg0);
211
+
212
+
213
+ void
214
+ everything_oneparam_utf8 (const gchar* arg0);
215
+
216
+
217
+ void
218
+ everything_oneparam_filename (const gchar* arg0);
219
+
220
+
221
+ void
222
+ everything_one_outparam_gboolean (gboolean* arg0);
223
+
224
+
225
+ void
226
+ everything_one_outparam_gint8 (gint8* arg0);
227
+
228
+
229
+ void
230
+ everything_one_outparam_guint8 (guint8* arg0);
231
+
232
+
233
+ void
234
+ everything_one_outparam_gint16 (gint16* arg0);
235
+
236
+
237
+ void
238
+ everything_one_outparam_guint16 (guint16* arg0);
239
+
240
+
241
+ void
242
+ everything_one_outparam_gint32 (gint32* arg0);
243
+
244
+
245
+ void
246
+ everything_one_outparam_guint32 (guint32* arg0);
247
+
248
+
249
+ void
250
+ everything_one_outparam_gint64 (gint64* arg0);
251
+
252
+
253
+ void
254
+ everything_one_outparam_guint64 (guint64* arg0);
255
+
256
+
257
+ void
258
+ everything_one_outparam_gchar (gchar* arg0);
259
+
260
+
261
+ void
262
+ everything_one_outparam_gshort (gshort* arg0);
263
+
264
+
265
+ void
266
+ everything_one_outparam_gushort (gushort* arg0);
267
+
268
+
269
+ void
270
+ everything_one_outparam_gint (gint* arg0);
271
+
272
+
273
+ void
274
+ everything_one_outparam_guint (guint* arg0);
275
+
276
+
277
+ void
278
+ everything_one_outparam_glong (glong* arg0);
279
+
280
+
281
+ void
282
+ everything_one_outparam_gulong (gulong* arg0);
283
+
284
+
285
+ void
286
+ everything_one_outparam_gsize (gsize* arg0);
287
+
288
+
289
+ void
290
+ everything_one_outparam_gssize (gssize* arg0);
291
+
292
+
293
+ void
294
+ everything_one_outparam_gintptr (gintptr* arg0);
295
+
296
+
297
+ void
298
+ everything_one_outparam_guintptr (guintptr* arg0);
299
+
300
+
301
+ void
302
+ everything_one_outparam_gfloat (gfloat* arg0);
303
+
304
+
305
+ void
306
+ everything_one_outparam_gdouble (gdouble* arg0);
307
+
308
+
309
+ void
310
+ everything_one_outparam_gunichar (gunichar* arg0);
311
+
312
+
313
+ void
314
+ everything_one_outparam_GType (GType* arg0);
315
+
316
+
317
+ void
318
+ everything_one_outparam_utf8 (const gchar** arg0);
319
+
320
+
321
+ void
322
+ everything_one_outparam_filename (const gchar** arg0);
323
+
324
+
325
+ gboolean
326
+ everything_passthrough_one_gboolean (gboolean arg0);
327
+
328
+
329
+ gint8
330
+ everything_passthrough_one_gint8 (gint8 arg0);
331
+
332
+
333
+ guint8
334
+ everything_passthrough_one_guint8 (guint8 arg0);
335
+
336
+
337
+ gint16
338
+ everything_passthrough_one_gint16 (gint16 arg0);
339
+
340
+
341
+ guint16
342
+ everything_passthrough_one_guint16 (guint16 arg0);
343
+
344
+
345
+ gint32
346
+ everything_passthrough_one_gint32 (gint32 arg0);
347
+
348
+
349
+ guint32
350
+ everything_passthrough_one_guint32 (guint32 arg0);
351
+
352
+
353
+ gint64
354
+ everything_passthrough_one_gint64 (gint64 arg0);
355
+
356
+
357
+ guint64
358
+ everything_passthrough_one_guint64 (guint64 arg0);
359
+
360
+
361
+ gchar
362
+ everything_passthrough_one_gchar (gchar arg0);
363
+
364
+
365
+ gshort
366
+ everything_passthrough_one_gshort (gshort arg0);
367
+
368
+
369
+ gushort
370
+ everything_passthrough_one_gushort (gushort arg0);
371
+
372
+
373
+ gint
374
+ everything_passthrough_one_gint (gint arg0);
375
+
376
+
377
+ guint
378
+ everything_passthrough_one_guint (guint arg0);
379
+
380
+
381
+ glong
382
+ everything_passthrough_one_glong (glong arg0);
383
+
384
+
385
+ gulong
386
+ everything_passthrough_one_gulong (gulong arg0);
387
+
388
+
389
+ gsize
390
+ everything_passthrough_one_gsize (gsize arg0);
391
+
392
+
393
+ gssize
394
+ everything_passthrough_one_gssize (gssize arg0);
395
+
396
+
397
+ gintptr
398
+ everything_passthrough_one_gintptr (gintptr arg0);
399
+
400
+
401
+ guintptr
402
+ everything_passthrough_one_guintptr (guintptr arg0);
403
+
404
+
405
+ gfloat
406
+ everything_passthrough_one_gfloat (gfloat arg0);
407
+
408
+
409
+ gdouble
410
+ everything_passthrough_one_gdouble (gdouble arg0);
411
+
412
+
413
+ gunichar
414
+ everything_passthrough_one_gunichar (gunichar arg0);
415
+
416
+
417
+ GType
418
+ everything_passthrough_one_GType (GType arg0);
419
+
420
+
421
+ const gchar*
422
+ everything_passthrough_one_utf8 (const gchar* arg0);
423
+
424
+
425
+ const gchar*
426
+ everything_passthrough_one_filename (const gchar* arg0);
427
+
428
+ #endif
@@ -0,0 +1,790 @@
1
+ #include "foo.h"
2
+
3
+ /* A hidden type not exposed publicly, similar to GUPNP's XML wrapper
4
+ object */
5
+ typedef struct _RegressFooHidden RegressFooHidden;
6
+
7
+ int regress_foo_init_argv (int argc, char **argv);
8
+ int regress_foo_init_argv_address (int *argc, char ***argv);
9
+ void regress_foo_private_function (RegressFooObject *regress_foo);
10
+ void regress_foo_test_unsigned (unsigned int uint);
11
+ void regress_foo_interface_do_regress_foo (RegressFooInterface *self, int x);
12
+ void regress_foo_do_regress_foo (RegressFooInterface *self, int x);
13
+ int regress_foo_enum_method (RegressFooEnumType regress_foo_enum);
14
+ RegressFooHidden * regress_foo_hidden_copy (const RegressFooHidden *boxed);
15
+ void regress_foo_hidden_free (RegressFooHidden *boxed);
16
+ GType regress_foo_hidden_get_type (void);
17
+ RegressFooBoxed *regress_foo_boxed_copy (const RegressFooBoxed *boxed);
18
+ void regress_foo_boxed_free (RegressFooBoxed *boxed);
19
+ void regress_foo_dbus_data_free (RegressFooDBusData *boxed);
20
+ RegressFooDBusData *regress_foo_dbus_data_copy (const RegressFooDBusData *boxed);
21
+
22
+ typedef struct
23
+ {
24
+ int i;
25
+ } PrivateStruct;
26
+
27
+ void regress_foo_private_function (RegressFooObject *regress_foo)
28
+ {
29
+
30
+ }
31
+
32
+ GType
33
+ regress_foo_interface_get_type (void)
34
+ {
35
+ static GType object_type = 0;
36
+
37
+ if (!object_type)
38
+ {
39
+ object_type = g_type_register_static_simple (G_TYPE_INTERFACE,
40
+ "RegressFooInterface",
41
+ sizeof (RegressFooInterfaceIface),
42
+ NULL, 0, NULL, 0);
43
+
44
+ g_type_interface_add_prerequisite (object_type, G_TYPE_OBJECT);
45
+ }
46
+
47
+ return object_type;
48
+ }
49
+
50
+ void regress_foo_interface_do_regress_foo (RegressFooInterface *self, int x)
51
+ {
52
+ REGRESS_FOO_INTERFACE_GET_INTERFACE(self)->do_regress_foo (self, x);
53
+ }
54
+
55
+ void regress_foo_interface_static_method (int x)
56
+ {
57
+ }
58
+
59
+ enum {
60
+ PROP_0,
61
+ PROP_STRING,
62
+ PROP_HIDDEN
63
+ };
64
+
65
+ enum {
66
+ SIGNAL,
67
+ LAST_SIGNAL
68
+ };
69
+
70
+ static guint regress_foo_object_signals[LAST_SIGNAL] = { 0 };
71
+
72
+ static void
73
+ regress_foo_regress_foo_interface_init (gpointer g_iface,
74
+ gpointer iface_data)
75
+ {
76
+ RegressFooInterfaceIface *iface = (RegressFooInterfaceIface *)g_iface;
77
+ iface->do_regress_foo = regress_foo_do_regress_foo;
78
+ }
79
+
80
+ enum {
81
+ SUBIFACE_DESTROY_EVENT,
82
+ SUBIFACE_LAST_SIGNAL
83
+ };
84
+
85
+ static void
86
+ regress_foo_sub_interface_class_init (gpointer g_class, gpointer class_data);
87
+
88
+ static guint regress_foo_subiface_signals[SUBIFACE_LAST_SIGNAL] = { 0 };
89
+
90
+ GType
91
+ regress_foo_sub_interface_get_type (void)
92
+ {
93
+ static GType object_type = 0;
94
+
95
+ if (!object_type)
96
+ {
97
+ object_type = g_type_register_static_simple (G_TYPE_INTERFACE,
98
+ "RegressFooSubInterface",
99
+ sizeof (RegressFooSubInterfaceIface),
100
+ regress_foo_sub_interface_class_init, 0, NULL, 0);
101
+
102
+ g_type_interface_add_prerequisite (object_type, REGRESS_FOO_TYPE_INTERFACE);
103
+ }
104
+
105
+ return object_type;
106
+ }
107
+
108
+ static void
109
+ regress_foo_sub_interface_class_init (gpointer g_class, gpointer class_data)
110
+ {
111
+ regress_foo_subiface_signals[SUBIFACE_DESTROY_EVENT] =
112
+ g_signal_new ("destroy-event", REGRESS_FOO_TYPE_SUBINTERFACE,
113
+ G_SIGNAL_RUN_LAST,
114
+ G_STRUCT_OFFSET (RegressFooSubInterfaceIface, destroy_event),
115
+ NULL, NULL, NULL,
116
+ G_TYPE_NONE,
117
+ 0,
118
+ G_TYPE_NONE);
119
+ }
120
+
121
+ void
122
+ regress_foo_sub_interface_do_bar (RegressFooSubInterface *self)
123
+ {
124
+ REGRESS_FOO_SUBINTERFACE_GET_INTERFACE(self)->do_bar (self);
125
+ }
126
+
127
+ /**
128
+ * regress_foo_sub_interface_do_baz:
129
+ * @self:
130
+ * @callback: (scope call):
131
+ * @user_data:
132
+ */
133
+ void
134
+ regress_foo_sub_interface_do_baz (RegressFooSubInterface *self, GCallback callback, gpointer user_data)
135
+ {
136
+ REGRESS_FOO_SUBINTERFACE_GET_INTERFACE(self)->do_baz (self, callback, user_data);
137
+ }
138
+
139
+ G_DEFINE_TYPE_EXTENDED (RegressFooObject, regress_foo_object, G_TYPE_OBJECT,
140
+ 0, G_IMPLEMENT_INTERFACE (REGRESS_FOO_TYPE_INTERFACE,
141
+ regress_foo_regress_foo_interface_init));
142
+
143
+ static void
144
+ regress_foo_object_set_property (GObject *object,
145
+ guint prop_id,
146
+ const GValue *value,
147
+ GParamSpec *pspec)
148
+ {
149
+ switch (prop_id)
150
+ {
151
+ case PROP_STRING:
152
+ break;
153
+ case PROP_HIDDEN:
154
+ break;
155
+ default:
156
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
157
+ break;
158
+ }
159
+ }
160
+
161
+ static void
162
+ regress_foo_object_get_property (GObject *object,
163
+ guint prop_id,
164
+ GValue *value,
165
+ GParamSpec *pspec)
166
+ {
167
+ switch (prop_id)
168
+ {
169
+ case PROP_STRING:
170
+ break;
171
+ case PROP_HIDDEN:
172
+ break;
173
+ default:
174
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
175
+ break;
176
+ }
177
+ }
178
+
179
+ static void
180
+ regress_foo_object_class_init (RegressFooObjectClass *klass)
181
+ {
182
+ GObjectClass *gobject_class;
183
+
184
+ gobject_class = G_OBJECT_CLASS (klass);
185
+
186
+ gobject_class->set_property = regress_foo_object_set_property;
187
+ gobject_class->get_property = regress_foo_object_get_property;
188
+
189
+ g_object_class_install_property (gobject_class,
190
+ PROP_STRING,
191
+ g_param_spec_string ("string",
192
+ "String nick",
193
+ "The String Property Blurb",
194
+ NULL,
195
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
196
+ g_object_class_install_property (gobject_class,
197
+ PROP_HIDDEN,
198
+ g_param_spec_boxed ("hidden",
199
+ "hidden property",
200
+ "should not be exposed",
201
+ regress_foo_hidden_get_type (),
202
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
203
+ regress_foo_object_signals[SIGNAL] =
204
+ g_signal_new ("signal",
205
+ G_OBJECT_CLASS_TYPE (gobject_class),
206
+ G_SIGNAL_RUN_LAST,
207
+ 0,
208
+ NULL, NULL,
209
+ (GSignalCMarshaller)g_cclosure_marshal_STRING__OBJECT_POINTER,
210
+ G_TYPE_STRING, 2, G_TYPE_OBJECT, G_TYPE_POINTER);
211
+
212
+ }
213
+
214
+ static void
215
+ regress_foo_object_init (RegressFooObject *object)
216
+ {
217
+
218
+ }
219
+
220
+ RegressFooObject *
221
+ regress_foo_object_new (void)
222
+ {
223
+ return g_object_new (REGRESS_FOO_TYPE_OBJECT, NULL);
224
+ }
225
+
226
+ GObject *
227
+ regress_foo_object_new_as_super (void)
228
+ {
229
+ return g_object_new (REGRESS_FOO_TYPE_OBJECT, NULL);
230
+ }
231
+
232
+ /**
233
+ * regress_foo_object_external_type:
234
+ * @object: a #RegressFooObject
235
+ *
236
+ * Returns: (transfer none): %NULL always
237
+ */
238
+ UtilityObject*
239
+ regress_foo_object_external_type (RegressFooObject *object)
240
+ {
241
+ return NULL;
242
+ }
243
+
244
+ void
245
+ regress_foo_object_take_all (RegressFooObject *object, int x, ...)
246
+ {
247
+
248
+ }
249
+
250
+ void
251
+ regress_foo_do_regress_foo (RegressFooInterface *self, int x)
252
+ {
253
+
254
+
255
+ }
256
+
257
+ void
258
+ regress_foo_object_is_it_time_yet (RegressFooObject *object, time_t time)
259
+ {
260
+ }
261
+
262
+ /**
263
+ * regress_foo_object_new_cookie: (skip)
264
+ * @object:
265
+ * @target:
266
+ *
267
+ * Not sure why this test is here...
268
+ */
269
+ RegressFooObjectCookie
270
+ regress_foo_object_new_cookie (RegressFooObject *object, const char *target)
271
+ {
272
+ return NULL;
273
+ }
274
+
275
+ const char *
276
+ regress_foo_object_get_name (RegressFooObject *object)
277
+ {
278
+ return "regress_foo";
279
+ }
280
+
281
+ char *
282
+ regress_foo_object_dup_name (RegressFooObject *object)
283
+ {
284
+ return g_strdup ("regress_foo");
285
+ }
286
+
287
+ /**
288
+ * regress_foo_object_read:
289
+ * @object: obj
290
+ * @offset: offset
291
+ * @length: length
292
+ *
293
+ * Read some stuff.
294
+ *
295
+ * Virtual: read_fn
296
+ */
297
+ void
298
+ regress_foo_object_read (RegressFooObject *object, int offset, int length)
299
+ {
300
+
301
+ }
302
+
303
+ /**
304
+ * regress_foo_object_skipped_method: (skip)
305
+ * @object: obj
306
+ *
307
+ * This is only useful from C.
308
+ */
309
+ void
310
+ regress_foo_object_skipped_method (RegressFooObject *object)
311
+ {
312
+ }
313
+
314
+ G_DEFINE_ABSTRACT_TYPE (RegressFooSubobject, regress_foo_subobject, REGRESS_FOO_TYPE_OBJECT);
315
+
316
+ static void
317
+ regress_foo_subobject_class_init (RegressFooSubobjectClass *klass)
318
+ {
319
+
320
+ }
321
+
322
+ static void
323
+ regress_foo_subobject_init (RegressFooSubobject *object)
324
+ {
325
+
326
+ }
327
+
328
+ /**
329
+ * regress_foo_object_get_default:
330
+ *
331
+ * This function is intended to match clutter_stage_get_default which
332
+ * uses a C sugar return type.
333
+ *
334
+ * Return value: (type RegressFooSubobject) (transfer none): The global #RegressFooSubobject
335
+ */
336
+ RegressFooObject *
337
+ regress_foo_object_get_default ()
338
+ {
339
+ return NULL;
340
+ }
341
+
342
+ int regress_foo_init (void)
343
+ {
344
+ return REGRESS_FOO_SUCCESS_INT;
345
+ }
346
+
347
+ int regress_foo_init_argv (int argc, char **argv)
348
+ {
349
+ return REGRESS_FOO_SUCCESS_INT;
350
+ }
351
+
352
+ int regress_foo_init_argv_address (int *argc, char ***argv)
353
+ {
354
+ return REGRESS_FOO_SUCCESS_INT;
355
+ }
356
+
357
+ GType
358
+ regress_foo_enum_type_get_type (void)
359
+ {
360
+ static GType etype = 0;
361
+ if (G_UNLIKELY(etype == 0)) {
362
+ static const GEnumValue values[] = {
363
+ { REGRESS_FOO_ENUM_ALPHA, "REGRESS_FOO_ENUM_ALPHA", "alpha" },
364
+ { REGRESS_FOO_ENUM_BETA, "REGRESS_FOO_ENUM_BETA", "beta" },
365
+ { REGRESS_FOO_ENUM_DELTA, "REGRESS_FOO_ENUM_DELTA", "delta" },
366
+ { 0, NULL, NULL }
367
+ };
368
+ etype = g_enum_register_static (g_intern_static_string ("RegressFooEnumType"), values);
369
+ }
370
+ return etype;
371
+ }
372
+
373
+ int regress_foo_enum_method (RegressFooEnumType regress_foo_enum)
374
+ {
375
+ return 0;
376
+ }
377
+
378
+
379
+ GType
380
+ regress_foo_flags_type_get_type (void)
381
+ {
382
+ static GType etype = 0;
383
+ if (G_UNLIKELY(etype == 0)) {
384
+ static const GFlagsValue values[] = {
385
+ { REGRESS_FOO_FLAGS_FIRST, "REGRESS_FOO_FLAGS_FIRST", "first" },
386
+ { REGRESS_FOO_FLAGS_SECOND, "REGRESS_FOO_FLAGS_SECOND", "second" },
387
+ { REGRESS_FOO_FLAGS_THIRD, "REGRESS_FOO_FLAGS_THIRD", "third" },
388
+ { 0, NULL, NULL }
389
+ };
390
+ etype = g_flags_register_static (g_intern_static_string ("RegressFooFlagsType"), values);
391
+ }
392
+ return etype;
393
+ }
394
+
395
+ struct _RegressFooBoxed
396
+ {
397
+ int private;
398
+ };
399
+
400
+
401
+ RegressFooBoxed *
402
+ regress_foo_boxed_copy (const RegressFooBoxed *boxed)
403
+ {
404
+ return (RegressFooBoxed *)g_memdup (boxed, sizeof (RegressFooBoxed));
405
+ }
406
+
407
+ void
408
+ regress_foo_boxed_free (RegressFooBoxed *boxed)
409
+ {
410
+ g_slice_free (RegressFooBoxed, boxed);
411
+ }
412
+
413
+
414
+ GType
415
+ regress_foo_boxed_get_type (void)
416
+ {
417
+ static GType our_type = 0;
418
+
419
+ if (our_type == 0)
420
+ our_type = g_boxed_type_register_static ("RegressFooBoxed",
421
+ (GBoxedCopyFunc) regress_foo_boxed_copy,
422
+ (GBoxedFreeFunc) regress_foo_boxed_free);
423
+ return our_type;
424
+ }
425
+
426
+ RegressFooBoxed *
427
+ regress_foo_boxed_new (void)
428
+ {
429
+ return g_slice_new0 (RegressFooBoxed);
430
+ }
431
+
432
+ void
433
+ regress_foo_boxed_method (RegressFooBoxed *boxed)
434
+ {
435
+
436
+ }
437
+
438
+ /* RegressFooDbus */
439
+ struct _RegressFooDBusData
440
+ {
441
+ double private;
442
+ };
443
+
444
+ RegressFooDBusData *
445
+ regress_foo_dbus_data_copy (const RegressFooDBusData *boxed)
446
+ {
447
+ return (RegressFooDBusData *)g_memdup (boxed, sizeof (RegressFooDBusData));
448
+ }
449
+
450
+ void
451
+ regress_foo_dbus_data_free (RegressFooDBusData *boxed)
452
+ {
453
+ g_slice_free (RegressFooDBusData, boxed);
454
+ }
455
+
456
+
457
+ GType
458
+ regress_foo_dbus_data_get_type (void)
459
+ {
460
+ static GType our_type = 0;
461
+
462
+ if (our_type == 0)
463
+ our_type = g_boxed_type_register_static ("RegressFooDBusData",
464
+ (GBoxedCopyFunc) regress_foo_dbus_data_copy,
465
+ (GBoxedFreeFunc) regress_foo_dbus_data_free);
466
+ return our_type;
467
+ }
468
+
469
+ GType
470
+ regress_foo_brect_get_type (void)
471
+ {
472
+ static GType our_type = 0;
473
+
474
+ if (our_type == 0)
475
+ our_type = g_boxed_type_register_static ("RegressFooBRect",
476
+ (GBoxedCopyFunc) g_memdup, /* Won't work */
477
+ (GBoxedFreeFunc) g_free);
478
+ return our_type;
479
+ }
480
+
481
+ GType
482
+ regress_foo_bunion_get_type (void)
483
+ {
484
+ static GType our_type = 0;
485
+
486
+ if (our_type == 0)
487
+ our_type = g_boxed_type_register_static ("RegressFooBUnion",
488
+ (GBoxedCopyFunc) g_memdup, /* Won't work */
489
+ (GBoxedFreeFunc) g_free);
490
+ return our_type;
491
+ }
492
+
493
+ void regress_foo_test_unsigned (unsigned int uint)
494
+ {
495
+ }
496
+
497
+ /**
498
+ * regress_foo_test_string_array:
499
+ * @array: (array zero-terminated=1):
500
+ */
501
+ void
502
+ regress_foo_test_string_array (char **array)
503
+ {
504
+ }
505
+
506
+ /**
507
+ * regress_foo_test_string_array_with_g:
508
+ * @array: (array zero-terminated=1):
509
+ */
510
+ void
511
+ regress_foo_test_string_array_with_g (gchar **array)
512
+ {
513
+ }
514
+
515
+ /**
516
+ * regress_foo_test_array:
517
+ *
518
+ * Returns: (element-type utf8) (transfer container):
519
+ */
520
+ GArray *
521
+ regress_foo_test_array (void)
522
+ {
523
+ return NULL;
524
+ }
525
+
526
+ /**
527
+ * regress_foo_rectangle_new: (skip)
528
+ *
529
+ * This is a C convenience constructor; we have to (skip)
530
+ * it because it's not a boxed type.
531
+ */
532
+ RegressFooRectangle *
533
+ regress_foo_rectangle_new (int x, int y, int width, int height)
534
+ {
535
+ RegressFooRectangle *r = g_slice_new (RegressFooRectangle);
536
+ r->x = x;
537
+ r->y = y;
538
+ r->width = width;
539
+ r->height = height;
540
+ return r;
541
+ }
542
+
543
+ /**
544
+ * regress_foo_rectangle_add:
545
+ * @r1: (inout): add to this rect
546
+ * @r2: source rectangle
547
+ */
548
+ void
549
+ regress_foo_rectangle_add(RegressFooRectangle *r1, const RegressFooRectangle *r2)
550
+ {
551
+
552
+ }
553
+
554
+ /* RegressFooHidden */
555
+
556
+ struct _RegressFooHidden
557
+ {
558
+ char *frob;
559
+ };
560
+
561
+ RegressFooHidden *
562
+ regress_foo_hidden_copy (const RegressFooHidden *boxed)
563
+ {
564
+ return (RegressFooHidden *)g_memdup (boxed, sizeof (RegressFooHidden));
565
+ }
566
+
567
+ void
568
+ regress_foo_hidden_free (RegressFooHidden *boxed)
569
+ {
570
+ g_slice_free (RegressFooHidden, boxed);
571
+ }
572
+
573
+ GType
574
+ regress_foo_hidden_get_type (void)
575
+ {
576
+ static GType our_type = 0;
577
+
578
+ if (our_type == 0)
579
+ our_type = g_boxed_type_register_static ("RegressFooHidden",
580
+ (GBoxedCopyFunc) regress_foo_hidden_copy,
581
+ (GBoxedFreeFunc) regress_foo_hidden_free);
582
+ return our_type;
583
+ }
584
+
585
+ GType
586
+ regress_foo_error_get_type (void)
587
+ {
588
+ static GType etype = 0;
589
+ if (G_UNLIKELY(etype == 0)) {
590
+ static const GEnumValue values[] = {
591
+ { REGRESS_FOO_ERROR_GOOD, "REGRESS_FOO_ERROR_GOOD", "good" },
592
+ { REGRESS_FOO_ERROR_BAD, "REGRESS_FOO_ERROR_BAD", "bad" },
593
+ { REGRESS_FOO_ERROR_UGLY, "REGRESS_FOO_ERROR_UGLY", "ugly" },
594
+ { 0, NULL, NULL }
595
+ };
596
+ etype = g_enum_register_static (g_intern_static_string ("RegressFooError"), values);
597
+ }
598
+ return etype;
599
+ }
600
+
601
+ GQuark
602
+ regress_foo_error_quark (void)
603
+ {
604
+ return g_quark_from_static_string ("regress_foo-error-quark");
605
+ }
606
+
607
+ void
608
+ regress_foo_some_variant (guint x, va_list args)
609
+ {
610
+ }
611
+
612
+ GType regress_foo_tile_handler_get_type(void);
613
+
614
+ /* This setup of a totally hidden parent class matches
615
+ * http://bugzilla.gnome.org/show_bug.cgi?id=561360
616
+ */
617
+ #define REGRESS_FOO_TYPE_TILE_HANDLER (regress_foo_tile_handler_get_type ())
618
+ #define REGRESS_FOO_TILE_HANDLER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), REGRESS_FOO_TYPE_TILE_HANDLER, RegressFooTileHandler))
619
+ #define REGRESS_FOO_IS_TILE_HANDLER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), REGRESS_FOO_TYPE_TILE_HANDLER))
620
+
621
+ struct _RegressFooTileHandler
622
+ {
623
+ RegressFooObject parent_instance;
624
+ };
625
+
626
+
627
+ struct _RegressFooTileHandlerClass
628
+ {
629
+ RegressFooObjectClass parent_class;
630
+ };
631
+
632
+ typedef struct _RegressFooTileHandler RegressFooTileHandler;
633
+ typedef struct _RegressFooTileHandlerClass RegressFooTileHandlerClass;
634
+
635
+ G_DEFINE_TYPE(RegressFooTileHandler, regress_foo_tile_handler, REGRESS_FOO_TYPE_OBJECT);
636
+
637
+ static void
638
+ regress_foo_tile_handler_class_init (RegressFooTileHandlerClass *klass)
639
+ {
640
+
641
+ }
642
+
643
+ static void
644
+ regress_foo_tile_handler_init (RegressFooTileHandler *object)
645
+ {
646
+
647
+ }
648
+
649
+ struct _RegressFooBuffer
650
+ {
651
+ RegressFooTileHandler parent_instance;
652
+ };
653
+
654
+ struct _RegressFooBufferClass
655
+ {
656
+ RegressFooTileHandlerClass parent_class;
657
+ };
658
+
659
+ G_DEFINE_TYPE(RegressFooBuffer, regress_foo_buffer, REGRESS_FOO_TYPE_TILE_HANDLER);
660
+
661
+ static void
662
+ regress_foo_buffer_class_init (RegressFooBufferClass *klass)
663
+ {
664
+
665
+ }
666
+
667
+ static void
668
+ regress_foo_buffer_init (RegressFooBuffer *object)
669
+ {
670
+
671
+ }
672
+
673
+ void
674
+ regress_foo_buffer_some_method (RegressFooBuffer *buffer)
675
+ {
676
+ }
677
+
678
+ struct _RegressFooOtherObject
679
+ {
680
+ GObject parent_instance;
681
+ };
682
+
683
+ struct _RegressFooOtherObjectClass
684
+ {
685
+ GObjectClass parent_class;
686
+ };
687
+
688
+ G_DEFINE_TYPE(RegressFooOtherObject, regress_foo_other_object, G_TYPE_OBJECT);
689
+
690
+ static void
691
+ regress_foo_other_object_class_init (RegressFooOtherObjectClass *klass)
692
+ {
693
+
694
+ }
695
+
696
+ static void
697
+ regress_foo_other_object_init (RegressFooOtherObject *object)
698
+ {
699
+
700
+ }
701
+
702
+
703
+ #define REGRESS_FOO_DEFINE_SHOULD_NOT_BE_EXPOSED "should not be exposed"
704
+
705
+ /**
706
+ * regress_foo_skip_me: (skip)
707
+ * @fs: a #RegressFooSkippable
708
+ *
709
+ * Does something that's only interesting from C and should not be
710
+ * exposed to language bindings.
711
+ */
712
+ void
713
+ regress_foo_skip_me (RegressFooSkippable fs)
714
+ {
715
+ }
716
+
717
+ /**
718
+ * RegressFooForeignStruct: (foreign)
719
+ *
720
+ */
721
+
722
+ RegressFooForeignStruct*
723
+ regress_foo_foreign_struct_new (void)
724
+ {
725
+ return g_slice_new0 (RegressFooForeignStruct);
726
+ }
727
+
728
+ RegressFooForeignStruct*
729
+ regress_foo_foreign_struct_copy (RegressFooForeignStruct *original)
730
+ {
731
+ RegressFooForeignStruct *copy;
732
+ copy = regress_foo_foreign_struct_new ();
733
+ copy->regress_foo = original->regress_foo;
734
+ return copy;
735
+ }
736
+
737
+ /**
738
+ * regress_foo_test_varargs_callback: (skip)
739
+ *
740
+ */
741
+ void
742
+ regress_foo_test_varargs_callback (gint i, RegressFooVarargsCallback callback)
743
+ {
744
+ }
745
+
746
+ /**
747
+ * regress_foo_test_varargs_callback2: (skip)
748
+ *
749
+ */
750
+ void
751
+ regress_foo_test_varargs_callback2 (RegressFooVarargsCallback callback)
752
+ {
753
+ }
754
+
755
+ /**
756
+ * regress_foo_test_varargs_callback3: (skip)
757
+ *
758
+ */
759
+ void
760
+ regress_foo_test_varargs_callback3 (RegressFooVarargsCallback callback,
761
+ RegressFooVarargsCallback callback2)
762
+ {
763
+ }
764
+
765
+ /**
766
+ * regress_foo_object_append_new_stack_layer:
767
+ *
768
+ * This shouldn't be scanned as a constructor.
769
+ *
770
+ * Returns: (transfer none):
771
+ */
772
+ RegressFooOtherObject *
773
+ regress_foo_object_append_new_stack_layer (RegressFooObject *obj, int x)
774
+ {
775
+ return NULL;
776
+ }
777
+
778
+ /**
779
+ * regress_foo_not_a_constructor_new:
780
+ *
781
+ * This should be scanned as a top-level function, and shouldn't cause
782
+ * a "Can't find matching type for constructor" warning.
783
+ *
784
+ * Returns: (transfer none):
785
+ */
786
+ RegressFooObject *
787
+ regress_foo_not_a_constructor_new (void)
788
+ {
789
+ return NULL;
790
+ }