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,222 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2012 Ruby-GNOME2 Project Team
4
+ *
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2.1 of the License, or (at your option) any later version.
9
+ *
10
+ * This library is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ * Lesser General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
+ * MA 02110-1301 USA
19
+ */
20
+
21
+ #include "rb-gi-private.h"
22
+
23
+ #define RG_TARGET_NAMESPACE rb_cGIInterfaceInfo
24
+ #define SELF(self) (RVAL2GI_INTERFACE_INFO(self))
25
+
26
+ GType
27
+ gi_interface_info_get_type(void)
28
+ {
29
+ static GType type = 0;
30
+ if (type == 0) {
31
+ type = g_boxed_type_register_static("GIInterfaceInfo",
32
+ (GBoxedCopyFunc)g_base_info_ref,
33
+ (GBoxedFreeFunc)g_base_info_unref);
34
+ }
35
+ return type;
36
+ }
37
+
38
+ static VALUE
39
+ rg_n_prerequisites(VALUE self)
40
+ {
41
+ GIInterfaceInfo *info;
42
+
43
+ info = SELF(self);
44
+ return INT2NUM(g_interface_info_get_n_prerequisites(info));
45
+ }
46
+
47
+ static VALUE
48
+ rg_get_prerequisite(VALUE self, VALUE rb_n)
49
+ {
50
+ GIInterfaceInfo *info;
51
+ gint n;
52
+
53
+ info = SELF(self);
54
+ n = NUM2INT(rb_n);
55
+ return GI_BASE_INFO2RVAL_WITH_UNREF(g_interface_info_get_prerequisite(info, n));
56
+ }
57
+
58
+ static VALUE
59
+ rg_n_properties(VALUE self)
60
+ {
61
+ GIInterfaceInfo *info;
62
+
63
+ info = SELF(self);
64
+ return INT2NUM(g_interface_info_get_n_properties(info));
65
+ }
66
+
67
+ static VALUE
68
+ rg_get_property(VALUE self, VALUE rb_n)
69
+ {
70
+ GIInterfaceInfo *info;
71
+ gint n;
72
+
73
+ info = SELF(self);
74
+ n = NUM2INT(rb_n);
75
+ return GI_BASE_INFO2RVAL_WITH_UNREF(g_interface_info_get_property(info, n));
76
+ }
77
+
78
+ static VALUE
79
+ rg_n_methods(VALUE self)
80
+ {
81
+ GIInterfaceInfo *info;
82
+
83
+ info = SELF(self);
84
+ return INT2NUM(g_interface_info_get_n_methods(info));
85
+ }
86
+
87
+ static VALUE
88
+ rg_get_method(VALUE self, VALUE rb_n_or_name)
89
+ {
90
+ GIInterfaceInfo *info;
91
+ GIFunctionInfo *function_info;
92
+
93
+ info = SELF(self);
94
+ if (RB_TYPE_P(rb_n_or_name, T_FIXNUM)) {
95
+ gint n;
96
+ n = NUM2INT(rb_n_or_name);
97
+ function_info = g_interface_info_get_method(info, n);
98
+ } else {
99
+ const char *name;
100
+ name = RVAL2CSTR(rb_n_or_name);
101
+ function_info = g_interface_info_find_method(info, name);
102
+ }
103
+
104
+ return GI_BASE_INFO2RVAL_WITH_UNREF(function_info);
105
+ }
106
+
107
+ static VALUE
108
+ rg_n_signals(VALUE self)
109
+ {
110
+ GIInterfaceInfo *info;
111
+
112
+ info = SELF(self);
113
+ return INT2NUM(g_interface_info_get_n_signals(info));
114
+ }
115
+
116
+ static VALUE
117
+ rg_get_signal(VALUE self, VALUE rb_n_or_name)
118
+ {
119
+ GIInterfaceInfo *info;
120
+ GISignalInfo *signal_info;
121
+
122
+ info = SELF(self);
123
+ if (RB_TYPE_P(rb_n_or_name, T_FIXNUM)) {
124
+ gint n;
125
+ n = NUM2INT(rb_n_or_name);
126
+ signal_info = g_interface_info_get_signal(info, n);
127
+ } else {
128
+ #ifdef HAVE_G_INTERFACE_INFO_FIND_SIGNAL
129
+ const char *name;
130
+ name = RVAL2CSTR(rb_n_or_name);
131
+ signal_info = g_interface_info_find_signal(info, name);
132
+ #else
133
+ rb_raise(rb_eArgError,
134
+ "g_interface_info_find_signal() is defined "
135
+ "since GObjectIntrospection 1.34");
136
+ #endif
137
+ }
138
+
139
+ return GI_BASE_INFO2RVAL_WITH_UNREF(signal_info);
140
+ }
141
+
142
+ static VALUE
143
+ rg_n_vfuncs(VALUE self)
144
+ {
145
+ GIInterfaceInfo *info;
146
+
147
+ info = SELF(self);
148
+ return INT2NUM(g_interface_info_get_n_vfuncs(info));
149
+ }
150
+
151
+ static VALUE
152
+ rg_get_vfunc(VALUE self, VALUE rb_n_or_name)
153
+ {
154
+ GIInterfaceInfo *info;
155
+ GIVFuncInfo *vfunc_info;
156
+
157
+ info = SELF(self);
158
+ if (RB_TYPE_P(rb_n_or_name, T_FIXNUM)) {
159
+ gint n;
160
+ n = NUM2INT(rb_n_or_name);
161
+ vfunc_info = g_interface_info_get_vfunc(info, n);
162
+ } else {
163
+ const gchar *name;
164
+ name = RVAL2CSTR(rb_n_or_name);
165
+ vfunc_info = g_interface_info_find_vfunc(info, name);
166
+ }
167
+
168
+ return GI_BASE_INFO2RVAL_WITH_UNREF(vfunc_info);
169
+ }
170
+
171
+ static VALUE
172
+ rg_n_constants(VALUE self)
173
+ {
174
+ GIInterfaceInfo *info;
175
+
176
+ info = SELF(self);
177
+ return INT2NUM(g_interface_info_get_n_constants(info));
178
+ }
179
+
180
+ static VALUE
181
+ rg_get_constant(VALUE self, VALUE rb_n)
182
+ {
183
+ GIInterfaceInfo *info;
184
+ gint n;
185
+
186
+ info = SELF(self);
187
+ n = NUM2INT(rb_n);
188
+ return GI_BASE_INFO2RVAL_WITH_UNREF(g_interface_info_get_constant(info, n));
189
+ }
190
+
191
+ static VALUE
192
+ rg_iface_struct(VALUE self)
193
+ {
194
+ GIInterfaceInfo *info;
195
+
196
+ info = SELF(self);
197
+ return GI_BASE_INFO2RVAL_WITH_UNREF(g_interface_info_get_iface_struct(info));
198
+ }
199
+
200
+ void
201
+ rb_gi_interface_info_init(VALUE rb_mGI, VALUE rb_cGIRegisteredTypeInfo)
202
+ {
203
+ VALUE RG_TARGET_NAMESPACE;
204
+
205
+ RG_TARGET_NAMESPACE =
206
+ G_DEF_CLASS_WITH_PARENT(GI_TYPE_INTERFACE_INFO, "InterfaceInfo", rb_mGI,
207
+ rb_cGIRegisteredTypeInfo);
208
+
209
+ RG_DEF_METHOD(n_prerequisites, 0);
210
+ RG_DEF_METHOD(get_prerequisite, 1);
211
+ RG_DEF_METHOD(n_properties, 0);
212
+ RG_DEF_METHOD(get_property, 1);
213
+ RG_DEF_METHOD(n_methods, 0);
214
+ RG_DEF_METHOD(get_method, 1);
215
+ RG_DEF_METHOD(n_signals, 0);
216
+ RG_DEF_METHOD(get_signal, 1);
217
+ RG_DEF_METHOD(n_vfuncs, 0);
218
+ RG_DEF_METHOD(get_vfunc, 1);
219
+ RG_DEF_METHOD(n_constants, 0);
220
+ RG_DEF_METHOD(get_constant, 1);
221
+ RG_DEF_METHOD(iface_struct, 0);
222
+ }
@@ -0,0 +1,224 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2012-2014 Ruby-GNOME2 Project Team
4
+ *
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2.1 of the License, or (at your option) any later version.
9
+ *
10
+ * This library is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ * Lesser General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
+ * MA 02110-1301 USA
19
+ */
20
+
21
+ #include "rb-gi-private.h"
22
+
23
+ #define RG_TARGET_NAMESPACE rb_cGILoader
24
+
25
+ static const gchar *boxed_class_converters_name = "@@boxed_class_converters";
26
+
27
+ static VALUE
28
+ rg_s_define_class(int argc, VALUE *argv, G_GNUC_UNUSED VALUE klass)
29
+ {
30
+ VALUE rb_class;
31
+ VALUE rb_gtype, rb_name, rb_module;
32
+ VALUE rb_options, rb_parent, rb_size;
33
+ GType gtype;
34
+
35
+ rb_scan_args(argc, argv, "31", &rb_gtype, &rb_name, &rb_module, &rb_options);
36
+ rbg_scan_options(rb_options,
37
+ "parent", &rb_parent,
38
+ "size", &rb_size,
39
+ NULL);
40
+
41
+ gtype = NUM2ULONG(rb_to_int(rb_gtype));
42
+ rb_class = G_DEF_CLASS_WITH_PARENT(gtype, RVAL2CSTR(rb_name),
43
+ rb_module, rb_parent);
44
+ if (!NIL_P(rb_size)) {
45
+ rb_iv_set(rb_class, "@size", rb_size);
46
+ }
47
+ return rb_class;
48
+ }
49
+
50
+ static VALUE
51
+ rg_s_define_interface(G_GNUC_UNUSED VALUE klass,
52
+ VALUE rb_gtype, VALUE rb_name, VALUE rb_module)
53
+ {
54
+ GType gtype;
55
+
56
+ gtype = NUM2ULONG(rb_to_int(rb_gtype));
57
+ return G_DEF_INTERFACE(gtype, RVAL2CSTR(rb_name), rb_module);
58
+ }
59
+
60
+ static VALUE
61
+ struct_alloc(VALUE klass)
62
+ {
63
+ VALUE rb_size;
64
+ size_t size;
65
+ gpointer instance;
66
+
67
+ rb_size = rb_iv_get(klass, "@size");
68
+ size = NUM2ULONG(rb_size);
69
+ instance = xmalloc(size);
70
+ memset(instance, 0, size);
71
+ return Data_Wrap_Struct(klass, NULL, xfree, instance);
72
+ }
73
+
74
+ static VALUE
75
+ rg_s_define_struct(int argc, VALUE *argv, G_GNUC_UNUSED VALUE klass)
76
+ {
77
+ VALUE rb_size, rb_name, rb_module;
78
+ VALUE rb_options, rb_parent;
79
+ VALUE rb_class;
80
+
81
+ rb_scan_args(argc, argv, "31", &rb_size, &rb_name, &rb_module, &rb_options);
82
+ rbg_scan_options(rb_options,
83
+ "parent", &rb_parent,
84
+ NULL);
85
+
86
+ rb_size = rb_to_int(rb_size);
87
+ if (NIL_P(rb_parent)) {
88
+ rb_parent = rb_cObject;
89
+ }
90
+ rb_class = rb_define_class_under(rb_module, RVAL2CSTR(rb_name), rb_parent);
91
+ rb_iv_set(rb_class, "@size", rb_size);
92
+ rb_define_alloc_func(rb_class, struct_alloc);
93
+ return rb_class;
94
+ }
95
+
96
+ static VALUE
97
+ rg_s_define_error(int argc, VALUE *argv, G_GNUC_UNUSED VALUE klass)
98
+ {
99
+ VALUE rb_domain, rb_name, rb_module;
100
+ VALUE rb_options, rb_parent, rb_gtype;
101
+ GQuark domain;
102
+ const gchar *name;
103
+ GType gtype = G_TYPE_INVALID;
104
+
105
+ rb_scan_args(argc, argv, "31",
106
+ &rb_domain, &rb_name, &rb_module, &rb_options);
107
+ rbg_scan_options(rb_options,
108
+ "parent", &rb_parent,
109
+ "gtype", &rb_gtype,
110
+ NULL);
111
+
112
+ if (RB_TYPE_P(rb_domain, RUBY_T_STRING)) {
113
+ domain = g_quark_from_string(RVAL2CSTR(rb_domain));
114
+ if (domain == 0) {
115
+ rb_raise(rb_eArgError,
116
+ "invalid domain name: <%s>",
117
+ rbg_inspect(rb_domain));
118
+ }
119
+ } else {
120
+ domain = NUM2UINT(rb_domain);
121
+ }
122
+
123
+ name = RVAL2CSTR(rb_name);
124
+
125
+ if (NIL_P(rb_parent)) {
126
+ rb_parent = rb_eStandardError;
127
+ }
128
+
129
+ if (!NIL_P(rb_gtype)) {
130
+ gtype = NUM2ULONG(rb_funcall(rb_gtype, rb_intern("to_i"), 0));
131
+ }
132
+
133
+ return G_DEF_ERROR(domain, name, rb_module, rb_parent, gtype);
134
+ }
135
+
136
+ typedef struct {
137
+ GType type;
138
+ VALUE rb_converters;
139
+ VALUE rb_converter;
140
+ } BoxedInstance2RObjData;
141
+
142
+ static void
143
+ boxed_class_converter_free(gpointer user_data)
144
+ {
145
+ BoxedInstance2RObjData *data = user_data;
146
+ rb_ary_delete(data->rb_converters, data->rb_converter);
147
+ g_free(data);
148
+ }
149
+
150
+ static VALUE
151
+ boxed_instance2robj(gpointer instance, gpointer user_data)
152
+ {
153
+ BoxedInstance2RObjData *data = user_data;
154
+ VALUE default_rb_instance;
155
+ VALUE klass;
156
+ gint flags = 0;
157
+ ID id_call;
158
+
159
+ default_rb_instance = rbgobj_make_boxed_default(instance, data->type);
160
+ CONST_ID(id_call, "call");
161
+ klass = rb_funcall(data->rb_converter, id_call, 1, default_rb_instance);
162
+ return rbgobj_make_boxed_raw(instance, data->type, klass, flags);
163
+ }
164
+
165
+ static VALUE
166
+ rg_s_register_boxed_class_converter(VALUE klass, VALUE rb_gtype)
167
+ {
168
+ RGConvertTable table;
169
+ BoxedInstance2RObjData *data;
170
+ ID id_to_i;
171
+ VALUE boxed_class_converters;
172
+
173
+ memset(&table, 0, sizeof(RGConvertTable));
174
+ CONST_ID(id_to_i, "to_i");
175
+ table.type = NUM2ULONG(rb_funcall(rb_gtype, id_to_i, 0));
176
+ table.klass = Qnil;
177
+ table.instance2robj = boxed_instance2robj;
178
+
179
+ data = g_new(BoxedInstance2RObjData, 1);
180
+ data->type = table.type;
181
+ data->rb_converter = rb_block_proc();
182
+ boxed_class_converters = rb_cv_get(klass, boxed_class_converters_name);
183
+ rb_ary_push(boxed_class_converters, data->rb_converter);
184
+ table.user_data = data;
185
+ table.notify = boxed_class_converter_free;
186
+
187
+ rbgobj_convert_define(&table);
188
+
189
+ return Qnil;
190
+ }
191
+
192
+ static VALUE
193
+ rg_s_register_constant_rename_map(G_GNUC_UNUSED VALUE klass,
194
+ VALUE rb_original,
195
+ VALUE rb_renamed)
196
+ {
197
+ G_RENAME_CONSTANT(RVAL2CSTR(rb_original), RVAL2CSTR(rb_renamed));
198
+ return Qnil;
199
+ }
200
+
201
+ static VALUE
202
+ rg_s_start_callback_dispatch_thread(G_GNUC_UNUSED VALUE klass)
203
+ {
204
+ rbgutil_start_callback_dispatch_thread();
205
+ return Qnil;
206
+ }
207
+
208
+ void
209
+ rb_gi_loader_init(VALUE rb_mGI)
210
+ {
211
+ VALUE RG_TARGET_NAMESPACE;
212
+
213
+ RG_TARGET_NAMESPACE = rb_define_class_under(rb_mGI, "Loader", rb_cObject);
214
+
215
+ rb_cv_set(RG_TARGET_NAMESPACE, boxed_class_converters_name, rb_ary_new());
216
+
217
+ RG_DEF_SMETHOD(define_class, -1);
218
+ RG_DEF_SMETHOD(define_interface, 3);
219
+ RG_DEF_SMETHOD(define_struct, -1);
220
+ RG_DEF_SMETHOD(define_error, -1);
221
+ RG_DEF_SMETHOD(register_boxed_class_converter, 1);
222
+ RG_DEF_SMETHOD(register_constant_rename_map, 2);
223
+ RG_DEF_SMETHOD(start_callback_dispatch_thread, 0);
224
+ }
@@ -0,0 +1,83 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2012-2013 Ruby-GNOME2 Project Team
4
+ *
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2.1 of the License, or (at your option) any later version.
9
+ *
10
+ * This library is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ * Lesser General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
+ * MA 02110-1301 USA
19
+ */
20
+
21
+ #include "rb-gi-private.h"
22
+
23
+ #define RG_TARGET_NAMESPACE rb_cGIMethodInfo
24
+ #define SELF(self) RVAL2GI_FUNCTION_INFO(self)
25
+
26
+ GType
27
+ gi_method_info_get_type(void)
28
+ {
29
+ static GType type = 0;
30
+ if (type == 0) {
31
+ type = g_boxed_type_register_static("GIMethodInfo",
32
+ (GBoxedCopyFunc)g_base_info_ref,
33
+ (GBoxedFreeFunc)g_base_info_unref);
34
+ }
35
+ return type;
36
+ }
37
+
38
+ static VALUE
39
+ rg_invoke(VALUE self, VALUE rb_options)
40
+ {
41
+ GIFunctionInfo *info;
42
+ GICallableInfo *callable_info;
43
+ GIArgument return_value;
44
+ VALUE rb_out_args;
45
+ VALUE rb_return_value;
46
+
47
+ info = SELF(self);
48
+
49
+ /* TODO: use rb_protect */
50
+ rb_out_args = rb_gi_function_info_invoke_raw(info,
51
+ rb_options,
52
+ &return_value);
53
+
54
+ callable_info = (GICallableInfo *)info;
55
+ rb_return_value = GI_RETURN_ARGUMENT2RVAL(&return_value, callable_info);
56
+
57
+ if (NIL_P(rb_out_args)) {
58
+ return rb_return_value;
59
+ } else {
60
+ GITypeInfo return_value_info;
61
+ g_callable_info_load_return_type(callable_info, &return_value_info);
62
+ if (g_type_info_get_tag(&return_value_info) != GI_TYPE_TAG_VOID) {
63
+ rb_ary_unshift(rb_out_args, rb_return_value);
64
+ }
65
+ if (RARRAY_LEN(rb_out_args) == 1) {
66
+ return RARRAY_PTR(rb_out_args)[0];
67
+ } else {
68
+ return rb_out_args;
69
+ }
70
+ }
71
+ }
72
+
73
+ void
74
+ rb_gi_method_info_init(VALUE rb_mGI, VALUE rb_cGIFunctionInfo)
75
+ {
76
+ VALUE RG_TARGET_NAMESPACE;
77
+
78
+ RG_TARGET_NAMESPACE =
79
+ G_DEF_CLASS_WITH_PARENT(GI_TYPE_METHOD_INFO, "MethodInfo", rb_mGI,
80
+ rb_cGIFunctionInfo);
81
+
82
+ RG_DEF_METHOD(invoke, 1);
83
+ }