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,23 @@
1
+ # -*- Mode: Python -*-
2
+ # GObject-Introspection - a framework for introspecting GObject libraries
3
+ # Copyright (C) 2013 Dieter Verfaillie <dieterv@optionexplicit.be>
4
+ #
5
+ # This program is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU General Public License
7
+ # as published by the Free Software Foundation; either version 2
8
+ # of the License, or (at your option) any later version.
9
+ #
10
+ # This program 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
13
+ # GNU General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with this program; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18
+ # 02110-1301, USA.
19
+ #
20
+
21
+
22
+ from .counter import Counter
23
+ from .ordereddict import OrderedDict
@@ -0,0 +1,305 @@
1
+ # -*- Mode: Python -*-
2
+ # GObject-Introspection - a framework for introspecting GObject libraries
3
+ # Copyright (C) 2013 Dieter Verfaillie <dieterv@optionexplicit.be>
4
+ #
5
+ # This program is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU General Public License
7
+ # as published by the Free Software Foundation; either version 2
8
+ # of the License, or (at your option) any later version.
9
+ #
10
+ # This program 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
13
+ # GNU General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with this program; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18
+ # 02110-1301, USA.
19
+ #
20
+
21
+
22
+ from __future__ import absolute_import
23
+
24
+
25
+ try:
26
+ from collections import Counter
27
+ except ImportError:
28
+ # collections.Counter for Python 2.6, backported from
29
+ # http://hg.python.org/cpython/file/d047928ae3f6/Lib/collections/__init__.py#l402
30
+
31
+ from operator import itemgetter
32
+ from heapq import nlargest
33
+ from itertools import repeat, ifilter
34
+
35
+ class Counter(dict):
36
+ '''Dict subclass for counting hashable items. Sometimes called a bag
37
+ or multiset. Elements are stored as dictionary keys and their counts
38
+ are stored as dictionary values.
39
+
40
+ >>> c = Counter('abcdeabcdabcaba') # count elements from a string
41
+
42
+ >>> c.most_common(3) # three most common elements
43
+ [('a', 5), ('b', 4), ('c', 3)]
44
+ >>> sorted(c) # list all unique elements
45
+ ['a', 'b', 'c', 'd', 'e']
46
+ >>> ''.join(sorted(c.elements())) # list elements with repetitions
47
+ 'aaaaabbbbcccdde'
48
+ >>> sum(c.values()) # total of all counts
49
+ 15
50
+
51
+ >>> c['a'] # count of letter 'a'
52
+ 5
53
+ >>> for elem in 'shazam': # update counts from an iterable
54
+ ... c[elem] += 1 # by adding 1 to each element's count
55
+ >>> c['a'] # now there are seven 'a'
56
+ 7
57
+ >>> del c['b'] # remove all 'b'
58
+ >>> c['b'] # now there are zero 'b'
59
+ 0
60
+
61
+ >>> d = Counter('simsalabim') # make another counter
62
+ >>> c.update(d) # add in the second counter
63
+ >>> c['a'] # now there are nine 'a'
64
+ 9
65
+
66
+ >>> c.clear() # empty the counter
67
+ >>> c
68
+ Counter()
69
+
70
+ Note: If a count is set to zero or reduced to zero, it will remain
71
+ in the counter until the entry is deleted or the counter is cleared:
72
+
73
+ >>> c = Counter('aaabbc')
74
+ >>> c['b'] -= 2 # reduce the count of 'b' by two
75
+ >>> c.most_common() # 'b' is still in, but its count is zero
76
+ [('a', 3), ('c', 1), ('b', 0)]
77
+
78
+ '''
79
+ # References:
80
+ # http://en.wikipedia.org/wiki/Multiset
81
+ # http://www.gnu.org/software/smalltalk/manual-base/html_node/Bag.html
82
+ # http://www.demo2s.com/Tutorial/Cpp/0380__set-multiset/Catalog0380__set-multiset.htm
83
+ # http://code.activestate.com/recipes/259174/
84
+ # Knuth, TAOCP Vol. II section 4.6.3
85
+
86
+ def __init__(self, iterable=None, **kwds):
87
+ '''Create a new, empty Counter object. And if given, count elements
88
+ from an input iterable. Or, initialize the count from another mapping
89
+ of elements to their counts.
90
+
91
+ >>> c = Counter() # a new, empty counter
92
+ >>> c = Counter('gallahad') # a new counter from an iterable
93
+ >>> c = Counter({'a': 4, 'b': 2}) # a new counter from a mapping
94
+ >>> c = Counter(a=4, b=2) # a new counter from keyword args
95
+
96
+ '''
97
+ self.update(iterable, **kwds)
98
+
99
+ def __missing__(self, key):
100
+ 'The count of elements not in the Counter is zero.'
101
+ # Needed so that self[missing_item] does not raise KeyError
102
+ return 0
103
+
104
+ def most_common(self, n=None):
105
+ '''List the n most common elements and their counts from the most
106
+ common to the least. If n is None, then list all element counts.
107
+
108
+ >>> Counter('abcdeabcdabcaba').most_common(3)
109
+ [('a', 5), ('b', 4), ('c', 3)]
110
+
111
+ '''
112
+ # Emulate Bag.sortedByCount from Smalltalk
113
+ if n is None:
114
+ return sorted(self.iteritems(), key=itemgetter(1), reverse=True)
115
+ return nlargest(n, self.iteritems(), key=itemgetter(1))
116
+
117
+ def elements(self):
118
+ '''Iterator over elements repeating each as many times as its count.
119
+
120
+ >>> c = Counter('ABCABC')
121
+ >>> sorted(c.elements())
122
+ ['A', 'A', 'B', 'B', 'C', 'C']
123
+
124
+ # Knuth's example for prime factors of 1836: 2**2 * 3**3 * 17**1
125
+ >>> prime_factors = Counter({2: 2, 3: 3, 17: 1})
126
+ >>> product = 1
127
+ >>> for factor in prime_factors.elements(): # loop over factors
128
+ ... product *= factor # and multiply them
129
+ >>> product
130
+ 1836
131
+
132
+ Note, if an element's count has been set to zero or is a negative
133
+ number, elements() will ignore it.
134
+
135
+ '''
136
+ # Emulate Bag.do from Smalltalk and Multiset.begin from C++.
137
+ for elem, count in self.iteritems():
138
+ for _ in repeat(None, count):
139
+ yield elem
140
+
141
+ # Override dict methods where necessary
142
+
143
+ @classmethod
144
+ def fromkeys(cls, iterable, v=None):
145
+ # There is no equivalent method for counters because setting v=1
146
+ # means that no element can have a count greater than one.
147
+ raise NotImplementedError(
148
+ 'Counter.fromkeys() is undefined. Use Counter(iterable) instead.')
149
+
150
+ def update(self, iterable=None, **kwds):
151
+ '''Like dict.update() but add counts instead of replacing them.
152
+
153
+ Source can be an iterable, a dictionary, or another Counter instance.
154
+
155
+ >>> c = Counter('which')
156
+ >>> c.update('witch') # add elements from another iterable
157
+ >>> d = Counter('watch')
158
+ >>> c.update(d) # add elements from another counter
159
+ >>> c['h'] # four 'h' in which, witch, and watch
160
+ 4
161
+
162
+ '''
163
+ # The regular dict.update() operation makes no sense here because the
164
+ # replace behavior results in the some of original untouched counts
165
+ # being mixed-in with all of the other counts for a mismash that
166
+ # doesn't have a straight-forward interpretation in most counting
167
+ # contexts. Instead, we implement straight-addition. Both the inputs
168
+ # and outputs are allowed to contain zero and negative counts.
169
+
170
+ if iterable is not None:
171
+ if hasattr(iterable, 'iteritems'):
172
+ if self:
173
+ self_get = self.get
174
+ for elem, count in iterable.iteritems():
175
+ self[elem] = self_get(elem, 0) + count
176
+ else:
177
+ dict.update(self, iterable) # fast path when counter is empty
178
+ else:
179
+ self_get = self.get
180
+ for elem in iterable:
181
+ self[elem] = self_get(elem, 0) + 1
182
+ if kwds:
183
+ self.update(kwds)
184
+
185
+ def subtract(self, iterable=None, **kwds):
186
+ '''Like dict.update() but subtracts counts instead of replacing them.
187
+ Counts can be reduced below zero. Both the inputs and outputs are
188
+ allowed to contain zero and negative counts.
189
+
190
+ Source can be an iterable, a dictionary, or another Counter instance.
191
+
192
+ >>> c = Counter('which')
193
+ >>> c.subtract('witch') # subtract elements from another iterable
194
+ >>> c.subtract(Counter('watch')) # subtract elements from another counter
195
+ >>> c['h'] # 2 in which, minus 1 in witch, minus 1 in watch
196
+ 0
197
+ >>> c['w'] # 1 in which, minus 1 in witch, minus 1 in watch
198
+ -1
199
+
200
+ '''
201
+ if hasattr(iterable, 'iteritems'):
202
+ for elem, count in iterable.iteritems():
203
+ self[elem] -= count
204
+ else:
205
+ for elem in iterable:
206
+ self[elem] -= 1
207
+
208
+ def copy(self):
209
+ 'Return a shallow copy.'
210
+ return self.__class__(self)
211
+
212
+ def __reduce__(self):
213
+ return self.__class__, (dict(self), )
214
+
215
+ def __delitem__(self, elem):
216
+ 'Like dict.__delitem__() but does not raise KeyError for missing values.'
217
+ if elem in self:
218
+ dict.__delitem__(self, elem)
219
+
220
+ def __repr__(self):
221
+ if not self:
222
+ return '%s()' % self.__class__.__name__
223
+ items = ', '.join(map('%r: %r'.__mod__, self.most_common()))
224
+ return '%s({%s})' % (self.__class__.__name__, items)
225
+
226
+ # Multiset-style mathematical operations discussed in:
227
+ # Knuth TAOCP Volume II section 4.6.3 exercise 19
228
+ # and at http://en.wikipedia.org/wiki/Multiset
229
+ #
230
+ # Outputs guaranteed to only include positive counts.
231
+ #
232
+ # To strip negative and zero counts, add-in an empty counter:
233
+ # c += Counter()
234
+
235
+ def __add__(self, other):
236
+ '''Add counts from two counters.
237
+
238
+ >>> Counter('abbb') + Counter('bcc')
239
+ Counter({'b': 4, 'c': 2, 'a': 1})
240
+
241
+ '''
242
+ if not isinstance(other, Counter):
243
+ return NotImplemented
244
+ result = Counter()
245
+ for elem in set(self) | set(other):
246
+ newcount = self[elem] + other[elem]
247
+ if newcount > 0:
248
+ result[elem] = newcount
249
+ return result
250
+
251
+ def __sub__(self, other):
252
+ ''' Subtract count, but keep only results with positive counts.
253
+
254
+ >>> Counter('abbbc') - Counter('bccd')
255
+ Counter({'b': 2, 'a': 1})
256
+
257
+ '''
258
+ if not isinstance(other, Counter):
259
+ return NotImplemented
260
+ result = Counter()
261
+ for elem in set(self) | set(other):
262
+ newcount = self[elem] - other[elem]
263
+ if newcount > 0:
264
+ result[elem] = newcount
265
+ return result
266
+
267
+ def __or__(self, other):
268
+ '''Union is the maximum of value in either of the input counters.
269
+
270
+ >>> Counter('abbb') | Counter('bcc')
271
+ Counter({'b': 3, 'c': 2, 'a': 1})
272
+
273
+ '''
274
+ if not isinstance(other, Counter):
275
+ return NotImplemented
276
+ _max = max
277
+ result = Counter()
278
+ for elem in set(self) | set(other):
279
+ newcount = _max(self[elem], other[elem])
280
+ if newcount > 0:
281
+ result[elem] = newcount
282
+ return result
283
+
284
+ def __and__(self, other):
285
+ ''' Intersection is the minimum of corresponding counts.
286
+
287
+ >>> Counter('abbb') & Counter('bcc')
288
+ Counter({'b': 1})
289
+
290
+ '''
291
+ if not isinstance(other, Counter):
292
+ return NotImplemented
293
+ _min = min
294
+ result = Counter()
295
+ if len(self) < len(other):
296
+ self, other = other, self
297
+ for elem in ifilter(self.__contains__, other):
298
+ newcount = _min(self[elem], other[elem])
299
+ if newcount > 0:
300
+ result[elem] = newcount
301
+ return result
302
+
303
+ if __name__ == '__main__':
304
+ import doctest
305
+ print(doctest.testmod())
@@ -0,0 +1,120 @@
1
+ # -*- Mode: Python -*-
2
+ # GObject-Introspection - a framework for introspecting GObject libraries
3
+ # Copyright (C) 2008 Johan Dahlin
4
+ # Copyright (C) 2013 Dieter Verfaillie <dieterv@optionexplicit.be>
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
+ # Borrowed from:
23
+ # http://hg.sqlalchemy.org/sqlalchemy/raw-file/77e2264283d4/lib/sqlalchemy/util/_collections.py
24
+ # http://hg.sqlalchemy.org/sqlalchemy/raw-file/77e2264283d4/AUTHORS
25
+ #
26
+ # util/_collections.py
27
+ # Copyright (C) 2005-2012 the SQLAlchemy authors and contributors <see AUTHORS file>
28
+ #
29
+ # This module is part of SQLAlchemy and is released under
30
+ # the MIT License: http://www.opensource.org/licenses/mit-license.php
31
+
32
+
33
+ class OrderedDict(dict):
34
+ """A dict that returns keys/values/items in the order they were added."""
35
+
36
+ def __init__(self, ____sequence=None, **kwargs):
37
+ self._list = []
38
+ if ____sequence is None:
39
+ if kwargs:
40
+ self.update(**kwargs)
41
+ else:
42
+ self.update(____sequence, **kwargs)
43
+
44
+ def clear(self):
45
+ self._list = []
46
+ dict.clear(self)
47
+
48
+ def copy(self):
49
+ return self.__copy__()
50
+
51
+ def __copy__(self):
52
+ return OrderedDict(self)
53
+
54
+ def sort(self, *arg, **kw):
55
+ self._list.sort(*arg, **kw)
56
+
57
+ def update(self, ____sequence=None, **kwargs):
58
+ if ____sequence is not None:
59
+ if hasattr(____sequence, 'keys'):
60
+ for key in ____sequence.keys():
61
+ self.__setitem__(key, ____sequence[key])
62
+ else:
63
+ for key, value in ____sequence:
64
+ self[key] = value
65
+ if kwargs:
66
+ self.update(kwargs)
67
+
68
+ def setdefault(self, key, value):
69
+ if key not in self:
70
+ self.__setitem__(key, value)
71
+ return value
72
+ else:
73
+ return self.__getitem__(key)
74
+
75
+ def __iter__(self):
76
+ return iter(self._list)
77
+
78
+ def values(self):
79
+ return [self[key] for key in self._list]
80
+
81
+ def itervalues(self):
82
+ return iter([self[key] for key in self._list])
83
+
84
+ def keys(self):
85
+ return list(self._list)
86
+
87
+ def iterkeys(self):
88
+ return iter(self.keys())
89
+
90
+ def items(self):
91
+ return [(key, self[key]) for key in self.keys()]
92
+
93
+ def iteritems(self):
94
+ return iter(self.items())
95
+
96
+ def __setitem__(self, key, obj):
97
+ if key not in self:
98
+ try:
99
+ self._list.append(key)
100
+ except AttributeError:
101
+ # work around Python pickle loads() with
102
+ # dict subclass (seems to ignore __setstate__?)
103
+ self._list = [key]
104
+ dict.__setitem__(self, key, obj)
105
+
106
+ def __delitem__(self, key):
107
+ dict.__delitem__(self, key)
108
+ self._list.remove(key)
109
+
110
+ def pop(self, key, *default):
111
+ present = key in self
112
+ value = dict.pop(self, key, *default)
113
+ if present:
114
+ self._list.remove(key)
115
+ return value
116
+
117
+ def popitem(self):
118
+ item = dict.popitem(self)
119
+ self._list.remove(item[0])
120
+ return item