gobject-introspection 2.2.4-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +129 -0
- data/ext/gobject-introspection/depend +10 -0
- data/ext/gobject-introspection/extconf.rb +94 -0
- data/ext/gobject-introspection/gobject_introspection.def +5 -0
- data/ext/gobject-introspection/rb-gi-arg-info.c +151 -0
- data/ext/gobject-introspection/rb-gi-argument.c +2053 -0
- data/ext/gobject-introspection/rb-gi-base-info.c +218 -0
- data/ext/gobject-introspection/rb-gi-boxed-info.c +48 -0
- data/ext/gobject-introspection/rb-gi-callable-info.c +104 -0
- data/ext/gobject-introspection/rb-gi-callback-info.c +48 -0
- data/ext/gobject-introspection/rb-gi-constant-info.c +77 -0
- data/ext/gobject-introspection/rb-gi-constructor-info.c +133 -0
- data/ext/gobject-introspection/rb-gi-conversions.h +145 -0
- data/ext/gobject-introspection/rb-gi-enum-info.c +155 -0
- data/ext/gobject-introspection/rb-gi-field-info.c +153 -0
- data/ext/gobject-introspection/rb-gi-flags-info.c +48 -0
- data/ext/gobject-introspection/rb-gi-function-info.c +841 -0
- data/ext/gobject-introspection/rb-gi-interface-info.c +222 -0
- data/ext/gobject-introspection/rb-gi-loader.c +224 -0
- data/ext/gobject-introspection/rb-gi-method-info.c +83 -0
- data/ext/gobject-introspection/rb-gi-object-info.c +345 -0
- data/ext/gobject-introspection/rb-gi-private.h +105 -0
- data/ext/gobject-introspection/rb-gi-property-info.c +77 -0
- data/ext/gobject-introspection/rb-gi-registered-type-info.c +86 -0
- data/ext/gobject-introspection/rb-gi-repository.c +246 -0
- data/ext/gobject-introspection/rb-gi-signal-info.c +77 -0
- data/ext/gobject-introspection/rb-gi-struct-info.c +202 -0
- data/ext/gobject-introspection/rb-gi-type-info.c +143 -0
- data/ext/gobject-introspection/rb-gi-type-tag.c +43 -0
- data/ext/gobject-introspection/rb-gi-types.h +71 -0
- data/ext/gobject-introspection/rb-gi-union-info.c +206 -0
- data/ext/gobject-introspection/rb-gi-unresolved-info.c +48 -0
- data/ext/gobject-introspection/rb-gi-value-info.c +57 -0
- data/ext/gobject-introspection/rb-gi-vfunc-info.c +91 -0
- data/ext/gobject-introspection/rb-gobject-introspection.c +44 -0
- data/ext/gobject-introspection/rb-gobject-introspection.h +60 -0
- data/extconf.rb +71 -0
- data/lib/2.0/gobject_introspection.so +0 -0
- data/lib/2.1/gobject_introspection.so +0 -0
- data/lib/2.2/gobject_introspection.so +0 -0
- data/lib/gobject-introspection.rb +53 -0
- data/lib/gobject-introspection/boxed-info.rb +28 -0
- data/lib/gobject-introspection/callable-info.rb +100 -0
- data/lib/gobject-introspection/collection-reader.rb +34 -0
- data/lib/gobject-introspection/interface-info.rb +32 -0
- data/lib/gobject-introspection/loader.rb +465 -0
- data/lib/gobject-introspection/object-info.rb +33 -0
- data/lib/gobject-introspection/repository.rb +32 -0
- data/lib/gobject-introspection/struct-info.rb +28 -0
- data/lib/gobject-introspection/union-info.rb +28 -0
- data/test/gobject-introspection-test-utils.rb +26 -0
- data/test/run-test.rb +45 -0
- data/test/test-arg-info.rb +68 -0
- data/test/test-base-info.rb +31 -0
- data/test/test-boxed-info.rb +21 -0
- data/test/test-callable-info.rb +49 -0
- data/test/test-callback-info.rb +29 -0
- data/test/test-constant-info.rb +24 -0
- data/test/test-enum-info.rb +61 -0
- data/test/test-field-type.rb +42 -0
- data/test/test-flags-info.rb +27 -0
- data/test/test-function-info.rb +39 -0
- data/test/test-interface-info.rb +97 -0
- data/test/test-loader.rb +30 -0
- data/test/test-object-info.rb +131 -0
- data/test/test-property-info.rb +38 -0
- data/test/test-registered-type-info.rb +35 -0
- data/test/test-repository.rb +62 -0
- data/test/test-signal-info.rb +40 -0
- data/test/test-struct-info.rb +57 -0
- data/test/test-type-info.rb +62 -0
- data/test/test-type-tag.rb +29 -0
- data/test/test-union-info.rb +21 -0
- data/test/test-value-info.rb +28 -0
- data/test/test-vfunc-info.rb +42 -0
- data/vendor/local/bin/g-ir-compiler.exe +0 -0
- data/vendor/local/bin/g-ir-generate.exe +0 -0
- data/vendor/local/bin/libgirepository-1.0-1.dll +0 -0
- data/vendor/local/include/gobject-introspection-1.0/giarginfo.h +82 -0
- data/vendor/local/include/gobject-introspection-1.0/gibaseinfo.h +120 -0
- data/vendor/local/include/gobject-introspection-1.0/gicallableinfo.h +110 -0
- data/vendor/local/include/gobject-introspection-1.0/giconstantinfo.h +58 -0
- data/vendor/local/include/gobject-introspection-1.0/gienuminfo.h +82 -0
- data/vendor/local/include/gobject-introspection-1.0/gifieldinfo.h +71 -0
- data/vendor/local/include/gobject-introspection-1.0/gifunctioninfo.h +100 -0
- data/vendor/local/include/gobject-introspection-1.0/giinterfaceinfo.h +106 -0
- data/vendor/local/include/gobject-introspection-1.0/giobjectinfo.h +207 -0
- data/vendor/local/include/gobject-introspection-1.0/gipropertyinfo.h +56 -0
- data/vendor/local/include/gobject-introspection-1.0/giregisteredtypeinfo.h +64 -0
- data/vendor/local/include/gobject-introspection-1.0/girepository.h +239 -0
- data/vendor/local/include/gobject-introspection-1.0/girffi.h +104 -0
- data/vendor/local/include/gobject-introspection-1.0/gisignalinfo.h +57 -0
- data/vendor/local/include/gobject-introspection-1.0/gistructinfo.h +77 -0
- data/vendor/local/include/gobject-introspection-1.0/gitypeinfo.h +87 -0
- data/vendor/local/include/gobject-introspection-1.0/gitypelib.h +80 -0
- data/vendor/local/include/gobject-introspection-1.0/gitypes.h +524 -0
- data/vendor/local/include/gobject-introspection-1.0/giunioninfo.h +84 -0
- data/vendor/local/include/gobject-introspection-1.0/giversionmacros.h +128 -0
- data/vendor/local/include/gobject-introspection-1.0/givfuncinfo.h +73 -0
- data/vendor/local/lib/girepository-1.0/DBus-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/DBusGLib-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/GIRepository-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/GL-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/GLib-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/GModule-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/GObject-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/Gio-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/cairo-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/fontconfig-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/freetype2-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/libxml2-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/win32-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/xfixes-4.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/xft-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/xlib-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/xrandr-1.3.typelib +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/__init__.py +24 -0
- data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.py +76 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.py +2161 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ast.py +1139 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ast.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ast.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/cachestore.py +203 -0
- data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.py +202 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/codegen.py +173 -0
- data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.py +23 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.py +305 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.py +120 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docmain.py +72 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/callback.tmpl +4 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/class.tmpl +2 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/constructor.tmpl +1 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/default.tmpl +1 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/enum.tmpl +2 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/field.tmpl +1 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/function.tmpl +60 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/interface.tmpl +2 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/method.tmpl +1 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/namespace.tmpl +1 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/property.tmpl +5 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/record.tmpl +1 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/signal.tmpl +5 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/vfunc.tmpl +4 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/callback.tmpl +27 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/class.tmpl +30 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/constructor.tmpl +1 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/default.tmpl +1 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/enum.tmpl +21 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/field.tmpl +9 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl +47 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/interface.tmpl +17 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/method.tmpl +1 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/namespace.tmpl +2 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/property.tmpl +9 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/record.tmpl +2 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/signal.tmpl +38 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/vfunc.tmpl +27 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/callback.tmpl +27 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/class.tmpl +18 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/constructor.tmpl +1 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/default.tmpl +1 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/enum.tmpl +13 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/field.tmpl +1 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/function.tmpl +47 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/interface.tmpl +16 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/method.tmpl +1 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/namespace.tmpl +2 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/property.tmpl +9 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/record.tmpl +2 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/signal.tmpl +41 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/vfunc.tmpl +27 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/base.tmpl +20 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/class.tmpl +61 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/namespace.tmpl +16 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docwriter.py +958 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/dumper.py +338 -0
- data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.py +529 -0
- data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girparser.py +593 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girwriter.py +612 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.py +240 -0
- data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.py +76 -0
- data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.py +1366 -0
- data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/message.py +203 -0
- data/vendor/local/lib/gobject-introspection/giscanner/message.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/message.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/scannermain.py +561 -0
- data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.py +152 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/shlibs.py +140 -0
- data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.py +329 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.py +136 -0
- data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/transformer.py +971 -0
- data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/utils.py +211 -0
- data/vendor/local/lib/gobject-introspection/giscanner/utils.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/utils.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.py +156 -0
- data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyo +0 -0
- data/vendor/local/lib/libgirepository-1.0.a +0 -0
- data/vendor/local/lib/libgirepository-1.0.dll.a +0 -0
- data/vendor/local/lib/libgirepository-1.0.la +41 -0
- data/vendor/local/lib/pkgconfig/gobject-introspection-1.0.pc +26 -0
- data/vendor/local/lib/pkgconfig/gobject-introspection-no-export-1.0.pc +23 -0
- data/vendor/local/lib/pkgconfig/patched +0 -0
- data/vendor/local/share/aclocal/introspection.m4 +96 -0
- data/vendor/local/share/gir-1.0/DBus-1.0.gir +32 -0
- data/vendor/local/share/gir-1.0/DBusGLib-1.0.gir +18 -0
- data/vendor/local/share/gir-1.0/GIRepository-2.0.gir +4042 -0
- data/vendor/local/share/gir-1.0/GL-1.0.gir +31 -0
- data/vendor/local/share/gir-1.0/GLib-2.0.gir +47221 -0
- data/vendor/local/share/gir-1.0/GModule-2.0.gir +301 -0
- data/vendor/local/share/gir-1.0/GObject-2.0.gir +14733 -0
- data/vendor/local/share/gir-1.0/Gio-2.0.gir +82459 -0
- data/vendor/local/share/gir-1.0/cairo-1.0.gir +70 -0
- data/vendor/local/share/gir-1.0/fontconfig-2.0.gir +18 -0
- data/vendor/local/share/gir-1.0/freetype2-2.0.gir +22 -0
- data/vendor/local/share/gir-1.0/libxml2-2.0.gir +25 -0
- data/vendor/local/share/gir-1.0/win32-1.0.gir +19 -0
- data/vendor/local/share/gir-1.0/xfixes-4.0.gir +10 -0
- data/vendor/local/share/gir-1.0/xft-2.0.gir +23 -0
- data/vendor/local/share/gir-1.0/xlib-2.0.gir +67 -0
- data/vendor/local/share/gir-1.0/xrandr-1.3.gir +16 -0
- data/vendor/local/share/gobject-introspection-1.0/Makefile.introspection +166 -0
- data/vendor/local/share/gobject-introspection-1.0/gdump.c +569 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/annotation.c +831 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/annotation.h +301 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/drawable.c +57 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/drawable.h +44 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/everything.c +1579 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/everything.h +535 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/foo.c +790 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/foo.h +582 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.c +5426 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.h +1948 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/gitestmacros.h +10 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/regress.c +4068 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/regress.h +1415 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/utility.c +47 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/utility.h +102 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.c +47 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.h +46 -0
- data/vendor/local/share/license/gobject-introspection/AUTHORS +9 -0
- data/vendor/local/share/license/gobject-introspection/COPYING +12 -0
- data/vendor/local/share/man/man1/g-ir-compiler.1 +42 -0
- data/vendor/local/share/man/man1/g-ir-generate.1 +29 -0
- metadata +363 -0
@@ -0,0 +1,569 @@
|
|
1
|
+
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
|
2
|
+
* GObject introspection: Dump introspection data
|
3
|
+
*
|
4
|
+
* Copyright (C) 2008 Colin Walters <walters@verbum.org>
|
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
|
+
#include <stdlib.h>
|
23
|
+
|
24
|
+
#include <glib.h>
|
25
|
+
#include <glib-object.h>
|
26
|
+
#include <gio/gio.h>
|
27
|
+
|
28
|
+
/* This file is both compiled into libgirepository.so, and installed
|
29
|
+
* on the filesystem. But for the dumper, we want to avoid linking
|
30
|
+
* to libgirepository; see
|
31
|
+
* https://bugzilla.gnome.org/show_bug.cgi?id=630342
|
32
|
+
*/
|
33
|
+
#ifdef G_IREPOSITORY_COMPILATION
|
34
|
+
#include "config.h"
|
35
|
+
#include "girepository.h"
|
36
|
+
#endif
|
37
|
+
|
38
|
+
#include <string.h>
|
39
|
+
|
40
|
+
static void
|
41
|
+
escaped_printf (GOutputStream *out, const char *fmt, ...) G_GNUC_PRINTF (2, 3);
|
42
|
+
|
43
|
+
static void
|
44
|
+
escaped_printf (GOutputStream *out, const char *fmt, ...)
|
45
|
+
{
|
46
|
+
char *str;
|
47
|
+
va_list args;
|
48
|
+
gsize written;
|
49
|
+
GError *error = NULL;
|
50
|
+
|
51
|
+
va_start (args, fmt);
|
52
|
+
|
53
|
+
str = g_markup_vprintf_escaped (fmt, args);
|
54
|
+
if (!g_output_stream_write_all (out, str, strlen (str), &written, NULL, &error))
|
55
|
+
{
|
56
|
+
g_critical ("failed to write to iochannel: %s", error->message);
|
57
|
+
g_clear_error (&error);
|
58
|
+
}
|
59
|
+
g_free (str);
|
60
|
+
|
61
|
+
va_end (args);
|
62
|
+
}
|
63
|
+
|
64
|
+
static void
|
65
|
+
goutput_write (GOutputStream *out, const char *str)
|
66
|
+
{
|
67
|
+
gsize written;
|
68
|
+
GError *error = NULL;
|
69
|
+
if (!g_output_stream_write_all (out, str, strlen (str), &written, NULL, &error))
|
70
|
+
{
|
71
|
+
g_critical ("failed to write to iochannel: %s", error->message);
|
72
|
+
g_clear_error (&error);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
typedef GType (*GetTypeFunc)(void);
|
77
|
+
typedef GQuark (*ErrorQuarkFunc)(void);
|
78
|
+
|
79
|
+
static GType
|
80
|
+
invoke_get_type (GModule *self, const char *symbol, GError **error)
|
81
|
+
{
|
82
|
+
GetTypeFunc sym;
|
83
|
+
GType ret;
|
84
|
+
|
85
|
+
if (!g_module_symbol (self, symbol, (void**)&sym))
|
86
|
+
{
|
87
|
+
g_set_error (error,
|
88
|
+
G_IO_ERROR,
|
89
|
+
G_IO_ERROR_FAILED,
|
90
|
+
"Failed to find symbol '%s'", symbol);
|
91
|
+
return G_TYPE_INVALID;
|
92
|
+
}
|
93
|
+
|
94
|
+
ret = sym ();
|
95
|
+
if (ret == G_TYPE_INVALID)
|
96
|
+
{
|
97
|
+
g_set_error (error,
|
98
|
+
G_IO_ERROR,
|
99
|
+
G_IO_ERROR_FAILED,
|
100
|
+
"Function '%s' returned G_TYPE_INVALID", symbol);
|
101
|
+
}
|
102
|
+
return ret;
|
103
|
+
}
|
104
|
+
|
105
|
+
static GQuark
|
106
|
+
invoke_error_quark (GModule *self, const char *symbol, GError **error)
|
107
|
+
{
|
108
|
+
ErrorQuarkFunc sym;
|
109
|
+
|
110
|
+
if (!g_module_symbol (self, symbol, (void**)&sym))
|
111
|
+
{
|
112
|
+
g_set_error (error,
|
113
|
+
G_IO_ERROR,
|
114
|
+
G_IO_ERROR_FAILED,
|
115
|
+
"Failed to find symbol '%s'", symbol);
|
116
|
+
return G_TYPE_INVALID;
|
117
|
+
}
|
118
|
+
|
119
|
+
return sym ();
|
120
|
+
}
|
121
|
+
|
122
|
+
static void
|
123
|
+
dump_properties (GType type, GOutputStream *out)
|
124
|
+
{
|
125
|
+
guint i;
|
126
|
+
guint n_properties;
|
127
|
+
GParamSpec **props;
|
128
|
+
|
129
|
+
if (G_TYPE_FUNDAMENTAL (type) == G_TYPE_OBJECT)
|
130
|
+
{
|
131
|
+
GObjectClass *klass;
|
132
|
+
klass = g_type_class_ref (type);
|
133
|
+
props = g_object_class_list_properties (klass, &n_properties);
|
134
|
+
}
|
135
|
+
else
|
136
|
+
{
|
137
|
+
void *klass;
|
138
|
+
klass = g_type_default_interface_ref (type);
|
139
|
+
props = g_object_interface_list_properties (klass, &n_properties);
|
140
|
+
}
|
141
|
+
|
142
|
+
for (i = 0; i < n_properties; i++)
|
143
|
+
{
|
144
|
+
GParamSpec *prop;
|
145
|
+
|
146
|
+
prop = props[i];
|
147
|
+
if (prop->owner_type != type)
|
148
|
+
continue;
|
149
|
+
|
150
|
+
escaped_printf (out, " <property name=\"%s\" type=\"%s\" flags=\"%d\"/>\n",
|
151
|
+
prop->name, g_type_name (prop->value_type), prop->flags);
|
152
|
+
}
|
153
|
+
g_free (props);
|
154
|
+
}
|
155
|
+
|
156
|
+
static void
|
157
|
+
dump_signals (GType type, GOutputStream *out)
|
158
|
+
{
|
159
|
+
guint i;
|
160
|
+
guint n_sigs;
|
161
|
+
guint *sig_ids;
|
162
|
+
|
163
|
+
sig_ids = g_signal_list_ids (type, &n_sigs);
|
164
|
+
for (i = 0; i < n_sigs; i++)
|
165
|
+
{
|
166
|
+
guint sigid;
|
167
|
+
GSignalQuery query;
|
168
|
+
guint j;
|
169
|
+
|
170
|
+
sigid = sig_ids[i];
|
171
|
+
g_signal_query (sigid, &query);
|
172
|
+
|
173
|
+
escaped_printf (out, " <signal name=\"%s\" return=\"%s\"",
|
174
|
+
query.signal_name, g_type_name (query.return_type));
|
175
|
+
|
176
|
+
if (query.signal_flags & G_SIGNAL_RUN_FIRST)
|
177
|
+
escaped_printf (out, " when=\"first\"");
|
178
|
+
else if (query.signal_flags & G_SIGNAL_RUN_LAST)
|
179
|
+
escaped_printf (out, " when=\"last\"");
|
180
|
+
else if (query.signal_flags & G_SIGNAL_RUN_CLEANUP)
|
181
|
+
escaped_printf (out, " when=\"cleanup\"");
|
182
|
+
#if GLIB_CHECK_VERSION(2, 29, 15)
|
183
|
+
else if (query.signal_flags & G_SIGNAL_MUST_COLLECT)
|
184
|
+
escaped_printf (out, " when=\"must-collect\"");
|
185
|
+
#endif
|
186
|
+
if (query.signal_flags & G_SIGNAL_NO_RECURSE)
|
187
|
+
escaped_printf (out, " no-recurse=\"1\"");
|
188
|
+
|
189
|
+
if (query.signal_flags & G_SIGNAL_DETAILED)
|
190
|
+
escaped_printf (out, " detailed=\"1\"");
|
191
|
+
|
192
|
+
if (query.signal_flags & G_SIGNAL_ACTION)
|
193
|
+
escaped_printf (out, " action=\"1\"");
|
194
|
+
|
195
|
+
if (query.signal_flags & G_SIGNAL_NO_HOOKS)
|
196
|
+
escaped_printf (out, " no-hooks=\"1\"");
|
197
|
+
|
198
|
+
goutput_write (out, ">\n");
|
199
|
+
|
200
|
+
for (j = 0; j < query.n_params; j++)
|
201
|
+
{
|
202
|
+
escaped_printf (out, " <param type=\"%s\"/>\n",
|
203
|
+
g_type_name (query.param_types[j]));
|
204
|
+
}
|
205
|
+
goutput_write (out, " </signal>\n");
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
static void
|
210
|
+
dump_object_type (GType type, const char *symbol, GOutputStream *out)
|
211
|
+
{
|
212
|
+
guint n_interfaces;
|
213
|
+
guint i;
|
214
|
+
GType *interfaces;
|
215
|
+
|
216
|
+
escaped_printf (out, " <class name=\"%s\" get-type=\"%s\"",
|
217
|
+
g_type_name (type), symbol);
|
218
|
+
if (type != G_TYPE_OBJECT)
|
219
|
+
{
|
220
|
+
GString *parent_str;
|
221
|
+
GType parent;
|
222
|
+
gboolean first = TRUE;
|
223
|
+
|
224
|
+
parent = g_type_parent (type);
|
225
|
+
parent_str = g_string_new ("");
|
226
|
+
while (parent != G_TYPE_INVALID)
|
227
|
+
{
|
228
|
+
if (first)
|
229
|
+
first = FALSE;
|
230
|
+
else
|
231
|
+
g_string_append_c (parent_str, ',');
|
232
|
+
g_string_append (parent_str, g_type_name (parent));
|
233
|
+
parent = g_type_parent (parent);
|
234
|
+
}
|
235
|
+
|
236
|
+
escaped_printf (out, " parents=\"%s\"", parent_str->str);
|
237
|
+
|
238
|
+
g_string_free (parent_str, TRUE);
|
239
|
+
}
|
240
|
+
|
241
|
+
if (G_TYPE_IS_ABSTRACT (type))
|
242
|
+
escaped_printf (out, " abstract=\"1\"");
|
243
|
+
goutput_write (out, ">\n");
|
244
|
+
|
245
|
+
interfaces = g_type_interfaces (type, &n_interfaces);
|
246
|
+
for (i = 0; i < n_interfaces; i++)
|
247
|
+
{
|
248
|
+
GType itype = interfaces[i];
|
249
|
+
escaped_printf (out, " <implements name=\"%s\"/>\n",
|
250
|
+
g_type_name (itype));
|
251
|
+
}
|
252
|
+
dump_properties (type, out);
|
253
|
+
dump_signals (type, out);
|
254
|
+
goutput_write (out, " </class>\n");
|
255
|
+
}
|
256
|
+
|
257
|
+
static void
|
258
|
+
dump_interface_type (GType type, const char *symbol, GOutputStream *out)
|
259
|
+
{
|
260
|
+
guint n_interfaces;
|
261
|
+
guint i;
|
262
|
+
GType *interfaces;
|
263
|
+
|
264
|
+
escaped_printf (out, " <interface name=\"%s\" get-type=\"%s\">\n",
|
265
|
+
g_type_name (type), symbol);
|
266
|
+
|
267
|
+
interfaces = g_type_interface_prerequisites (type, &n_interfaces);
|
268
|
+
for (i = 0; i < n_interfaces; i++)
|
269
|
+
{
|
270
|
+
GType itype = interfaces[i];
|
271
|
+
if (itype == G_TYPE_OBJECT)
|
272
|
+
{
|
273
|
+
/* Treat this as implicit for now; in theory GInterfaces are
|
274
|
+
* supported on things like GstMiniObject, but right now
|
275
|
+
* the introspection system only supports GObject.
|
276
|
+
* http://bugzilla.gnome.org/show_bug.cgi?id=559706
|
277
|
+
*/
|
278
|
+
continue;
|
279
|
+
}
|
280
|
+
escaped_printf (out, " <prerequisite name=\"%s\"/>\n",
|
281
|
+
g_type_name (itype));
|
282
|
+
}
|
283
|
+
dump_properties (type, out);
|
284
|
+
dump_signals (type, out);
|
285
|
+
goutput_write (out, " </interface>\n");
|
286
|
+
}
|
287
|
+
|
288
|
+
static void
|
289
|
+
dump_boxed_type (GType type, const char *symbol, GOutputStream *out)
|
290
|
+
{
|
291
|
+
escaped_printf (out, " <boxed name=\"%s\" get-type=\"%s\"/>\n",
|
292
|
+
g_type_name (type), symbol);
|
293
|
+
}
|
294
|
+
|
295
|
+
static void
|
296
|
+
dump_flags_type (GType type, const char *symbol, GOutputStream *out)
|
297
|
+
{
|
298
|
+
guint i;
|
299
|
+
GFlagsClass *klass;
|
300
|
+
|
301
|
+
klass = g_type_class_ref (type);
|
302
|
+
escaped_printf (out, " <flags name=\"%s\" get-type=\"%s\">\n",
|
303
|
+
g_type_name (type), symbol);
|
304
|
+
|
305
|
+
for (i = 0; i < klass->n_values; i++)
|
306
|
+
{
|
307
|
+
GFlagsValue *value = &(klass->values[i]);
|
308
|
+
|
309
|
+
escaped_printf (out, " <member name=\"%s\" nick=\"%s\" value=\"%d\"/>\n",
|
310
|
+
value->value_name, value->value_nick, value->value);
|
311
|
+
}
|
312
|
+
goutput_write (out, " </flags>\n");
|
313
|
+
}
|
314
|
+
|
315
|
+
static void
|
316
|
+
dump_enum_type (GType type, const char *symbol, GOutputStream *out)
|
317
|
+
{
|
318
|
+
guint i;
|
319
|
+
GEnumClass *klass;
|
320
|
+
|
321
|
+
klass = g_type_class_ref (type);
|
322
|
+
escaped_printf (out, " <enum name=\"%s\" get-type=\"%s\">\n",
|
323
|
+
g_type_name (type), symbol);
|
324
|
+
|
325
|
+
for (i = 0; i < klass->n_values; i++)
|
326
|
+
{
|
327
|
+
GEnumValue *value = &(klass->values[i]);
|
328
|
+
|
329
|
+
escaped_printf (out, " <member name=\"%s\" nick=\"%s\" value=\"%d\"/>\n",
|
330
|
+
value->value_name, value->value_nick, value->value);
|
331
|
+
}
|
332
|
+
goutput_write (out, " </enum>");
|
333
|
+
}
|
334
|
+
|
335
|
+
static void
|
336
|
+
dump_fundamental_type (GType type, const char *symbol, GOutputStream *out)
|
337
|
+
{
|
338
|
+
guint n_interfaces;
|
339
|
+
guint i;
|
340
|
+
GType *interfaces;
|
341
|
+
GString *parent_str;
|
342
|
+
GType parent;
|
343
|
+
gboolean first = TRUE;
|
344
|
+
|
345
|
+
|
346
|
+
escaped_printf (out, " <fundamental name=\"%s\" get-type=\"%s\"",
|
347
|
+
g_type_name (type), symbol);
|
348
|
+
|
349
|
+
if (G_TYPE_IS_ABSTRACT (type))
|
350
|
+
escaped_printf (out, " abstract=\"1\"");
|
351
|
+
|
352
|
+
if (G_TYPE_IS_INSTANTIATABLE (type))
|
353
|
+
escaped_printf (out, " instantiatable=\"1\"");
|
354
|
+
|
355
|
+
parent = g_type_parent (type);
|
356
|
+
parent_str = g_string_new ("");
|
357
|
+
while (parent != G_TYPE_INVALID)
|
358
|
+
{
|
359
|
+
if (first)
|
360
|
+
first = FALSE;
|
361
|
+
else
|
362
|
+
g_string_append_c (parent_str, ',');
|
363
|
+
if (!g_type_name (parent))
|
364
|
+
break;
|
365
|
+
g_string_append (parent_str, g_type_name (parent));
|
366
|
+
parent = g_type_parent (parent);
|
367
|
+
}
|
368
|
+
|
369
|
+
if (parent_str->len > 0)
|
370
|
+
escaped_printf (out, " parents=\"%s\"", parent_str->str);
|
371
|
+
g_string_free (parent_str, TRUE);
|
372
|
+
|
373
|
+
goutput_write (out, ">\n");
|
374
|
+
|
375
|
+
interfaces = g_type_interfaces (type, &n_interfaces);
|
376
|
+
for (i = 0; i < n_interfaces; i++)
|
377
|
+
{
|
378
|
+
GType itype = interfaces[i];
|
379
|
+
escaped_printf (out, " <implements name=\"%s\"/>\n",
|
380
|
+
g_type_name (itype));
|
381
|
+
}
|
382
|
+
goutput_write (out, " </fundamental>\n");
|
383
|
+
}
|
384
|
+
|
385
|
+
static void
|
386
|
+
dump_type (GType type, const char *symbol, GOutputStream *out)
|
387
|
+
{
|
388
|
+
switch (g_type_fundamental (type))
|
389
|
+
{
|
390
|
+
case G_TYPE_OBJECT:
|
391
|
+
dump_object_type (type, symbol, out);
|
392
|
+
break;
|
393
|
+
case G_TYPE_INTERFACE:
|
394
|
+
dump_interface_type (type, symbol, out);
|
395
|
+
break;
|
396
|
+
case G_TYPE_BOXED:
|
397
|
+
dump_boxed_type (type, symbol, out);
|
398
|
+
break;
|
399
|
+
case G_TYPE_FLAGS:
|
400
|
+
dump_flags_type (type, symbol, out);
|
401
|
+
break;
|
402
|
+
case G_TYPE_ENUM:
|
403
|
+
dump_enum_type (type, symbol, out);
|
404
|
+
break;
|
405
|
+
case G_TYPE_POINTER:
|
406
|
+
/* GValue, etc. Just skip them. */
|
407
|
+
break;
|
408
|
+
default:
|
409
|
+
dump_fundamental_type (type, symbol, out);
|
410
|
+
break;
|
411
|
+
}
|
412
|
+
}
|
413
|
+
|
414
|
+
static void
|
415
|
+
dump_error_quark (GQuark quark, const char *symbol, GOutputStream *out)
|
416
|
+
{
|
417
|
+
escaped_printf (out, " <error-quark function=\"%s\" domain=\"%s\"/>\n",
|
418
|
+
symbol, g_quark_to_string (quark));
|
419
|
+
}
|
420
|
+
|
421
|
+
/**
|
422
|
+
* g_irepository_dump:
|
423
|
+
* @arg: Comma-separated pair of input and output filenames
|
424
|
+
* @error: a %GError
|
425
|
+
*
|
426
|
+
* Argument specified is a comma-separated pair of filenames; i.e. of
|
427
|
+
* the form "input.txt,output.xml". The input file should be a
|
428
|
+
* UTF-8 Unix-line-ending text file, with each line containing either
|
429
|
+
* "get-type:" followed by the name of a GType _get_type function, or
|
430
|
+
* "error-quark:" followed by the name of an error quark function. No
|
431
|
+
* extra whitespace is allowed.
|
432
|
+
*
|
433
|
+
* The output file should already exist, but be empty. This function will
|
434
|
+
* overwrite its contents.
|
435
|
+
*
|
436
|
+
* Returns: %TRUE on success, %FALSE on error
|
437
|
+
*/
|
438
|
+
#ifndef G_IREPOSITORY_COMPILATION
|
439
|
+
static gboolean
|
440
|
+
dump_irepository (const char *arg, GError **error) G_GNUC_UNUSED;
|
441
|
+
static gboolean
|
442
|
+
dump_irepository (const char *arg, GError **error)
|
443
|
+
#else
|
444
|
+
gboolean
|
445
|
+
g_irepository_dump (const char *arg, GError **error)
|
446
|
+
#endif
|
447
|
+
{
|
448
|
+
GHashTable *output_types;
|
449
|
+
char **args;
|
450
|
+
GFile *input_file;
|
451
|
+
GFile *output_file;
|
452
|
+
GFileInputStream *input;
|
453
|
+
GFileOutputStream *output;
|
454
|
+
GDataInputStream *in;
|
455
|
+
GModule *self;
|
456
|
+
gboolean caught_error = FALSE;
|
457
|
+
|
458
|
+
self = g_module_open (NULL, 0);
|
459
|
+
if (!self)
|
460
|
+
{
|
461
|
+
g_set_error (error,
|
462
|
+
G_IO_ERROR,
|
463
|
+
G_IO_ERROR_FAILED,
|
464
|
+
"failed to open self: %s",
|
465
|
+
g_module_error ());
|
466
|
+
return FALSE;
|
467
|
+
}
|
468
|
+
|
469
|
+
args = g_strsplit (arg, ",", 2);
|
470
|
+
|
471
|
+
input_file = g_file_new_for_path (args[0]);
|
472
|
+
output_file = g_file_new_for_path (args[1]);
|
473
|
+
|
474
|
+
input = g_file_read (input_file, NULL, error);
|
475
|
+
if (input == NULL)
|
476
|
+
return FALSE;
|
477
|
+
|
478
|
+
output = g_file_replace (output_file, NULL, FALSE, 0, NULL, error);
|
479
|
+
if (output == NULL)
|
480
|
+
{
|
481
|
+
g_input_stream_close (G_INPUT_STREAM (input), NULL, NULL);
|
482
|
+
return FALSE;
|
483
|
+
}
|
484
|
+
|
485
|
+
goutput_write (G_OUTPUT_STREAM (output), "<?xml version=\"1.0\"?>\n");
|
486
|
+
goutput_write (G_OUTPUT_STREAM (output), "<dump>\n");
|
487
|
+
|
488
|
+
output_types = g_hash_table_new (NULL, NULL);
|
489
|
+
|
490
|
+
in = g_data_input_stream_new (G_INPUT_STREAM (input));
|
491
|
+
g_object_unref (input);
|
492
|
+
|
493
|
+
while (TRUE)
|
494
|
+
{
|
495
|
+
gsize len;
|
496
|
+
char *line = g_data_input_stream_read_line (in, &len, NULL, NULL);
|
497
|
+
const char *function;
|
498
|
+
|
499
|
+
if (line == NULL || *line == '\0')
|
500
|
+
{
|
501
|
+
g_free (line);
|
502
|
+
break;
|
503
|
+
}
|
504
|
+
|
505
|
+
g_strchomp (line);
|
506
|
+
|
507
|
+
if (strncmp (line, "get-type:", strlen ("get-type:")) == 0)
|
508
|
+
{
|
509
|
+
GType type;
|
510
|
+
|
511
|
+
function = line + strlen ("get-type:");
|
512
|
+
|
513
|
+
type = invoke_get_type (self, function, error);
|
514
|
+
|
515
|
+
if (type == G_TYPE_INVALID)
|
516
|
+
{
|
517
|
+
g_printerr ("Invalid GType function: '%s'\n", function);
|
518
|
+
caught_error = TRUE;
|
519
|
+
g_free (line);
|
520
|
+
break;
|
521
|
+
}
|
522
|
+
|
523
|
+
if (g_hash_table_lookup (output_types, (gpointer) type))
|
524
|
+
goto next;
|
525
|
+
g_hash_table_insert (output_types, (gpointer) type, (gpointer) type);
|
526
|
+
|
527
|
+
dump_type (type, function, G_OUTPUT_STREAM (output));
|
528
|
+
}
|
529
|
+
else if (strncmp (line, "error-quark:", strlen ("error-quark:")) == 0)
|
530
|
+
{
|
531
|
+
GQuark quark;
|
532
|
+
function = line + strlen ("error-quark:");
|
533
|
+
quark = invoke_error_quark (self, function, error);
|
534
|
+
|
535
|
+
if (quark == 0)
|
536
|
+
{
|
537
|
+
g_printerr ("Invalid error quark function: '%s'\n", function);
|
538
|
+
caught_error = TRUE;
|
539
|
+
g_free (line);
|
540
|
+
break;
|
541
|
+
}
|
542
|
+
|
543
|
+
dump_error_quark (quark, function, G_OUTPUT_STREAM (output));
|
544
|
+
}
|
545
|
+
|
546
|
+
|
547
|
+
next:
|
548
|
+
g_free (line);
|
549
|
+
}
|
550
|
+
|
551
|
+
g_hash_table_destroy (output_types);
|
552
|
+
|
553
|
+
goutput_write (G_OUTPUT_STREAM (output), "</dump>\n");
|
554
|
+
|
555
|
+
{
|
556
|
+
GError **ioerror;
|
557
|
+
/* Avoid overwriting an earlier set error */
|
558
|
+
if (caught_error)
|
559
|
+
ioerror = NULL;
|
560
|
+
else
|
561
|
+
ioerror = error;
|
562
|
+
if (!g_input_stream_close (G_INPUT_STREAM (in), NULL, ioerror))
|
563
|
+
return FALSE;
|
564
|
+
if (!g_output_stream_close (G_OUTPUT_STREAM (output), NULL, ioerror))
|
565
|
+
return FALSE;
|
566
|
+
}
|
567
|
+
|
568
|
+
return !caught_error;
|
569
|
+
}
|