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,104 @@
1
+ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2
+ * GObject introspection: Helper functions for ffi integration
3
+ *
4
+ * Copyright (C) 2008 Red Hat, Inc
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the
18
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
+ * Boston, MA 02111-1307, USA.
20
+ */
21
+
22
+ #ifndef __GIRFFI_H__
23
+ #define __GIRFFI_H__
24
+
25
+ #include <ffi.h>
26
+ #include "girepository.h"
27
+
28
+ G_BEGIN_DECLS
29
+
30
+ /**
31
+ * GIFFIClosureCallback:
32
+ * @Param1: TODO
33
+ * @Param2: TODO
34
+ * @Param3: TODO
35
+ * @Param4: TODO
36
+ *
37
+ * TODO
38
+ */
39
+ typedef void (*GIFFIClosureCallback) (ffi_cif *,
40
+ void *,
41
+ void **,
42
+ void *);
43
+
44
+ /**
45
+ * GIFunctionInvoker:
46
+ * @cif: the cif
47
+ * @native_address: the native address
48
+ *
49
+ * TODO
50
+ */
51
+ typedef struct _GIFunctionInvoker GIFunctionInvoker;
52
+
53
+ struct _GIFunctionInvoker {
54
+ ffi_cif cif;
55
+ gpointer native_address;
56
+ /* <private> */
57
+ gpointer padding[3];
58
+ };
59
+
60
+ /**
61
+ * GIFFIReturnValue:
62
+ *
63
+ * TODO
64
+ */
65
+ typedef GIArgument GIFFIReturnValue;
66
+
67
+ GI_AVAILABLE_IN_ALL
68
+ ffi_type * gi_type_tag_get_ffi_type (GITypeTag type_tag, gboolean is_pointer);
69
+
70
+ GI_AVAILABLE_IN_ALL
71
+ ffi_type * g_type_info_get_ffi_type (GITypeInfo *info);
72
+
73
+ GI_AVAILABLE_IN_1_32
74
+ void gi_type_info_extract_ffi_return_value (GITypeInfo *return_info,
75
+ GIFFIReturnValue *ffi_value,
76
+ GIArgument *arg);
77
+
78
+ GI_AVAILABLE_IN_ALL
79
+ gboolean g_function_info_prep_invoker (GIFunctionInfo *info,
80
+ GIFunctionInvoker *invoker,
81
+ GError **error);
82
+
83
+ GI_AVAILABLE_IN_1_32
84
+ gboolean g_function_invoker_new_for_address (gpointer addr,
85
+ GICallableInfo *info,
86
+ GIFunctionInvoker *invoker,
87
+ GError **error);
88
+
89
+ GI_AVAILABLE_IN_ALL
90
+ void g_function_invoker_destroy (GIFunctionInvoker *invoker);
91
+
92
+
93
+ GI_AVAILABLE_IN_ALL
94
+ ffi_closure * g_callable_info_prepare_closure (GICallableInfo *callable_info,
95
+ ffi_cif *cif,
96
+ GIFFIClosureCallback callback,
97
+ gpointer user_data);
98
+ GI_AVAILABLE_IN_ALL
99
+ void g_callable_info_free_closure (GICallableInfo *callable_info,
100
+ ffi_closure *closure);
101
+
102
+ G_END_DECLS
103
+
104
+ #endif /* __GIRFFI_H__ */
@@ -0,0 +1,57 @@
1
+ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2
+ * GObject introspection: Signal
3
+ *
4
+ * Copyright (C) 2005 Matthias Clasen
5
+ * Copyright (C) 2008,2009 Red Hat, Inc.
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Lesser General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
+ * Boston, MA 02111-1307, USA.
21
+ */
22
+
23
+ #ifndef __GISIGNALINFO_H__
24
+ #define __GISIGNALINFO_H__
25
+
26
+ #if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION)
27
+ #error "Only <girepository.h> can be included directly."
28
+ #endif
29
+
30
+ #include <glib-object.h>
31
+ #include <gitypes.h>
32
+
33
+ G_BEGIN_DECLS
34
+
35
+ /**
36
+ * GI_IS_SIGNAL_INFO
37
+ * @info: an info structure
38
+ *
39
+ * Checks if @info is a #GISignalInfo.
40
+ */
41
+ #define GI_IS_SIGNAL_INFO(info) \
42
+ (g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_SIGNAL)
43
+
44
+
45
+ GI_AVAILABLE_IN_ALL
46
+ GSignalFlags g_signal_info_get_flags (GISignalInfo *info);
47
+
48
+ GI_AVAILABLE_IN_ALL
49
+ GIVFuncInfo * g_signal_info_get_class_closure (GISignalInfo *info);
50
+
51
+ GI_AVAILABLE_IN_ALL
52
+ gboolean g_signal_info_true_stops_emit (GISignalInfo *info);
53
+
54
+ G_END_DECLS
55
+
56
+
57
+ #endif /* __GISIGNALINFO_H__ */
@@ -0,0 +1,77 @@
1
+ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2
+ * GObject introspection: Struct
3
+ *
4
+ * Copyright (C) 2005 Matthias Clasen
5
+ * Copyright (C) 2008,2009 Red Hat, Inc.
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Lesser General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
+ * Boston, MA 02111-1307, USA.
21
+ */
22
+
23
+ #ifndef __GISTRUCTINFO_H__
24
+ #define __GISTRUCTINFO_H__
25
+
26
+ #if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION)
27
+ #error "Only <girepository.h> can be included directly."
28
+ #endif
29
+
30
+ #include <gitypes.h>
31
+
32
+ G_BEGIN_DECLS
33
+
34
+ /**
35
+ * GI_IS_STRUCT_INFO
36
+ * @info: an info structure
37
+ *
38
+ * Checks if @info is a #GIStructInfo.
39
+ */
40
+ #define GI_IS_STRUCT_INFO(info) \
41
+ (g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_STRUCT)
42
+
43
+
44
+ GI_AVAILABLE_IN_ALL
45
+ gint g_struct_info_get_n_fields (GIStructInfo *info);
46
+
47
+ GI_AVAILABLE_IN_ALL
48
+ GIFieldInfo * g_struct_info_get_field (GIStructInfo *info,
49
+ gint n);
50
+
51
+ GI_AVAILABLE_IN_ALL
52
+ gint g_struct_info_get_n_methods (GIStructInfo *info);
53
+
54
+ GI_AVAILABLE_IN_ALL
55
+ GIFunctionInfo * g_struct_info_get_method (GIStructInfo *info,
56
+ gint n);
57
+
58
+ GI_AVAILABLE_IN_ALL
59
+ GIFunctionInfo * g_struct_info_find_method (GIStructInfo *info,
60
+ const gchar *name);
61
+
62
+ GI_AVAILABLE_IN_ALL
63
+ gsize g_struct_info_get_size (GIStructInfo *info);
64
+
65
+ GI_AVAILABLE_IN_ALL
66
+ gsize g_struct_info_get_alignment (GIStructInfo *info);
67
+
68
+ GI_AVAILABLE_IN_ALL
69
+ gboolean g_struct_info_is_gtype_struct (GIStructInfo *info);
70
+
71
+ GI_AVAILABLE_IN_ALL
72
+ gboolean g_struct_info_is_foreign (GIStructInfo *info);
73
+
74
+ G_END_DECLS
75
+
76
+
77
+ #endif /* __GISTRUCTINFO_H__ */
@@ -0,0 +1,87 @@
1
+ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2
+ * GObject introspection: Type
3
+ *
4
+ * Copyright (C) 2005 Matthias Clasen
5
+ * Copyright (C) 2008,2009 Red Hat, Inc.
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Lesser General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
+ * Boston, MA 02111-1307, USA.
21
+ */
22
+
23
+ #ifndef __GITYPEINFO_H__
24
+ #define __GITYPEINFO_H__
25
+
26
+ #if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION)
27
+ #error "Only <girepository.h> can be included directly."
28
+ #endif
29
+
30
+ #include <gitypes.h>
31
+
32
+ G_BEGIN_DECLS
33
+
34
+ /**
35
+ * GI_IS_TYPE_INFO
36
+ * @info: an info structure
37
+ *
38
+ * Checks if @info is a #GITypeInfo.
39
+ */
40
+ #define GI_IS_TYPE_INFO(info) \
41
+ (g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_TYPE)
42
+
43
+ /**
44
+ * G_TYPE_TAG_IS_BASIC
45
+ * @tag: a type tag
46
+ *
47
+ * Checks if @tag is a basic type.
48
+ */
49
+ #define G_TYPE_TAG_IS_BASIC(tag) (tag < GI_TYPE_TAG_ARRAY || tag == GI_TYPE_TAG_UNICHAR)
50
+
51
+ GI_AVAILABLE_IN_ALL
52
+ const gchar* g_type_tag_to_string (GITypeTag type);
53
+
54
+ GI_AVAILABLE_IN_ALL
55
+ const gchar* g_info_type_to_string (GIInfoType type);
56
+
57
+
58
+ GI_AVAILABLE_IN_ALL
59
+ gboolean g_type_info_is_pointer (GITypeInfo *info);
60
+
61
+ GI_AVAILABLE_IN_ALL
62
+ GITypeTag g_type_info_get_tag (GITypeInfo *info);
63
+
64
+ GI_AVAILABLE_IN_ALL
65
+ GITypeInfo * g_type_info_get_param_type (GITypeInfo *info,
66
+ gint n);
67
+
68
+ GI_AVAILABLE_IN_ALL
69
+ GIBaseInfo * g_type_info_get_interface (GITypeInfo *info);
70
+
71
+ GI_AVAILABLE_IN_ALL
72
+ gint g_type_info_get_array_length (GITypeInfo *info);
73
+
74
+ GI_AVAILABLE_IN_ALL
75
+ gint g_type_info_get_array_fixed_size(GITypeInfo *info);
76
+
77
+ GI_AVAILABLE_IN_ALL
78
+ gboolean g_type_info_is_zero_terminated (GITypeInfo *info);
79
+
80
+ GI_AVAILABLE_IN_ALL
81
+ GIArrayType g_type_info_get_array_type (GITypeInfo *info);
82
+
83
+ G_END_DECLS
84
+
85
+
86
+ #endif /* __GITYPEINFO_H__ */
87
+
@@ -0,0 +1,80 @@
1
+ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2
+ * GObject introspection: Public typelib API
3
+ *
4
+ * Copyright (C) 2005 Matthias Clasen
5
+ * Copyright (C) 2008,2009 Red Hat, Inc.
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Lesser General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
+ * Boston, MA 02111-1307, USA.
21
+ */
22
+
23
+ #ifndef __GITYPELIB_H__
24
+ #define __GITYPELIB_H__
25
+
26
+ #if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION)
27
+ #error "Only <girepository.h> can be included directly."
28
+ #endif
29
+
30
+ #include <glib.h>
31
+
32
+ #include <giversionmacros.h>
33
+
34
+ G_BEGIN_DECLS
35
+
36
+ /**
37
+ * SECTION:gitypelib
38
+ * @title: gitypelib
39
+ * @short_description: TODO
40
+ *
41
+ * TODO
42
+ */
43
+
44
+ /**
45
+ * GITypelib:
46
+ *
47
+ * TODO
48
+ */
49
+ typedef struct _GITypelib GITypelib;
50
+
51
+ GI_AVAILABLE_IN_ALL
52
+ GITypelib * g_typelib_new_from_memory (guint8 *memory,
53
+ gsize len,
54
+ GError **error);
55
+
56
+ GI_AVAILABLE_IN_ALL
57
+ GITypelib * g_typelib_new_from_const_memory (const guint8 *memory,
58
+ gsize len,
59
+ GError **error);
60
+
61
+ GI_AVAILABLE_IN_ALL
62
+ GITypelib * g_typelib_new_from_mapped_file (GMappedFile *mfile,
63
+ GError **error);
64
+
65
+ GI_AVAILABLE_IN_ALL
66
+ void g_typelib_free (GITypelib *typelib);
67
+
68
+ GI_AVAILABLE_IN_ALL
69
+ gboolean g_typelib_symbol (GITypelib *typelib,
70
+ const gchar *symbol_name,
71
+ gpointer *symbol);
72
+
73
+ GI_AVAILABLE_IN_ALL
74
+ const gchar * g_typelib_get_namespace (GITypelib *typelib);
75
+
76
+
77
+ G_END_DECLS
78
+
79
+ #endif /* __GITYPELIB_H__ */
80
+
@@ -0,0 +1,524 @@
1
+ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2
+ * GObject introspection: types
3
+ *
4
+ * Copyright (C) 2005 Matthias Clasen
5
+ * Copyright (C) 2008,2009 Red Hat, Inc.
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Lesser General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
+ * Boston, MA 02111-1307, USA.
21
+ */
22
+
23
+ #ifndef __GITYPES_H__
24
+ #define __GITYPES_H__
25
+
26
+ #if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION)
27
+ #error "Only <girepository.h> can be included directly."
28
+ #endif
29
+
30
+ #include <giversionmacros.h>
31
+
32
+ G_BEGIN_DECLS
33
+
34
+ #ifndef __GTK_DOC_IGNORE__
35
+ typedef struct _GIBaseInfoStub GIBaseInfo;
36
+ #endif
37
+
38
+ /**
39
+ * GICallableInfo:
40
+ *
41
+ * Represents a callable, either #GIFunctionInfo, #GICallbackInfo or
42
+ * #GIVFuncInfo.
43
+ */
44
+ typedef GIBaseInfo GICallableInfo;
45
+
46
+ /**
47
+ * GIFunctionInfo:
48
+ *
49
+ * Represents a function, eg arguments and return value.
50
+ */
51
+ typedef GIBaseInfo GIFunctionInfo;
52
+
53
+ /**
54
+ * SECTION:gicallbackinfo
55
+ * @title: GICallbackInfo
56
+ * @short_description: Struct representing a callback
57
+ *
58
+ * GICallbackInfo represents a callback.
59
+ *
60
+ * <refsect1 id="gi-gicallbackinfo.struct-hierarchy" role="struct_hierarchy">
61
+ * <title role="struct_hierarchy.title">Struct hierarchy</title>
62
+ * <synopsis>
63
+ * <link linkend="gi-GIBaseInfo">GIBaseInfo</link>
64
+ * +----<link linkend="gi-GICallableInfo">GICallableInfo</link>
65
+ * +----GIFunctionInfo
66
+ * +----<link linkend="gi-GISignalInfo">GISignalInfo</link>
67
+ * +----<link linkend="gi-GIVFuncInfo">GIVFuncInfo</link>
68
+ * </synopsis>
69
+ * </refsect1>
70
+ */
71
+
72
+ /**
73
+ * GICallbackInfo:
74
+ *
75
+ * Represents a callback, eg arguments and return value.
76
+ */
77
+ typedef GIBaseInfo GICallbackInfo;
78
+
79
+ /**
80
+ * GIRegisteredTypeInfo:
81
+ *
82
+ * Represent a registered type.
83
+ */
84
+ typedef GIBaseInfo GIRegisteredTypeInfo;
85
+
86
+ /**
87
+ * GIStructInfo:
88
+ *
89
+ * Represents a struct.
90
+ */
91
+ typedef GIBaseInfo GIStructInfo;
92
+
93
+ /**
94
+ * GIUnionInfo:
95
+ *
96
+ * Represents a union.
97
+ */
98
+ typedef GIBaseInfo GIUnionInfo;
99
+
100
+ /**
101
+ * GIEnumInfo:
102
+ *
103
+ * Represents an enum or a flag.
104
+ */
105
+ typedef GIBaseInfo GIEnumInfo;
106
+
107
+ /**
108
+ * GIObjectInfo:
109
+ *
110
+ * Represents an object.
111
+ */
112
+ typedef GIBaseInfo GIObjectInfo;
113
+
114
+ /**
115
+ * GIInterfaceInfo:
116
+ *
117
+ * Represents an interface.
118
+ */
119
+ typedef GIBaseInfo GIInterfaceInfo;
120
+
121
+ /**
122
+ * GIConstantInfo:
123
+ *
124
+ * Represents a constant.
125
+ */
126
+ typedef GIBaseInfo GIConstantInfo;
127
+
128
+ /**
129
+ * SECTION:givalueinfo
130
+ * @title: GIValueInfo
131
+ * @short_description: Struct representing a value
132
+ *
133
+ * GIValueInfo represents a value.
134
+ *
135
+ * <refsect1 id="gi-givalueinfo.struct-hierarchy" role="struct_hierarchy">
136
+ * <title role="struct_hierarchy.title">Struct hierarchy</title>
137
+ * <synopsis>
138
+ * <link linkend="gi-GIBaseInfo">GIBaseInfo</link>
139
+ * +----GIValueInfo
140
+ * </synopsis>
141
+ * </refsect1>
142
+ */
143
+
144
+ /**
145
+ * GIValueInfo:
146
+ *
147
+ * Represents a enum value of a #GIEnumInfo.
148
+ */
149
+ typedef GIBaseInfo GIValueInfo;
150
+
151
+ /**
152
+ * GISignalInfo:
153
+ *
154
+ * Represents a signal.
155
+ */
156
+ typedef GIBaseInfo GISignalInfo;
157
+
158
+ /**
159
+ * GIVFuncInfo:
160
+ *
161
+ * Represents a virtual function.
162
+ */
163
+ typedef GIBaseInfo GIVFuncInfo;
164
+
165
+ /**
166
+ * GIPropertyInfo:
167
+ *
168
+ * Represents a property of a #GIObjectInfo or a #GIInterfaceInfo.
169
+ */
170
+ typedef GIBaseInfo GIPropertyInfo;
171
+
172
+ /**
173
+ * GIFieldInfo:
174
+ *
175
+ * Represents a field of a #GIStructInfo or a #GIUnionInfo.
176
+ */
177
+ typedef GIBaseInfo GIFieldInfo;
178
+
179
+ /**
180
+ * GIArgInfo:
181
+ *
182
+ * Represents an argument.
183
+ */
184
+ typedef GIBaseInfo GIArgInfo;
185
+
186
+ /**
187
+ * GITypeInfo:
188
+ *
189
+ * Represents type information, direction, transfer etc.
190
+ */
191
+ typedef GIBaseInfo GITypeInfo;
192
+
193
+ /**
194
+ * GIUnresolvedInfo:
195
+ *
196
+ * Represents a unresolved type in a typelib.
197
+ */
198
+ typedef struct _GIUnresolvedInfo GIUnresolvedInfo;
199
+
200
+ union _GIArgument
201
+ {
202
+ gboolean v_boolean;
203
+ gint8 v_int8;
204
+ guint8 v_uint8;
205
+ gint16 v_int16;
206
+ guint16 v_uint16;
207
+ gint32 v_int32;
208
+ guint32 v_uint32;
209
+ gint64 v_int64;
210
+ guint64 v_uint64;
211
+ gfloat v_float;
212
+ gdouble v_double;
213
+ gshort v_short;
214
+ gushort v_ushort;
215
+ gint v_int;
216
+ guint v_uint;
217
+ glong v_long;
218
+ gulong v_ulong;
219
+ gssize v_ssize;
220
+ gsize v_size;
221
+ gchar * v_string;
222
+ gpointer v_pointer;
223
+ };
224
+
225
+ /**
226
+ * GIArgument:
227
+ * @v_boolean: TODO
228
+ * @v_int8: TODO
229
+ * @v_uint8: TODO
230
+ * @v_int16: TODO
231
+ * @v_uint16: TODO
232
+ * @v_int32: TODO
233
+ * @v_uint32: TODO
234
+ * @v_int64: TODO
235
+ * @v_uint64: TODO
236
+ * @v_float: TODO
237
+ * @v_double: TODO
238
+ * @v_short: TODO
239
+ * @v_ushort: TODO
240
+ * @v_int: TODO
241
+ * @v_uint: TODO
242
+ * @v_long: TODO
243
+ * @v_ulong: TODO
244
+ * @v_ssize: TODO
245
+ * @v_size: TODO
246
+ * @v_string: TODO
247
+ * @v_pointer: TODO
248
+ *
249
+ * Stores an argument of varying type
250
+ */
251
+ typedef union _GIArgument GIArgument;
252
+
253
+ /**
254
+ * GIInfoType:
255
+ * @GI_INFO_TYPE_INVALID: invalid type
256
+ * @GI_INFO_TYPE_FUNCTION: function, see #GIFunctionInfo
257
+ * @GI_INFO_TYPE_CALLBACK: callback, see #GIFunctionInfo
258
+ * @GI_INFO_TYPE_STRUCT: struct, see #GIStructInfo
259
+ * @GI_INFO_TYPE_BOXED: boxed, see #GIStructInfo or #GIUnionInfo
260
+ * @GI_INFO_TYPE_ENUM: enum, see #GIEnumInfo
261
+ * @GI_INFO_TYPE_FLAGS: flags, see #GIEnumInfo
262
+ * @GI_INFO_TYPE_OBJECT: object, see #GIObjectInfo
263
+ * @GI_INFO_TYPE_INTERFACE: interface, see #GIInterfaceInfo
264
+ * @GI_INFO_TYPE_CONSTANT: contant, see #GIConstantInfo
265
+ * @GI_INFO_TYPE_INVALID_0: deleted, used to be GI_INFO_TYPE_ERROR_DOMAIN.
266
+ * @GI_INFO_TYPE_UNION: union, see #GIUnionInfo
267
+ * @GI_INFO_TYPE_VALUE: enum value, see #GIValueInfo
268
+ * @GI_INFO_TYPE_SIGNAL: signal, see #GISignalInfo
269
+ * @GI_INFO_TYPE_VFUNC: virtual function, see #GIVFuncInfo
270
+ * @GI_INFO_TYPE_PROPERTY: GObject property, see #GIPropertyInfo
271
+ * @GI_INFO_TYPE_FIELD: struct or union field, see #GIFieldInfo
272
+ * @GI_INFO_TYPE_ARG: argument of a function or callback, see #GIArgInfo
273
+ * @GI_INFO_TYPE_TYPE: type information, see #GITypeInfo
274
+ * @GI_INFO_TYPE_UNRESOLVED: unresolved type, a type which is not present in
275
+ * the typelib, or any of its dependencies.
276
+ *
277
+ * The type of a GIBaseInfo struct.
278
+ */
279
+ typedef enum
280
+ {
281
+ GI_INFO_TYPE_INVALID,
282
+ GI_INFO_TYPE_FUNCTION,
283
+ GI_INFO_TYPE_CALLBACK,
284
+ GI_INFO_TYPE_STRUCT,
285
+ GI_INFO_TYPE_BOXED,
286
+ GI_INFO_TYPE_ENUM, /* 5 */
287
+ GI_INFO_TYPE_FLAGS,
288
+ GI_INFO_TYPE_OBJECT,
289
+ GI_INFO_TYPE_INTERFACE,
290
+ GI_INFO_TYPE_CONSTANT,
291
+ GI_INFO_TYPE_INVALID_0, /* 10 */
292
+ GI_INFO_TYPE_UNION,
293
+ GI_INFO_TYPE_VALUE,
294
+ GI_INFO_TYPE_SIGNAL,
295
+ GI_INFO_TYPE_VFUNC,
296
+ GI_INFO_TYPE_PROPERTY, /* 15 */
297
+ GI_INFO_TYPE_FIELD,
298
+ GI_INFO_TYPE_ARG,
299
+ GI_INFO_TYPE_TYPE,
300
+ GI_INFO_TYPE_UNRESOLVED
301
+ } GIInfoType;
302
+
303
+ /**
304
+ * GITransfer:
305
+ * @GI_TRANSFER_NOTHING: transfer nothing from the callee (function or the type
306
+ * instance the property belongs to) to the caller. The callee retains the
307
+ * ownership of the transfer and the caller doesn't need to do anything to free
308
+ * up the resources of this transfer.
309
+ * @GI_TRANSFER_CONTAINER: transfer the container (list, array, hash table) from
310
+ * the callee to the caller. The callee retains the ownership of the individual
311
+ * items in the container and the caller has to free up the container resources
312
+ * (g_list_free()/g_hash_table_destroy() etc) of this transfer.
313
+ * @GI_TRANSFER_EVERYTHING: transfer everything, eg the container and its
314
+ * contents from the callee to the caller. This is the case when the callee
315
+ * creates a copy of all the data it returns. The caller is responsible for
316
+ * cleaning up the container and item resources of this transfer.
317
+ *
318
+ * The transfer is the exchange of data between two parts, from the callee to
319
+ * the caller. The callee is either a function/method/signal or an
320
+ * object/interface where a property is defined. The caller is the side
321
+ * accessing a property or calling a function.
322
+ * #GITransfer specifies who's responsible for freeing the resources after the
323
+ * ownership transfer is complete. In case of a containing type such as a list,
324
+ * an array or a hash table the container itself is specified differently from
325
+ * the items within the container itself. Each container is freed differently,
326
+ * check the documentation for the types themselves for information on how to
327
+ * free them.
328
+ */
329
+ typedef enum {
330
+ GI_TRANSFER_NOTHING,
331
+ GI_TRANSFER_CONTAINER,
332
+ GI_TRANSFER_EVERYTHING
333
+ } GITransfer;
334
+
335
+ /**
336
+ * GIDirection:
337
+ * @GI_DIRECTION_IN: in argument.
338
+ * @GI_DIRECTION_OUT: out argument.
339
+ * @GI_DIRECTION_INOUT: in and out argument.
340
+ *
341
+ * The direction of a #GIArgInfo.
342
+ */
343
+ typedef enum {
344
+ GI_DIRECTION_IN,
345
+ GI_DIRECTION_OUT,
346
+ GI_DIRECTION_INOUT
347
+ } GIDirection;
348
+
349
+ /**
350
+ * GIScopeType:
351
+ * @GI_SCOPE_TYPE_INVALID: The argument is not of callback type.
352
+ * @GI_SCOPE_TYPE_CALL: The callback and associated user_data is only
353
+ * used during the call to this function.
354
+ * @GI_SCOPE_TYPE_ASYNC: The callback and associated user_data is
355
+ * only used until the callback is invoked, and the callback.
356
+ * is invoked always exactly once.
357
+ * @GI_SCOPE_TYPE_NOTIFIED: The callback and and associated
358
+ * user_data is used until the caller is notfied via the destroy_notify.
359
+ *
360
+ * Scope type of a #GIArgInfo representing callback, determines how the
361
+ * callback is invoked and is used to decided when the invoke structs
362
+ * can be freed.
363
+ */
364
+ typedef enum {
365
+ GI_SCOPE_TYPE_INVALID,
366
+ GI_SCOPE_TYPE_CALL,
367
+ GI_SCOPE_TYPE_ASYNC,
368
+ GI_SCOPE_TYPE_NOTIFIED
369
+ } GIScopeType;
370
+
371
+ /**
372
+ * GITypeTag:
373
+ * @GI_TYPE_TAG_VOID: void
374
+ * @GI_TYPE_TAG_BOOLEAN: boolean
375
+ * @GI_TYPE_TAG_INT8: 8-bit signed integer
376
+ * @GI_TYPE_TAG_UINT8: 8-bit unsigned integer
377
+ * @GI_TYPE_TAG_INT16: 16-bit signed integer
378
+ * @GI_TYPE_TAG_UINT16: 16-bit unsigned integer
379
+ * @GI_TYPE_TAG_INT32: 32-bit signed integer
380
+ * @GI_TYPE_TAG_UINT32: 32-bit unsigned integer
381
+ * @GI_TYPE_TAG_INT64: 64-bit signed integer
382
+ * @GI_TYPE_TAG_UINT64: 64-bit unsigned integer
383
+ * @GI_TYPE_TAG_FLOAT: float
384
+ * @GI_TYPE_TAG_DOUBLE: double floating point
385
+ * @GI_TYPE_TAG_GTYPE: a #GType
386
+ * @GI_TYPE_TAG_UTF8: a UTF-8 encoded string
387
+ * @GI_TYPE_TAG_FILENAME: a filename, encoded in the same encoding
388
+ * as the native filesystem is using.
389
+ * @GI_TYPE_TAG_ARRAY: an array
390
+ * @GI_TYPE_TAG_INTERFACE: an extended interface object
391
+ * @GI_TYPE_TAG_GLIST: a #GList
392
+ * @GI_TYPE_TAG_GSLIST: a #GSList
393
+ * @GI_TYPE_TAG_GHASH: a #GHashTable
394
+ * @GI_TYPE_TAG_ERROR: a #GError
395
+ * @GI_TYPE_TAG_UNICHAR: Unicode character
396
+ *
397
+ * The type tag of a #GITypeInfo.
398
+ */
399
+ typedef enum {
400
+ /* Basic types */
401
+ GI_TYPE_TAG_VOID = 0,
402
+ GI_TYPE_TAG_BOOLEAN = 1,
403
+ GI_TYPE_TAG_INT8 = 2,
404
+ GI_TYPE_TAG_UINT8 = 3,
405
+ GI_TYPE_TAG_INT16 = 4,
406
+ GI_TYPE_TAG_UINT16 = 5,
407
+ GI_TYPE_TAG_INT32 = 6,
408
+ GI_TYPE_TAG_UINT32 = 7,
409
+ GI_TYPE_TAG_INT64 = 8,
410
+ GI_TYPE_TAG_UINT64 = 9,
411
+ GI_TYPE_TAG_FLOAT = 10,
412
+ GI_TYPE_TAG_DOUBLE = 11,
413
+ GI_TYPE_TAG_GTYPE = 12,
414
+ GI_TYPE_TAG_UTF8 = 13,
415
+ GI_TYPE_TAG_FILENAME = 14,
416
+ /* Non-basic types; compare with G_TYPE_TAG_IS_BASIC */
417
+ GI_TYPE_TAG_ARRAY = 15,
418
+ GI_TYPE_TAG_INTERFACE = 16,
419
+ GI_TYPE_TAG_GLIST = 17,
420
+ GI_TYPE_TAG_GSLIST = 18,
421
+ GI_TYPE_TAG_GHASH = 19,
422
+ GI_TYPE_TAG_ERROR = 20,
423
+ /* Another basic type */
424
+ GI_TYPE_TAG_UNICHAR = 21
425
+ /* Note - there is currently only room for 32 tags */
426
+ } GITypeTag;
427
+
428
+ /**
429
+ * GI_TYPE_TAG_N_TYPES:
430
+ *
431
+ * TODO
432
+ */
433
+ #define GI_TYPE_TAG_N_TYPES (GI_TYPE_TAG_UNICHAR+1)
434
+
435
+ #ifndef __GTK_DOC_IGNORE__
436
+ /* These were removed and no longer appear in the typelib;
437
+ * instead, the machine-specific versions like INT32 are
438
+ * always used.
439
+ */
440
+ #define GI_TYPE_TAG_SHORT GI_TYPE_TAG_SHORT_WAS_REMOVED
441
+ #define GI_TYPE_TAG_INT GI_TYPE_TAG_INT_WAS_REMOVED
442
+ #define GI_TYPE_TAG_LONG GI_TYPE_TAG_LONG_WAS_REMOVED
443
+ #endif
444
+
445
+ /**
446
+ * GIArrayType:
447
+ * @GI_ARRAY_TYPE_C: a C array, char[] for instance
448
+ * @GI_ARRAY_TYPE_ARRAY: a @GArray array
449
+ * @GI_ARRAY_TYPE_PTR_ARRAY: a #GPtrArray array
450
+ * @GI_ARRAY_TYPE_BYTE_ARRAY: a #GByteArray array
451
+ *
452
+ * The type of array in a #GITypeInfo.
453
+ */
454
+ typedef enum {
455
+ GI_ARRAY_TYPE_C,
456
+ GI_ARRAY_TYPE_ARRAY,
457
+ GI_ARRAY_TYPE_PTR_ARRAY,
458
+ GI_ARRAY_TYPE_BYTE_ARRAY
459
+ } GIArrayType;
460
+
461
+ /**
462
+ * GIFieldInfoFlags:
463
+ * @GI_FIELD_IS_READABLE: field is readable.
464
+ * @GI_FIELD_IS_WRITABLE: field is writable.
465
+ *
466
+ * Flags for a #GIFieldInfo.
467
+ */
468
+
469
+ typedef enum
470
+ {
471
+ GI_FIELD_IS_READABLE = 1 << 0,
472
+ GI_FIELD_IS_WRITABLE = 1 << 1
473
+ } GIFieldInfoFlags;
474
+
475
+ /**
476
+ * GIVFuncInfoFlags:
477
+ * @GI_VFUNC_MUST_CHAIN_UP: chains up to the parent type
478
+ * @GI_VFUNC_MUST_OVERRIDE: overrides
479
+ * @GI_VFUNC_MUST_NOT_OVERRIDE: does not override
480
+ * @GI_VFUNC_THROWS: Includes a #GError
481
+ *
482
+ * Flags of a #GIVFuncInfo struct.
483
+ */
484
+ typedef enum
485
+ {
486
+ GI_VFUNC_MUST_CHAIN_UP = 1 << 0,
487
+ GI_VFUNC_MUST_OVERRIDE = 1 << 1,
488
+ GI_VFUNC_MUST_NOT_OVERRIDE = 1 << 2,
489
+ GI_VFUNC_THROWS = 1 << 3
490
+ } GIVFuncInfoFlags;
491
+
492
+ /**
493
+ * GIFunctionInfoFlags:
494
+ * @GI_FUNCTION_IS_METHOD: is a method.
495
+ * @GI_FUNCTION_IS_CONSTRUCTOR: is a constructor.
496
+ * @GI_FUNCTION_IS_GETTER: is a getter of a #GIPropertyInfo.
497
+ * @GI_FUNCTION_IS_SETTER: is a setter of a #GIPropertyInfo.
498
+ * @GI_FUNCTION_WRAPS_VFUNC: represents a virtual function.
499
+ * @GI_FUNCTION_THROWS: the function may throw an error.
500
+ *
501
+ * Flags for a #GIFunctionInfo struct.
502
+ */
503
+ typedef enum
504
+ {
505
+ GI_FUNCTION_IS_METHOD = 1 << 0,
506
+ GI_FUNCTION_IS_CONSTRUCTOR = 1 << 1,
507
+ GI_FUNCTION_IS_GETTER = 1 << 2,
508
+ GI_FUNCTION_IS_SETTER = 1 << 3,
509
+ GI_FUNCTION_WRAPS_VFUNC = 1 << 4,
510
+ GI_FUNCTION_THROWS = 1 << 5
511
+ } GIFunctionInfoFlags;
512
+
513
+ #ifndef __GI_SCANNER__
514
+ #ifndef __GTK_DOC_IGNORE__
515
+ /* backwards compatibility */
516
+ typedef GIArgument GArgument;
517
+ typedef struct _GITypelib GTypelib;
518
+ #endif
519
+ #endif
520
+
521
+ G_END_DECLS
522
+
523
+ #endif /* __GITYPES_H__ */
524
+