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,203 @@
1
+ # -*- Mode: Python -*-
2
+ # GObject-Introspection - a framework for introspecting GObject libraries
3
+ # Copyright (C) 2008-2010 Johan Dahlin
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 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
17
+ # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
+ # Boston, MA 02111-1307, USA.
19
+ #
20
+
21
+ import errno
22
+ import cPickle
23
+ import glob
24
+ import hashlib
25
+ import os
26
+ import shutil
27
+ import sys
28
+ import tempfile
29
+
30
+ import giscanner
31
+
32
+ _CACHE_VERSION_FILENAME = '.cache-version'
33
+
34
+
35
+ def _get_versionhash():
36
+ toplevel = os.path.dirname(giscanner.__file__)
37
+ # Use pyc instead of py to avoid extra IO
38
+ sources = glob.glob(os.path.join(toplevel, '*.pyc'))
39
+ sources.append(sys.argv[0])
40
+ # Using mtimes is a bit (5x) faster than hashing the file contents
41
+ mtimes = (str(os.stat(source).st_mtime) for source in sources)
42
+ return hashlib.sha1(''.join(mtimes)).hexdigest()
43
+
44
+
45
+ def _get_cachedir():
46
+ if 'GI_SCANNER_DISABLE_CACHE' in os.environ:
47
+ return None
48
+ homedir = os.path.expanduser('~')
49
+ if homedir is None:
50
+ return None
51
+ if not os.path.exists(homedir):
52
+ return None
53
+
54
+ cachedir = os.path.join(homedir, '.cache')
55
+ if not os.path.exists(cachedir):
56
+ try:
57
+ os.mkdir(cachedir, 0o755)
58
+ except OSError:
59
+ return None
60
+
61
+ scannerdir = os.path.join(cachedir, 'g-ir-scanner')
62
+ if not os.path.exists(scannerdir):
63
+ try:
64
+ os.mkdir(scannerdir, 0o755)
65
+ except OSError:
66
+ return None
67
+ # If it exists and is a file, don't cache at all
68
+ elif not os.path.isdir(scannerdir):
69
+ return None
70
+ return scannerdir
71
+
72
+
73
+ class CacheStore(object):
74
+
75
+ def __init__(self):
76
+ try:
77
+ self._directory = _get_cachedir()
78
+ except OSError as e:
79
+ if e.errno != errno.EPERM:
80
+ raise
81
+ self._directory = None
82
+
83
+ self._check_cache_version()
84
+
85
+ def _check_cache_version(self):
86
+ if self._directory is None:
87
+ return
88
+
89
+ current_hash = _get_versionhash()
90
+ version = os.path.join(self._directory, _CACHE_VERSION_FILENAME)
91
+ try:
92
+ cache_hash = open(version).read()
93
+ except IOError as e:
94
+ # File does not exist
95
+ if e.errno == errno.ENOENT:
96
+ cache_hash = 0
97
+ else:
98
+ raise
99
+
100
+ if current_hash == cache_hash:
101
+ return
102
+
103
+ versiontmp = version + '.tmp'
104
+
105
+ self._clean()
106
+ try:
107
+ fp = open(versiontmp, 'w')
108
+ except IOError as e:
109
+ # Permission denied
110
+ if e.errno == errno.EACCES:
111
+ return
112
+ else:
113
+ raise
114
+
115
+ fp.write(current_hash)
116
+ fp.close()
117
+ # On Unix, this would just be os.rename() but Windows
118
+ # doesn't allow that.
119
+ shutil.move(versiontmp, version)
120
+
121
+ def _get_filename(self, filename):
122
+ # If we couldn't create the directory we're probably
123
+ # on a read only home directory where we just disable
124
+ # the cache all together.
125
+ if self._directory is None:
126
+ return
127
+ hexdigest = hashlib.sha1(filename).hexdigest()
128
+ return os.path.join(self._directory, hexdigest)
129
+
130
+ def _cache_is_valid(self, store_filename, filename):
131
+ return (os.stat(store_filename).st_mtime >=
132
+ os.stat(filename).st_mtime)
133
+
134
+ def _remove_filename(self, filename):
135
+ try:
136
+ os.unlink(filename)
137
+ except IOError as e:
138
+ # Permission denied
139
+ if e.errno == errno.EACCES:
140
+ return
141
+ else:
142
+ raise
143
+ except OSError as e:
144
+ # File does not exist
145
+ if e.errno == errno.ENOENT:
146
+ return
147
+ else:
148
+ raise
149
+
150
+ def _clean(self):
151
+ for filename in os.listdir(self._directory):
152
+ if filename == _CACHE_VERSION_FILENAME:
153
+ continue
154
+ self._remove_filename(os.path.join(self._directory, filename))
155
+
156
+ def store(self, filename, data):
157
+ store_filename = self._get_filename(filename)
158
+ if store_filename is None:
159
+ return
160
+
161
+ if (os.path.exists(store_filename) and self._cache_is_valid(store_filename, filename)):
162
+ return None
163
+
164
+ tmp_fd, tmp_filename = tempfile.mkstemp(prefix='g-ir-scanner-cache-')
165
+ try:
166
+ cPickle.dump(data, os.fdopen(tmp_fd, 'w'))
167
+ except IOError as e:
168
+ # No space left on device
169
+ if e.errno == errno.ENOSPC:
170
+ self._remove_filename(tmp_filename)
171
+ return
172
+ else:
173
+ raise
174
+
175
+ try:
176
+ shutil.move(tmp_filename, store_filename)
177
+ except IOError as e:
178
+ # Permission denied
179
+ if e.errno == errno.EACCES:
180
+ self._remove_filename(tmp_filename)
181
+ else:
182
+ raise
183
+
184
+ def load(self, filename):
185
+ store_filename = self._get_filename(filename)
186
+ if store_filename is None:
187
+ return
188
+ try:
189
+ fd = open(store_filename)
190
+ except IOError as e:
191
+ if e.errno == errno.ENOENT:
192
+ return None
193
+ else:
194
+ raise
195
+ if not self._cache_is_valid(store_filename, filename):
196
+ return None
197
+ try:
198
+ data = cPickle.load(fd)
199
+ except (AttributeError, EOFError, ValueError, cPickle.BadPickleGet):
200
+ # Broken cache entry, remove it
201
+ self._remove_filename(store_filename)
202
+ data = None
203
+ return data
@@ -0,0 +1,202 @@
1
+ # -*- Mode: Python -*-
2
+ # GObject-Introspection - a framework for introspecting GObject libraries
3
+ # Copyright (C) 2014 Chun-wei Fan
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 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
17
+ # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
+ # Boston, MA 02111-1307, USA.
19
+ #
20
+
21
+ import os
22
+ import subprocess
23
+ import sys
24
+ import distutils
25
+
26
+ from distutils.msvccompiler import MSVCCompiler
27
+ from distutils.cygwinccompiler import Mingw32CCompiler
28
+ from distutils.sysconfig import customize_compiler
29
+
30
+ from . import utils
31
+
32
+
33
+ class CCompiler(object):
34
+
35
+ compiler_cmd = ''
36
+ compiler = None
37
+ _cflags_no_deprecation_warnings = ''
38
+
39
+ def __init__(self, compiler_name=None):
40
+ pass
41
+
42
+ def get_internal_link_flags(self,
43
+ args,
44
+ libtool,
45
+ libraries,
46
+ libpaths,
47
+ pkgconfig_msvc_flags,
48
+ ns,
49
+ ns_version):
50
+ # An "internal" link is where the library to be introspected
51
+ # is being built in the current directory.
52
+
53
+ # Search the current directory first
54
+ # (This flag is not supported nor needed for Visual C++)
55
+ if pkgconfig_msvc_flags == '':
56
+ args.append('-L.')
57
+
58
+ # https://bugzilla.gnome.org/show_bug.cgi?id=625195
59
+ if not libtool:
60
+ # We don't have -Wl,-rpath for Visual C++, and that's
61
+ # going to cause a problem. Instead, link to internal
62
+ # libraries by deducing the .lib file name using
63
+ # the namespace name and version
64
+ if pkgconfig_msvc_flags:
65
+ if ns_version:
66
+ args.append(str.lower(ns) +
67
+ '-' +
68
+ ns_version + '.lib')
69
+ else:
70
+ args.append(str.lower(ns) + '.lib')
71
+ else:
72
+ args.append('-Wl,-rpath=.')
73
+
74
+ # Ensure libraries are always linked as we are going to use ldd to work
75
+ # out their names later
76
+ if not libtool and pkgconfig_msvc_flags == '':
77
+ args.append('-Wl,--no-as-needed')
78
+
79
+ for library in libraries:
80
+ # Visual C++: We have the needed .lib files now, and we need to link
81
+ # to .lib files, not the .dll as the --library option specifies the
82
+ # .dll(s) the .gir file refers to
83
+ if pkgconfig_msvc_flags == '':
84
+ if library.endswith(".la"): # explicitly specified libtool library
85
+ args.append(library)
86
+ else:
87
+ args.append('-l' + library)
88
+
89
+ for library_path in libpaths:
90
+ # Not used/needed on Visual C++, and -Wl,-rpath options
91
+ # will cause grief
92
+ if pkgconfig_msvc_flags == '':
93
+ args.append('-L' + library_path)
94
+ if os.path.isabs(library_path):
95
+ if libtool:
96
+ args.append('-rpath')
97
+ args.append(library_path)
98
+ else:
99
+ args.append('-Wl,-rpath=' + library_path)
100
+
101
+ def get_external_link_flags(self, args, libraries, pkgconfig_msvc_flags):
102
+ # An "external" link is where the library to be introspected
103
+ # is installed on the system; this case is used for the scanning
104
+ # of GLib in gobject-introspection itself.
105
+
106
+ for library in libraries:
107
+ # The --library option on Windows pass in the .dll file(s) the
108
+ # .gir files refer to, so don't link to them on Visual C++
109
+ if pkgconfig_msvc_flags == '':
110
+ if library.endswith(".la"): # explicitly specified libtool library
111
+ args.append(library)
112
+ else:
113
+ args.append('-l' + library)
114
+
115
+ def resolve_windows_libs(self, libraries, options):
116
+ args = []
117
+ compiler_cmd = os.environ.get('CC', 'cc')
118
+ libsearch = []
119
+
120
+ # When we are using Visual C++...
121
+ if 'cl.exe' in compiler_cmd or 'cl' in compiler_cmd:
122
+ # The search path of the .lib's on Visual C++
123
+ # is dependent on the LIB environmental variable,
124
+ # so just query for that
125
+ is_msvc = True
126
+ libpath = os.environ.get('LIB')
127
+ libsearch = libpath.split(';')
128
+
129
+ # Use the dumpbin utility that's included in
130
+ # every Visual C++ installation to find out which
131
+ # DLL the library gets linked to
132
+ args.append('dumpbin.exe')
133
+ args.append('-symbols')
134
+
135
+ # When we are not using Visual C++ (i.e. we are using GCC)...
136
+ else:
137
+ is_msvc = False
138
+ libtool = utils.get_libtool_command(options)
139
+ if libtool:
140
+ args.append(utils.which(os.environ.get('SHELL', 'sh.exe')))
141
+ args.extend(libtool)
142
+ args.append('--mode=execute')
143
+ # FIXME: it could have prefix (i686-w64-mingw32-dlltool.exe)
144
+ args.extend(['dlltool.exe', '--identify'])
145
+ proc = subprocess.Popen([compiler_cmd, '-print-search-dirs'],
146
+ stdout=subprocess.PIPE)
147
+ o, e = proc.communicate()
148
+ for line in o.splitlines():
149
+ if line.startswith('libraries: '):
150
+ libsearch = line[len('libraries: '):].split(';')
151
+
152
+ shlibs = []
153
+ not_resolved = []
154
+ for lib in libraries:
155
+ found = False
156
+ candidates = [
157
+ 'lib%s.dll.a' % lib,
158
+ 'lib%s.a' % lib,
159
+ '%s.dll.a' % lib,
160
+ '%s.a' % lib,
161
+ '%s.lib' % lib,
162
+ ]
163
+ for l in libsearch:
164
+ if found:
165
+ break
166
+ if l.startswith('='):
167
+ l = l[1:]
168
+ for c in candidates:
169
+ if found:
170
+ break
171
+ implib = os.path.join(l, c)
172
+ if os.path.exists(implib):
173
+ proc = subprocess.Popen(args + [implib],
174
+ stdout=subprocess.PIPE)
175
+ o, e = proc.communicate()
176
+ for line in o.splitlines():
177
+ if is_msvc:
178
+ # On Visual Studio, dumpbin -symbols something.lib gives the
179
+ # filename of DLL without the '.dll' extension that something.lib
180
+ # links to, in the line that contains
181
+ # __IMPORT_DESCRIPTOR_<dll_filename_that_something.lib_links_to>
182
+
183
+ if '__IMPORT_DESCRIPTOR_' in line:
184
+ line_tokens = line.split()
185
+ for item in line_tokens:
186
+ if item.startswith('__IMPORT_DESCRIPTOR_'):
187
+ shlibs.append(item[20:] + '.dll')
188
+ found = True
189
+ break
190
+ if found:
191
+ break
192
+ else:
193
+ shlibs.append(line)
194
+ found = True
195
+ break
196
+ if not found:
197
+ not_resolved.append(lib)
198
+ if len(not_resolved) > 0:
199
+ raise SystemExit(
200
+ "ERROR: can't resolve libraries to shared libraries: " +
201
+ ", ".join(not_resolved))
202
+ return shlibs
@@ -0,0 +1,173 @@
1
+ # -*- Mode: Python -*-
2
+ # GObject-Introspection - a framework for introspecting GObject libraries
3
+ # Copyright (C) 2010 Red Hat, Inc.
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 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
17
+ # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
+ # Boston, MA 02111-1307, USA.
19
+ #
20
+
21
+ from __future__ import with_statement
22
+
23
+ from contextlib import contextmanager
24
+
25
+ from . import ast
26
+
27
+
28
+ class CCodeGenerator(object):
29
+ def __init__(self, namespace,
30
+ out_h_filename,
31
+ out_c_filename,
32
+ function_decoration=[],
33
+ include_first_header=[],
34
+ include_last_header=[],
35
+ include_first_src=[],
36
+ include_last_src=[]):
37
+ self.out_h_filename = out_h_filename
38
+ self.out_c_filename = out_c_filename
39
+ self.function_decoration = function_decoration
40
+ self.include_first_header = include_first_header
41
+ self.include_last_header = include_last_header
42
+ self.include_first_src = include_first_src
43
+ self.include_last_src = include_last_src
44
+ self._function_bodies = {}
45
+ self.namespace = namespace
46
+
47
+ def gen_symbol(self, name):
48
+ name = name.replace(' ', '_')
49
+ return '%s_%s' % (self.namespace.symbol_prefixes[0], name)
50
+
51
+ def _typecontainer_to_ctype(self, param):
52
+ if (isinstance(param, ast.Parameter)
53
+ and param.direction in (ast.PARAM_DIRECTION_OUT, ast.PARAM_DIRECTION_INOUT)):
54
+ suffix = '*'
55
+ else:
56
+ suffix = ''
57
+
58
+ if (param.type.is_equiv((ast.TYPE_STRING, ast.TYPE_FILENAME))
59
+ and param.transfer == ast.PARAM_TRANSFER_NONE):
60
+ return "const gchar*" + suffix
61
+
62
+ return param.type.ctype + suffix
63
+
64
+ def _write_prelude(self, out, func):
65
+ if self.function_decoration:
66
+ out.write("""
67
+ %s""" % " ".join(self.function_decoration))
68
+
69
+ out.write("""
70
+ %s
71
+ %s (""" % (self._typecontainer_to_ctype(func.retval), func.symbol))
72
+ l = len(func.parameters)
73
+ if func.parameters:
74
+ for i, param in enumerate(func.parameters):
75
+ ctype = self._typecontainer_to_ctype(param)
76
+ out.write('%s %s' % (ctype, param.argname))
77
+ if i < l - 1:
78
+ out.write(", ")
79
+ else:
80
+ out.write('void')
81
+ out.write(")")
82
+
83
+ def _write_prototype(self, func):
84
+ self._write_prelude(self.out_h, func)
85
+ self.out_h.write(";\n\n")
86
+
87
+ def _write_annotation_transfer(self, transfer):
88
+ self.out_c.write("(transfer %s)" % (transfer, ))
89
+
90
+ def _write_docs(self, func):
91
+ self.out_c.write("/**\n * %s:\n" % (func.symbol, ))
92
+ for param in func.parameters:
93
+ self.out_c.write(" * @%s: " % (param.argname, ))
94
+ if param.direction in (ast.PARAM_DIRECTION_OUT,
95
+ ast.PARAM_DIRECTION_INOUT):
96
+ if param.caller_allocates:
97
+ allocate_string = ' caller-allocates'
98
+ else:
99
+ allocate_string = ''
100
+ self.out_c.write("(%s%s) " % (param.direction,
101
+ allocate_string))
102
+ self._write_annotation_transfer(param.transfer)
103
+ self.out_c.write(":\n")
104
+ self.out_c.write(' *\n')
105
+ self.out_c.write(' * Undocumented.\n')
106
+ self.out_c.write(' *\n')
107
+ self.out_c.write(' * Returns: ')
108
+ self._write_annotation_transfer(func.retval.transfer)
109
+ self.out_c.write('\n */')
110
+
111
+ @contextmanager
112
+ def _function(self, func):
113
+ self._write_prototype(func)
114
+ self._write_docs(func)
115
+ self._write_prelude(self.out_c, func)
116
+ self.out_c.write("\n{\n")
117
+ yield
118
+ self.out_c.write("}\n\n")
119
+
120
+ def _codegen_start(self):
121
+ warning = '/* GENERATED BY testcodegen.py; DO NOT EDIT */\n\n'
122
+ self.out_h.write(warning)
123
+ nsupper = self.namespace.name.upper()
124
+
125
+ for header in self.include_first_header:
126
+ self.out_h.write("""#include "%s"\n""" % header)
127
+
128
+ self.out_h.write("""
129
+ #ifndef __%s_H__
130
+ #define __%s_H__
131
+
132
+ #include <glib-object.h>
133
+
134
+ """ % (nsupper, nsupper))
135
+
136
+ for header in self.include_last_header:
137
+ self.out_h.write("""#include "%s"\n""" % header)
138
+
139
+ self.out_c.write(warning)
140
+
141
+ for header in self.include_first_src:
142
+ self.out_c.write("""#include "%s"\n""" % header)
143
+
144
+ self.out_c.write("""#include "%s"\n\n""" % (self.out_h_filename, ))
145
+
146
+ for header in self.include_last_src:
147
+ self.out_c.write("""#include "%s"\n""" % header)
148
+
149
+ def _codegen_end(self):
150
+ self.out_h.write("""#endif\n""")
151
+
152
+ self.out_h.close()
153
+ self.out_c.close()
154
+
155
+ def set_function_body(self, node, body):
156
+ assert isinstance(node, ast.Function)
157
+ self._function_bodies[node] = body
158
+
159
+ def codegen(self):
160
+ self.out_h = open(self.out_h_filename, 'w')
161
+ self.out_c = open(self.out_c_filename, 'w')
162
+
163
+ self._codegen_start()
164
+
165
+ for node in self.namespace.itervalues():
166
+ if isinstance(node, ast.Function):
167
+ with self._function(node):
168
+ body = self._function_bodies.get(node)
169
+ if not body:
170
+ body = ''
171
+ self.out_c.write(body)
172
+
173
+ self._codegen_end()