gobject-introspection 2.2.5-x86-mingw32 → 3.0.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +3 -3
  3. data/ext/gobject-introspection/extconf.rb +1 -1
  4. data/ext/gobject-introspection/rb-gi-argument.c +2275 -708
  5. data/ext/gobject-introspection/rb-gi-constant-info.c +1 -1
  6. data/ext/gobject-introspection/rb-gi-constructor-info.c +2 -2
  7. data/ext/gobject-introspection/rb-gi-conversions.h +40 -36
  8. data/ext/gobject-introspection/rb-gi-field-info.c +32 -6
  9. data/ext/gobject-introspection/rb-gi-function-info.c +98 -63
  10. data/ext/gobject-introspection/rb-gi-loader.c +33 -1
  11. data/ext/gobject-introspection/rb-gi-method-info.c +3 -6
  12. data/ext/gobject-introspection/rb-gi-private.h +2 -1
  13. data/ext/gobject-introspection/rb-gi-repository.c +29 -29
  14. data/lib/2.0/gobject_introspection.so +0 -0
  15. data/lib/2.1/gobject_introspection.so +0 -0
  16. data/lib/2.2/gobject_introspection.so +0 -0
  17. data/lib/gobject-introspection/arg-info.rb +27 -0
  18. data/lib/gobject-introspection/callable-info.rb +3 -1
  19. data/lib/gobject-introspection/loader.rb +160 -31
  20. data/lib/gobject-introspection.rb +1 -0
  21. data/vendor/local/bin/g-ir-compiler.exe +0 -0
  22. data/vendor/local/bin/g-ir-generate.exe +0 -0
  23. data/vendor/local/bin/libgirepository-1.0-1.dll +0 -0
  24. data/vendor/local/include/gobject-introspection-1.0/girepository.h +4 -0
  25. data/vendor/local/include/gobject-introspection-1.0/giversionmacros.h +15 -1
  26. data/vendor/local/lib/girepository-1.0/GIRepository-2.0.typelib +0 -0
  27. data/vendor/local/lib/girepository-1.0/GLib-2.0.typelib +0 -0
  28. data/vendor/local/lib/girepository-1.0/GObject-2.0.typelib +0 -0
  29. data/vendor/local/lib/girepository-1.0/Gio-2.0.typelib +0 -0
  30. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyc +0 -0
  31. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyo +0 -0
  32. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyc +0 -0
  33. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyo +0 -0
  34. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.py +6 -1
  35. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyc +0 -0
  36. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyo +0 -0
  37. data/vendor/local/lib/gobject-introspection/giscanner/ast.py +3 -0
  38. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyc +0 -0
  39. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyo +0 -0
  40. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyc +0 -0
  41. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyo +0 -0
  42. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyc +0 -0
  43. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyo +0 -0
  44. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyc +0 -0
  45. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyo +0 -0
  46. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyc +0 -0
  47. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyo +0 -0
  48. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyc +0 -0
  49. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyo +0 -0
  50. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyc +0 -0
  51. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyo +0 -0
  52. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyc +0 -0
  53. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyo +0 -0
  54. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyc +0 -0
  55. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyo +0 -0
  56. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyc +0 -0
  57. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyo +0 -0
  58. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyc +0 -0
  59. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyo +0 -0
  60. data/vendor/local/lib/gobject-introspection/giscanner/girparser.py +19 -1
  61. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyc +0 -0
  62. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyo +0 -0
  63. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyc +0 -0
  64. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyo +0 -0
  65. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyc +0 -0
  66. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyo +0 -0
  67. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyc +0 -0
  68. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyo +0 -0
  69. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.py +7 -3
  70. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyc +0 -0
  71. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyo +0 -0
  72. data/vendor/local/lib/gobject-introspection/giscanner/message.pyc +0 -0
  73. data/vendor/local/lib/gobject-introspection/giscanner/message.pyo +0 -0
  74. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.py +1 -1
  75. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyc +0 -0
  76. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyo +0 -0
  77. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyc +0 -0
  78. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyo +0 -0
  79. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyc +0 -0
  80. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyo +0 -0
  81. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.py +8 -0
  82. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyc +0 -0
  83. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyo +0 -0
  84. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyc +0 -0
  85. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyo +0 -0
  86. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyc +0 -0
  87. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyo +0 -0
  88. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyc +0 -0
  89. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyo +0 -0
  90. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyc +0 -0
  91. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyo +0 -0
  92. data/vendor/local/lib/libgirepository-1.0.a +0 -0
  93. data/vendor/local/lib/libgirepository-1.0.dll.a +0 -0
  94. data/vendor/local/lib/libgirepository-1.0.la +3 -3
  95. data/vendor/local/lib/pkgconfig/gobject-introspection-1.0.pc +1 -1
  96. data/vendor/local/lib/pkgconfig/gobject-introspection-no-export-1.0.pc +1 -1
  97. data/vendor/local/share/gir-1.0/GIRepository-2.0.gir +44 -7
  98. data/vendor/local/share/gir-1.0/GLib-2.0.gir +518 -131
  99. data/vendor/local/share/gir-1.0/GObject-2.0.gir +1248 -475
  100. data/vendor/local/share/gir-1.0/Gio-2.0.gir +1849 -80
  101. data/vendor/local/share/gobject-introspection-1.0/tests/annotation.c +1 -1
  102. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.c +19 -16
  103. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.h +1 -1
  104. data/vendor/local/share/gobject-introspection-1.0/tests/regress.c +3 -0
  105. data/vendor/local/share/gobject-introspection-1.0/tests/regress.h +2 -2
  106. data/vendor/local/share/man/man1/g-ir-compiler.1 +1 -2
  107. data/vendor/local/share/man/man1/g-ir-generate.1 +2 -3
  108. metadata +5 -4
@@ -24,6 +24,7 @@ from xml.etree.cElementTree import parse
24
24
 
25
25
  from . import ast
26
26
  from .girwriter import COMPATIBLE_GIR_VERSION
27
+ from .collections import OrderedDict
27
28
 
28
29
  CORE_NS = "http://www.gtk.org/introspection/core/1.0"
29
30
  C_NS = "http://www.gtk.org/introspection/c/1.0"
@@ -165,9 +166,18 @@ class GIRParser(object):
165
166
 
166
167
  def _parse_generic_attribs(self, node, obj):
167
168
  assert isinstance(obj, ast.Annotated)
169
+ skip = node.attrib.get('skip')
170
+ if skip:
171
+ try:
172
+ obj.skip = int(skip) > 0
173
+ except ValueError:
174
+ obj.skip = False
168
175
  introspectable = node.attrib.get('introspectable')
169
176
  if introspectable:
170
- obj.introspectable = int(introspectable) > 0
177
+ try:
178
+ obj.introspectable = int(introspectable) > 0
179
+ except ValueError:
180
+ obj.introspectable = False
171
181
  if self._types_only:
172
182
  return
173
183
  doc = node.find(_corens('doc'))
@@ -195,6 +205,14 @@ class GIRParser(object):
195
205
  if stability_doc is not None:
196
206
  if stability_doc.text:
197
207
  obj.stability_doc = stability_doc.text
208
+ attributes = node.findall(_corens('attribute'))
209
+ if attributes:
210
+ attributes_ = OrderedDict()
211
+ for attribute in attributes:
212
+ name = attribute.attrib.get('name')
213
+ value = attribute.attrib.get('value')
214
+ attributes_[name] = value
215
+ obj.attributes = attributes_
198
216
 
199
217
  def _parse_object_interface(self, node):
200
218
  parent = node.attrib.get('parent')
@@ -386,10 +386,14 @@ class MainTransformer(object):
386
386
  array_options = annotations.get(ANN_ARRAY)
387
387
  container_type = ast.Array(array_type, element_type_node, ctype=node.type.ctype,
388
388
  is_const=node.type.is_const)
389
- if OPT_ARRAY_ZERO_TERMINATED in array_options:
390
- container_type.zeroterminated = array_options.get(OPT_ARRAY_ZERO_TERMINATED) == '1'
391
- else:
389
+ if array_options.get(OPT_ARRAY_ZERO_TERMINATED, '0') == '0':
392
390
  container_type.zeroterminated = False
391
+ else:
392
+ if (OPT_ARRAY_ZERO_TERMINATED in array_options
393
+ or array_options.get(OPT_ARRAY_ZERO_TERMINATED) == '1'):
394
+ container_type.zeroterminated = True
395
+ else:
396
+ container_type.zeroterminated = False
393
397
 
394
398
  length = array_options.get(OPT_ARRAY_LENGTH)
395
399
  if length:
@@ -280,7 +280,7 @@ def process_options(output, allowed_flags):
280
280
 
281
281
 
282
282
  def process_packages(options, packages):
283
- args = ['pkg-config', '--cflags']
283
+ args = [os.environ.get('PKG_CONFIG', 'pkg-config'), '--cflags']
284
284
  args.extend(packages)
285
285
  output = subprocess.Popen(args,
286
286
  stdout=subprocess.PIPE).communicate()[0]
@@ -294,6 +294,14 @@ class SourceScanner(object):
294
294
  cpp_args += ['-E', '-C', '-I.', '-']
295
295
  cpp_args += self._cpp_options
296
296
 
297
+ # We expect the preprocessor to remove macros. If debugging is turned
298
+ # up high enough that won't happen, so strip these out. Bug #720504
299
+ for flag in ['-g3', '-ggdb3', '-gstabs3', '-gcoff3', '-gxcoff3', '-gvms3']:
300
+ try:
301
+ cpp_args.remove(flag)
302
+ except ValueError:
303
+ pass
304
+
297
305
  proc = subprocess.Popen(cpp_args,
298
306
  stdin=subprocess.PIPE,
299
307
  stdout=subprocess.PIPE)
Binary file
@@ -1,5 +1,5 @@
1
1
  # libgirepository-1.0.la - a libtool library file
2
- # Generated by libtool (GNU libtool) 2.4.2
2
+ # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.11
3
3
  #
4
4
  # Please DO NOT delete this file!
5
5
  # It is necessary for linking the library.
@@ -14,10 +14,10 @@ library_names='libgirepository-1.0.dll.a'
14
14
  old_library='libgirepository-1.0.a'
15
15
 
16
16
  # Linker flags that can not go in dependency_libs.
17
- inherited_linker_flags=''
17
+ inherited_linker_flags=' -pthread'
18
18
 
19
19
  # Libraries that this one depends upon.
20
- dependency_libs=' -R/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/rcairo.win32/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgio-2.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgmodule-2.0.la -ldnsapi -liphlpapi -lz /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgobject-2.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib/libffi.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libglib-2.0.la -lws2_32 -lole32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libintl.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libiconv.la -lpthread /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib/libffi.la'
20
+ dependency_libs=' -R/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/rcairo.win32/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgio-2.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgmodule-2.0.la -ldnsapi -liphlpapi -lz /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgobject-2.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib/libffi.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libglib-2.0.la -lws2_32 -lole32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libintl.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libiconv.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib/libffi.la'
21
21
 
22
22
  # Names of additional weak libraries provided by this library
23
23
  weak_library_names=''
@@ -23,4 +23,4 @@ Libs.private:
23
23
 
24
24
  Name: gobject-introspection
25
25
  Description: GObject Introspection
26
- Version: 1.42.0
26
+ Version: 1.44.0
@@ -20,4 +20,4 @@ Libs.private:
20
20
 
21
21
  Name: gobject-introspection
22
22
  Description: GObject Introspection
23
- Version: 1.42.0
23
+ Version: 1.44.0
@@ -882,9 +882,45 @@ such as g_irepository_require() before calling this function.</doc>
882
882
  &lt;code&gt;namespace-version&lt;/code&gt;.
883
883
 
884
884
  Note: @namespace_ must have already been loaded using a function
885
- such as g_irepository_require() before calling this function.</doc>
885
+ such as g_irepository_require() before calling this function.
886
+
887
+ To get only the immediate dependencies for @namespace_, use
888
+ g_irepository_get_immediate_dependencies().</doc>
889
+ <return-value transfer-ownership="full">
890
+ <doc xml:space="preserve">Zero-terminated string array of all versioned
891
+ dependencies</doc>
892
+ <array c:type="gchar**">
893
+ <type name="utf8"/>
894
+ </array>
895
+ </return-value>
896
+ <parameters>
897
+ <instance-parameter name="repository"
898
+ transfer-ownership="none"
899
+ nullable="1"
900
+ allow-none="1">
901
+ <doc xml:space="preserve">A #GIRepository or %NULL for the singleton
902
+ process-global default #GIRepository</doc>
903
+ <type name="Repository" c:type="GIRepository*"/>
904
+ </instance-parameter>
905
+ <parameter name="namespace_" transfer-ownership="none">
906
+ <doc xml:space="preserve">Namespace of interest</doc>
907
+ <type name="utf8" c:type="const gchar*"/>
908
+ </parameter>
909
+ </parameters>
910
+ </method>
911
+ <method name="get_immediate_dependencies"
912
+ c:identifier="g_irepository_get_immediate_dependencies"
913
+ version="1.44">
914
+ <doc xml:space="preserve">Return an array of the immediate versioned dependencies for @namespace_.
915
+ Returned strings are of the form &lt;code&gt;namespace-version&lt;/code&gt;.
916
+
917
+ Note: @namespace_ must have already been loaded using a function
918
+ such as g_irepository_require() before calling this function.
919
+
920
+ To get the transitive closure of dependencies for @namespace_, use
921
+ g_irepository_get_dependencies().</doc>
886
922
  <return-value transfer-ownership="full">
887
- <doc xml:space="preserve">Zero-terminated string array of versioned
923
+ <doc xml:space="preserve">Zero-terminated string array of immediate versioned
888
924
  dependencies</doc>
889
925
  <array c:type="gchar**">
890
926
  <type name="utf8"/>
@@ -979,15 +1015,16 @@ already been loaded before calling this function.</doc>
979
1015
  </method>
980
1016
  <method name="get_shared_library"
981
1017
  c:identifier="g_irepository_get_shared_library">
982
- <doc xml:space="preserve">This function returns the full path to the shared C library
983
- associated with the given namespace @namespace_. There may be no
984
- shared library path associated, in which case this function will
985
- return %NULL.
1018
+ <doc xml:space="preserve">This function returns a comma-separated list of paths to the
1019
+ shared C libraries associated with the given namespace @namespace_.
1020
+ There may be no shared library path associated, in which case this
1021
+ function will return %NULL.
986
1022
 
987
1023
  Note: The namespace must have already been loaded using a function
988
1024
  such as g_irepository_require() before calling this function.</doc>
989
1025
  <return-value transfer-ownership="none">
990
- <doc xml:space="preserve">Full path to shared library, or %NULL if none associated</doc>
1026
+ <doc xml:space="preserve">Comma-separated list of paths to shared libraries,
1027
+ or %NULL if none are associated</doc>
991
1028
  <type name="utf8" c:type="const gchar*"/>
992
1029
  </return-value>
993
1030
  <parameters>