gobject-introspection 2.0.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +118 -0
- data/ext/gobject-introspection/depend +10 -0
- data/ext/gobject-introspection/extconf.rb +97 -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 +1015 -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 +120 -0
- data/ext/gobject-introspection/rb-gi-conversions.h +116 -0
- data/ext/gobject-introspection/rb-gi-enum-info.c +145 -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 +658 -0
- data/ext/gobject-introspection/rb-gi-interface-info.c +222 -0
- data/ext/gobject-introspection/rb-gi-loader.c +162 -0
- data/ext/gobject-introspection/rb-gi-method-info.c +109 -0
- data/ext/gobject-introspection/rb-gi-object-info.c +345 -0
- data/ext/gobject-introspection/rb-gi-private.h +110 -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 +164 -0
- data/ext/gobject-introspection/rb-gi-signal-info.c +77 -0
- data/ext/gobject-introspection/rb-gi-struct-info.c +190 -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 +57 -0
- data/extconf.rb +71 -0
- data/lib/1.9/gobject_introspection.so +0 -0
- data/lib/2.0/gobject_introspection.so +0 -0
- data/lib/gobject-introspection.rb +52 -0
- data/lib/gobject-introspection/callable-info.rb +91 -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 +328 -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 +56 -0
- data/test/test-field-type.rb +42 -0
- data/test/test-flags-info.rb +27 -0
- data/test/test-function-info.rb +37 -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 +59 -0
- data/test/test-signal-info.rb +37 -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 +52 -0
- data/vendor/local/include/gobject-introspection-1.0/gibaseinfo.h +89 -0
- data/vendor/local/include/gobject-introspection-1.0/gicallableinfo.h +74 -0
- data/vendor/local/include/gobject-introspection-1.0/giconstantinfo.h +46 -0
- data/vendor/local/include/gobject-introspection-1.0/gienuminfo.h +56 -0
- data/vendor/local/include/gobject-introspection-1.0/gifieldinfo.h +52 -0
- data/vendor/local/include/gobject-introspection-1.0/gifunctioninfo.h +77 -0
- data/vendor/local/include/gobject-introspection-1.0/giinterfaceinfo.h +68 -0
- data/vendor/local/include/gobject-introspection-1.0/giobjectinfo.h +137 -0
- data/vendor/local/include/gobject-introspection-1.0/gipropertyinfo.h +44 -0
- data/vendor/local/include/gobject-introspection-1.0/giregisteredtypeinfo.h +53 -0
- data/vendor/local/include/gobject-introspection-1.0/girepository.h +179 -0
- data/vendor/local/include/gobject-introspection-1.0/girffi.h +80 -0
- data/vendor/local/include/gobject-introspection-1.0/gisignalinfo.h +45 -0
- data/vendor/local/include/gobject-introspection-1.0/gistructinfo.h +53 -0
- data/vendor/local/include/gobject-introspection-1.0/gitypeinfo.h +56 -0
- data/vendor/local/include/gobject-introspection-1.0/gitypelib.h +55 -0
- data/vendor/local/include/gobject-introspection-1.0/gitypes.h +453 -0
- data/vendor/local/include/gobject-introspection-1.0/giunioninfo.h +57 -0
- data/vendor/local/include/gobject-introspection-1.0/givfuncinfo.h +56 -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/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 +74 -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 +1204 -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 +1100 -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 +196 -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/codegen.py +140 -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/docmain.py +60 -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/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/function.tmpl +61 -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/class.tmpl +18 -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 +13 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl +48 -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 +10 -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 +37 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/vfunc.tmpl +27 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/class.tmpl +17 -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/function.tmpl +53 -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 +10 -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 +42 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/vfunc.tmpl +33 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/base.tmpl +29 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/class.tmpl +40 -0
- data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/namespace.tmpl +19 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docwriter.py +635 -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 +363 -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 +551 -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 +581 -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 +584 -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 +236 -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 +1337 -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 +185 -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/odict.py +50 -0
- data/vendor/local/lib/gobject-introspection/giscanner/odict.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/odict.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/scannermain.py +497 -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 +78 -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 +132 -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 +324 -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 +119 -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 +999 -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 +141 -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 +197 -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/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 +3833 -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 +44304 -0
- data/vendor/local/share/gir-1.0/GModule-2.0.gir +184 -0
- data/vendor/local/share/gir-1.0/GObject-2.0.gir +13947 -0
- data/vendor/local/share/gir-1.0/Gio-2.0.gir +73619 -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/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 +564 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/annotation.c +835 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/annotation.h +198 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/drawable.c +55 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/drawable.h +33 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/everything.c +1473 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/everything.h +428 -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 +437 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.c +5256 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.h +1158 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/regress.c +4009 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/regress.h +944 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/utility.c +45 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/utility.h +95 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.c +33 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.h +36 -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 +51 -0
- data/vendor/local/share/man/man1/g-ir-generate.1 +29 -0
- metadata +343 -0
@@ -0,0 +1,835 @@
|
|
1
|
+
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
2
|
+
#include "annotation.h"
|
3
|
+
|
4
|
+
char backslash_parsing_tester = '\\';
|
5
|
+
|
6
|
+
G_DEFINE_TYPE (RegressAnnotationObject, regress_annotation_object, G_TYPE_OBJECT);
|
7
|
+
|
8
|
+
enum {
|
9
|
+
PROP_0,
|
10
|
+
PROP_STRING_PROPERTY,
|
11
|
+
PROP_FUNCTION_PROPERTY,
|
12
|
+
PROP_TAB_PROPERTY
|
13
|
+
};
|
14
|
+
|
15
|
+
enum {
|
16
|
+
STRING_SIGNAL,
|
17
|
+
LIST_SIGNAL,
|
18
|
+
DOC_EMPTY_ARG_PARSING,
|
19
|
+
ATTRIBUTE_SIGNAL,
|
20
|
+
LAST_SIGNAL
|
21
|
+
};
|
22
|
+
|
23
|
+
static guint regress_annotation_object_signals[LAST_SIGNAL] = { 0 };
|
24
|
+
|
25
|
+
static void
|
26
|
+
regress_annotation_object_set_property (GObject *object,
|
27
|
+
guint prop_id,
|
28
|
+
const GValue *value,
|
29
|
+
GParamSpec *pspec)
|
30
|
+
{
|
31
|
+
switch (prop_id)
|
32
|
+
{
|
33
|
+
case PROP_STRING_PROPERTY:
|
34
|
+
break;
|
35
|
+
case PROP_FUNCTION_PROPERTY:
|
36
|
+
break;
|
37
|
+
case PROP_TAB_PROPERTY:
|
38
|
+
break;
|
39
|
+
default:
|
40
|
+
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
41
|
+
break;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
static void
|
46
|
+
regress_annotation_object_get_property (GObject *object,
|
47
|
+
guint prop_id,
|
48
|
+
GValue *value,
|
49
|
+
GParamSpec *pspec)
|
50
|
+
{
|
51
|
+
switch (prop_id)
|
52
|
+
{
|
53
|
+
case PROP_STRING_PROPERTY:
|
54
|
+
break;
|
55
|
+
case PROP_FUNCTION_PROPERTY:
|
56
|
+
break;
|
57
|
+
case PROP_TAB_PROPERTY:
|
58
|
+
break;
|
59
|
+
default:
|
60
|
+
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
61
|
+
break;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
static void
|
66
|
+
regress_annotation_object_class_init (RegressAnnotationObjectClass *klass)
|
67
|
+
{
|
68
|
+
GObjectClass *gobject_class;
|
69
|
+
|
70
|
+
gobject_class = G_OBJECT_CLASS (klass);
|
71
|
+
|
72
|
+
gobject_class->set_property = regress_annotation_object_set_property;
|
73
|
+
gobject_class->get_property = regress_annotation_object_get_property;
|
74
|
+
|
75
|
+
/**
|
76
|
+
* RegressAnnotationObject::string-signal:
|
77
|
+
* @regress_annotation: the regress_annotation object
|
78
|
+
* @string: (type utf8): a string
|
79
|
+
*
|
80
|
+
* This is a signal which has a broken signal handler,
|
81
|
+
* it says it's pointer but it's actually a string.
|
82
|
+
*
|
83
|
+
* Since: 1.0
|
84
|
+
* Deprecated: 1.2: Use other-signal instead
|
85
|
+
*/
|
86
|
+
regress_annotation_object_signals[STRING_SIGNAL] =
|
87
|
+
g_signal_new ("string-signal",
|
88
|
+
G_OBJECT_CLASS_TYPE (gobject_class),
|
89
|
+
G_SIGNAL_RUN_LAST,
|
90
|
+
0,
|
91
|
+
NULL, NULL,
|
92
|
+
(GSignalCMarshaller)g_cclosure_marshal_VOID__POINTER,
|
93
|
+
G_TYPE_NONE, 1, G_TYPE_POINTER);
|
94
|
+
|
95
|
+
/**
|
96
|
+
* RegressAnnotationObject::list-signal:
|
97
|
+
* @regress_annotation: the regress_annotation object
|
98
|
+
* @list: (type GLib.List) (element-type utf8) (transfer container): a list of strings
|
99
|
+
*
|
100
|
+
* This is a signal which takes a list of strings, but it's not
|
101
|
+
* known by GObject as it's only marked as G_TYPE_POINTER
|
102
|
+
*/
|
103
|
+
regress_annotation_object_signals[LIST_SIGNAL] =
|
104
|
+
g_signal_new ("list-signal",
|
105
|
+
G_OBJECT_CLASS_TYPE (gobject_class),
|
106
|
+
G_SIGNAL_RUN_LAST,
|
107
|
+
0,
|
108
|
+
NULL, NULL,
|
109
|
+
(GSignalCMarshaller)g_cclosure_marshal_VOID__POINTER,
|
110
|
+
G_TYPE_NONE, 1, G_TYPE_POINTER);
|
111
|
+
|
112
|
+
/**
|
113
|
+
* RegressAnnotationObject::doc-empty-arg-parsing:
|
114
|
+
* @regress_annotation: the regress_annotation object
|
115
|
+
* @arg1:
|
116
|
+
*
|
117
|
+
* This signal tests an empty document argument (@arg1)
|
118
|
+
*/
|
119
|
+
regress_annotation_object_signals[DOC_EMPTY_ARG_PARSING] =
|
120
|
+
g_signal_new ("doc-empty-arg-parsing",
|
121
|
+
G_OBJECT_CLASS_TYPE (gobject_class),
|
122
|
+
G_SIGNAL_RUN_LAST,
|
123
|
+
0,
|
124
|
+
NULL, NULL,
|
125
|
+
(GSignalCMarshaller)g_cclosure_marshal_VOID__POINTER,
|
126
|
+
G_TYPE_NONE, 1, G_TYPE_POINTER);
|
127
|
+
|
128
|
+
/**
|
129
|
+
* RegressAnnotationObject::attribute-signal:
|
130
|
+
* @regress_annotation: the regress_annotation object
|
131
|
+
* @arg1: (attribute some.regress_annotation.foo1 val1): a value
|
132
|
+
* @arg2: (attribute some.regress_annotation.foo2 val2): another value
|
133
|
+
*
|
134
|
+
* This signal tests a signal with attributes.
|
135
|
+
*
|
136
|
+
* Returns: (attribute some.regress_annotation.foo3 val3): the return value
|
137
|
+
*/
|
138
|
+
regress_annotation_object_signals[ATTRIBUTE_SIGNAL] =
|
139
|
+
g_signal_new ("attribute-signal",
|
140
|
+
G_OBJECT_CLASS_TYPE (gobject_class),
|
141
|
+
G_SIGNAL_RUN_LAST,
|
142
|
+
0,
|
143
|
+
NULL, NULL,
|
144
|
+
NULL, /* marshaller */
|
145
|
+
G_TYPE_STRING,
|
146
|
+
2,
|
147
|
+
G_TYPE_STRING,
|
148
|
+
G_TYPE_STRING);
|
149
|
+
|
150
|
+
/**
|
151
|
+
* RegressAnnotationObject:string-property:
|
152
|
+
*
|
153
|
+
* This is a property which is a string
|
154
|
+
*
|
155
|
+
* Since: 1.0
|
156
|
+
* Deprecated: 1.2: Use better-string-property instead
|
157
|
+
*/
|
158
|
+
g_object_class_install_property (gobject_class,
|
159
|
+
PROP_STRING_PROPERTY,
|
160
|
+
g_param_spec_string ("string-property",
|
161
|
+
"String property",
|
162
|
+
"This property is a string",
|
163
|
+
NULL,
|
164
|
+
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
|
165
|
+
/**
|
166
|
+
* RegressAnnotationObject:function-property:
|
167
|
+
*
|
168
|
+
* Type: RegressAnnotationCallback
|
169
|
+
*/
|
170
|
+
g_object_class_install_property (gobject_class,
|
171
|
+
PROP_FUNCTION_PROPERTY,
|
172
|
+
g_param_spec_pointer ("function-property",
|
173
|
+
"Function property",
|
174
|
+
"This property is a function pointer",
|
175
|
+
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
|
176
|
+
|
177
|
+
/**
|
178
|
+
* RegressAnnotationObject:tab-property:
|
179
|
+
*
|
180
|
+
* This is a property regress_annotation intentionally indented with a mix
|
181
|
+
* of tabs and strings to test the tab handling capabilities of the scanner.
|
182
|
+
*
|
183
|
+
* Since: 1.2
|
184
|
+
*/
|
185
|
+
g_object_class_install_property (gobject_class,
|
186
|
+
PROP_TAB_PROPERTY,
|
187
|
+
g_param_spec_string ("tab-property",
|
188
|
+
"Tab property",
|
189
|
+
"This property is a thing",
|
190
|
+
NULL,
|
191
|
+
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
|
192
|
+
}
|
193
|
+
|
194
|
+
static void
|
195
|
+
regress_annotation_object_init (RegressAnnotationObject *object)
|
196
|
+
{
|
197
|
+
|
198
|
+
}
|
199
|
+
|
200
|
+
/**
|
201
|
+
* regress_annotation_object_method:
|
202
|
+
* @object: a #GObject
|
203
|
+
*
|
204
|
+
* Return value: an int
|
205
|
+
**/
|
206
|
+
gint
|
207
|
+
regress_annotation_object_method (RegressAnnotationObject *object)
|
208
|
+
{
|
209
|
+
return 1;
|
210
|
+
}
|
211
|
+
|
212
|
+
/**
|
213
|
+
* regress_annotation_object_out:
|
214
|
+
* @object: a #GObject
|
215
|
+
* @outarg: (out): This is an argument test
|
216
|
+
*
|
217
|
+
* This is a test for out arguments
|
218
|
+
*
|
219
|
+
* Return value: an int
|
220
|
+
*/
|
221
|
+
gint
|
222
|
+
regress_annotation_object_out (RegressAnnotationObject *object, int *outarg)
|
223
|
+
{
|
224
|
+
*outarg = 2;
|
225
|
+
return 1;
|
226
|
+
}
|
227
|
+
|
228
|
+
/**
|
229
|
+
* regress_annotation_object_in:
|
230
|
+
* @object: a #GObject
|
231
|
+
* @inarg: (in) (transfer none): This is an argument test
|
232
|
+
*
|
233
|
+
* This is a test for in arguments
|
234
|
+
*
|
235
|
+
* Return value: an int
|
236
|
+
*/
|
237
|
+
gint
|
238
|
+
regress_annotation_object_in (RegressAnnotationObject *object, int *inarg)
|
239
|
+
{
|
240
|
+
return *inarg;
|
241
|
+
}
|
242
|
+
|
243
|
+
|
244
|
+
/**
|
245
|
+
* regress_annotation_object_inout:
|
246
|
+
* @object: a #GObject
|
247
|
+
* @inoutarg: (inout): This is an argument test
|
248
|
+
*
|
249
|
+
* This is a test for out arguments
|
250
|
+
*
|
251
|
+
* Return value: an int
|
252
|
+
*/
|
253
|
+
gint
|
254
|
+
regress_annotation_object_inout (RegressAnnotationObject *object, int *inoutarg)
|
255
|
+
{
|
256
|
+
return *inoutarg += 1;
|
257
|
+
}
|
258
|
+
|
259
|
+
/**
|
260
|
+
* regress_annotation_object_inout2:
|
261
|
+
* @object: a #GObject
|
262
|
+
* @inoutarg: (inout): This is an argument test
|
263
|
+
*
|
264
|
+
* This is a second test for out arguments
|
265
|
+
*
|
266
|
+
* Return value: an int
|
267
|
+
*/
|
268
|
+
gint
|
269
|
+
regress_annotation_object_inout2 (RegressAnnotationObject *object, int *inoutarg)
|
270
|
+
{
|
271
|
+
return *inoutarg += 1;
|
272
|
+
}
|
273
|
+
|
274
|
+
|
275
|
+
/**
|
276
|
+
* regress_annotation_object_inout3:
|
277
|
+
* @object: a #GObject
|
278
|
+
* @inoutarg: (inout) (allow-none): This is an argument test
|
279
|
+
*
|
280
|
+
* This is a 3th test for out arguments
|
281
|
+
*
|
282
|
+
* Return value: an int
|
283
|
+
*/
|
284
|
+
gint
|
285
|
+
regress_annotation_object_inout3 (RegressAnnotationObject *object, int *inoutarg)
|
286
|
+
{
|
287
|
+
if (inoutarg)
|
288
|
+
return *inoutarg + 1;
|
289
|
+
return 1;
|
290
|
+
}
|
291
|
+
|
292
|
+
/**
|
293
|
+
* regress_annotation_object_calleeowns:
|
294
|
+
* @object: a #GObject
|
295
|
+
* @toown: (out): a #GObject
|
296
|
+
*
|
297
|
+
* This is a test for out arguments; GObject defaults to transfer
|
298
|
+
*
|
299
|
+
* Return value: an int
|
300
|
+
*/
|
301
|
+
gint
|
302
|
+
regress_annotation_object_calleeowns (RegressAnnotationObject *object, GObject **toown)
|
303
|
+
{
|
304
|
+
return 1;
|
305
|
+
}
|
306
|
+
|
307
|
+
|
308
|
+
/**
|
309
|
+
* regress_annotation_object_calleesowns:
|
310
|
+
* @object: a #GObject
|
311
|
+
* @toown1: (out) (transfer full): a #GObject
|
312
|
+
* @toown2: (out) (transfer none): a #GObject
|
313
|
+
*
|
314
|
+
* This is a test for out arguments, one transferred, other not
|
315
|
+
*
|
316
|
+
* Return value: an int
|
317
|
+
*/
|
318
|
+
gint
|
319
|
+
regress_annotation_object_calleesowns (RegressAnnotationObject *object,
|
320
|
+
GObject **toown1,
|
321
|
+
GObject **toown2)
|
322
|
+
{
|
323
|
+
return 1;
|
324
|
+
}
|
325
|
+
|
326
|
+
|
327
|
+
/**
|
328
|
+
* regress_annotation_object_get_strings:
|
329
|
+
* @object: a #GObject
|
330
|
+
*
|
331
|
+
* This is a test for returning a list of strings, where
|
332
|
+
* each string needs to be freed.
|
333
|
+
*
|
334
|
+
* Return value: (element-type utf8) (transfer full): list of strings
|
335
|
+
*/
|
336
|
+
GList*
|
337
|
+
regress_annotation_object_get_strings (RegressAnnotationObject *object)
|
338
|
+
{
|
339
|
+
GList *list = NULL;
|
340
|
+
list = g_list_prepend (list, g_strdup ("regress_annotation"));
|
341
|
+
list = g_list_prepend (list, g_strdup ("bar"));
|
342
|
+
return list;
|
343
|
+
}
|
344
|
+
|
345
|
+
/**
|
346
|
+
* regress_annotation_object_get_hash:
|
347
|
+
* @object: a #GObject
|
348
|
+
*
|
349
|
+
* This is a test for returning a hash table mapping strings to
|
350
|
+
* objects.
|
351
|
+
*
|
352
|
+
* Return value: (element-type utf8 GObject) (transfer full): hash table
|
353
|
+
*/
|
354
|
+
GHashTable*
|
355
|
+
regress_annotation_object_get_hash (RegressAnnotationObject *object)
|
356
|
+
{
|
357
|
+
GHashTable *hash = g_hash_table_new_full (g_str_hash, g_str_equal,
|
358
|
+
g_free, g_object_unref);
|
359
|
+
g_hash_table_insert (hash, g_strdup ("one"), g_object_ref (object));
|
360
|
+
g_hash_table_insert (hash, g_strdup ("two"), g_object_ref (object));
|
361
|
+
return hash;
|
362
|
+
}
|
363
|
+
|
364
|
+
/**
|
365
|
+
* regress_annotation_object_with_voidp:
|
366
|
+
* @data: Opaque pointer handle
|
367
|
+
*/
|
368
|
+
void
|
369
|
+
regress_annotation_object_with_voidp (RegressAnnotationObject *object, void *data)
|
370
|
+
{
|
371
|
+
|
372
|
+
}
|
373
|
+
|
374
|
+
/**
|
375
|
+
* regress_annotation_object_get_objects:
|
376
|
+
* @object: a #GObject
|
377
|
+
*
|
378
|
+
* This is a test for returning a list of objects.
|
379
|
+
* The list itself should be freed, but not the internal objects,
|
380
|
+
* intentionally similar example to gtk_container_get_children
|
381
|
+
*
|
382
|
+
* Return value: (element-type RegressAnnotationObject) (transfer container): list of objects
|
383
|
+
*/
|
384
|
+
GSList*
|
385
|
+
regress_annotation_object_get_objects (RegressAnnotationObject *object)
|
386
|
+
{
|
387
|
+
GSList *list = NULL;
|
388
|
+
list = g_slist_prepend (list, object);
|
389
|
+
return list;
|
390
|
+
}
|
391
|
+
|
392
|
+
/**
|
393
|
+
* regress_annotation_object_create_object:
|
394
|
+
* @object: a #GObject
|
395
|
+
*
|
396
|
+
* Test returning a caller-owned object
|
397
|
+
*
|
398
|
+
* Return value: (transfer full): The object
|
399
|
+
**/
|
400
|
+
GObject*
|
401
|
+
regress_annotation_object_create_object (RegressAnnotationObject *object)
|
402
|
+
{
|
403
|
+
return g_object_ref (object);
|
404
|
+
}
|
405
|
+
|
406
|
+
/**
|
407
|
+
* regress_annotation_object_use_buffer:
|
408
|
+
* @object: a #GObject
|
409
|
+
*
|
410
|
+
**/
|
411
|
+
void
|
412
|
+
regress_annotation_object_use_buffer (RegressAnnotationObject *object,
|
413
|
+
guchar *bytes)
|
414
|
+
{
|
415
|
+
|
416
|
+
}
|
417
|
+
|
418
|
+
/**
|
419
|
+
* regress_annotation_object_compute_sum:
|
420
|
+
* @object: a #GObject
|
421
|
+
* @nums: (array): Sequence of numbers
|
422
|
+
*
|
423
|
+
* Test taking a zero-terminated array
|
424
|
+
**/
|
425
|
+
void
|
426
|
+
regress_annotation_object_compute_sum (RegressAnnotationObject *object,
|
427
|
+
int *nums)
|
428
|
+
{
|
429
|
+
|
430
|
+
}
|
431
|
+
|
432
|
+
/**
|
433
|
+
* regress_annotation_object_compute_sum_n:
|
434
|
+
* @object: a #GObject
|
435
|
+
* @nums: (array length=n_nums zero-terminated=0): Sequence of
|
436
|
+
* numbers that are zero-terminated
|
437
|
+
* @n_nums: Length of number array
|
438
|
+
*
|
439
|
+
* Test taking an array with length parameter
|
440
|
+
**/
|
441
|
+
void
|
442
|
+
regress_annotation_object_compute_sum_n(RegressAnnotationObject *object,
|
443
|
+
int *nums,
|
444
|
+
int n_nums)
|
445
|
+
{
|
446
|
+
|
447
|
+
}
|
448
|
+
|
449
|
+
/**
|
450
|
+
* regress_annotation_object_compute_sum_nz:
|
451
|
+
* @object: a #RegressAnnotationObject
|
452
|
+
* @nums: (array length=n_nums zero-terminated=1): Sequence of numbers that
|
453
|
+
* are zero-terminated
|
454
|
+
* @n_nums: Length of number array
|
455
|
+
*
|
456
|
+
* Test taking a zero-terminated array with length parameter
|
457
|
+
**/
|
458
|
+
void
|
459
|
+
regress_annotation_object_compute_sum_nz(RegressAnnotationObject *object,
|
460
|
+
int *nums,
|
461
|
+
int n_nums)
|
462
|
+
{
|
463
|
+
|
464
|
+
}
|
465
|
+
|
466
|
+
/**
|
467
|
+
* regress_annotation_object_parse_args:
|
468
|
+
* @object: a #RegressAnnotationObject
|
469
|
+
* @argc: (inout): Length of the argument vector
|
470
|
+
* @argv: (inout) (array length=argc zero-terminated=1): Argument vector
|
471
|
+
*
|
472
|
+
* Test taking a zero-terminated array with length parameter
|
473
|
+
**/
|
474
|
+
void
|
475
|
+
regress_annotation_object_parse_args(RegressAnnotationObject *object,
|
476
|
+
int *argc,
|
477
|
+
char ***argv)
|
478
|
+
{
|
479
|
+
|
480
|
+
}
|
481
|
+
|
482
|
+
/**
|
483
|
+
* regress_annotation_object_string_out:
|
484
|
+
* @object: a #RegressAnnotationObject
|
485
|
+
* @str_out: (out) (transfer full): string return value
|
486
|
+
*
|
487
|
+
* Test returning a string as an out parameter
|
488
|
+
*
|
489
|
+
* Returns: some boolean
|
490
|
+
**/
|
491
|
+
gboolean
|
492
|
+
regress_annotation_object_string_out(RegressAnnotationObject *object,
|
493
|
+
char **str_out)
|
494
|
+
{
|
495
|
+
return FALSE;
|
496
|
+
}
|
497
|
+
|
498
|
+
/**
|
499
|
+
* regress_annotation_object_foreach:
|
500
|
+
* @object: a #RegressAnnotationObject
|
501
|
+
* @func: (scope call): Callback to invoke
|
502
|
+
* @user_data: Callback user data
|
503
|
+
*
|
504
|
+
* Test taking a call-scoped callback
|
505
|
+
**/
|
506
|
+
void
|
507
|
+
regress_annotation_object_foreach (RegressAnnotationObject *object,
|
508
|
+
RegressAnnotationForeachFunc func,
|
509
|
+
gpointer user_data)
|
510
|
+
{
|
511
|
+
|
512
|
+
}
|
513
|
+
|
514
|
+
/**
|
515
|
+
* regress_annotation_object_set_data:
|
516
|
+
* @object: a #RegressAnnotationObject
|
517
|
+
* @data: (array length=length): The data
|
518
|
+
* @length: Length of the data
|
519
|
+
*
|
520
|
+
* Test taking a guchar * with a length.
|
521
|
+
**/
|
522
|
+
void
|
523
|
+
regress_annotation_object_set_data (RegressAnnotationObject *object,
|
524
|
+
const guchar *data,
|
525
|
+
gsize length)
|
526
|
+
{
|
527
|
+
|
528
|
+
}
|
529
|
+
|
530
|
+
/**
|
531
|
+
* regress_annotation_object_set_data2:
|
532
|
+
* @object: a #RegressAnnotationObject
|
533
|
+
* @data: (array length=length) (element-type gint8): The data
|
534
|
+
* @length: Length of the data
|
535
|
+
*
|
536
|
+
* Test taking a gchar * with a length.
|
537
|
+
**/
|
538
|
+
void
|
539
|
+
regress_annotation_object_set_data2 (RegressAnnotationObject *object,
|
540
|
+
const gchar *data,
|
541
|
+
gsize length)
|
542
|
+
{
|
543
|
+
|
544
|
+
}
|
545
|
+
|
546
|
+
/**
|
547
|
+
* regress_annotation_object_set_data3:
|
548
|
+
* @object: a #RegressAnnotationObject
|
549
|
+
* @data: (array length=length) (element-type guint8): The data
|
550
|
+
* @length: Length of the data
|
551
|
+
*
|
552
|
+
* Test taking a gchar * with a length, overriding the array element
|
553
|
+
* type.
|
554
|
+
**/
|
555
|
+
void
|
556
|
+
regress_annotation_object_set_data3 (RegressAnnotationObject *object,
|
557
|
+
gpointer data,
|
558
|
+
gsize length)
|
559
|
+
{
|
560
|
+
|
561
|
+
}
|
562
|
+
|
563
|
+
/**
|
564
|
+
* regress_annotation_object_allow_none:
|
565
|
+
* @object: a #GObject
|
566
|
+
* @somearg: (allow-none):
|
567
|
+
*
|
568
|
+
* Returns: (transfer none): %NULL always
|
569
|
+
**/
|
570
|
+
GObject*
|
571
|
+
regress_annotation_object_allow_none (RegressAnnotationObject *object, const gchar *somearg)
|
572
|
+
{
|
573
|
+
return NULL;
|
574
|
+
}
|
575
|
+
|
576
|
+
/**
|
577
|
+
* regress_annotation_object_notrans:
|
578
|
+
* @object: a #GObject
|
579
|
+
*
|
580
|
+
* Returns: (transfer none): An object, not referenced
|
581
|
+
**/
|
582
|
+
|
583
|
+
GObject*
|
584
|
+
regress_annotation_object_notrans (RegressAnnotationObject *object)
|
585
|
+
{
|
586
|
+
return NULL;
|
587
|
+
}
|
588
|
+
|
589
|
+
/**
|
590
|
+
* regress_annotation_object_do_not_use:
|
591
|
+
* @object: a #GObject
|
592
|
+
*
|
593
|
+
* Returns: (transfer none): %NULL always
|
594
|
+
* Deprecated: 0.12: Use regress_annotation_object_create_object() instead.
|
595
|
+
**/
|
596
|
+
GObject*
|
597
|
+
regress_annotation_object_do_not_use (RegressAnnotationObject *object)
|
598
|
+
{
|
599
|
+
return NULL;
|
600
|
+
}
|
601
|
+
|
602
|
+
/**
|
603
|
+
* regress_annotation_object_watch: (skip)
|
604
|
+
* @object: A #RegressAnnotationObject
|
605
|
+
* @func: The callback
|
606
|
+
* @user_data: The callback data
|
607
|
+
*
|
608
|
+
* This is here just for the sake of being overriden by its
|
609
|
+
* regress_annotation_object_watch_full().
|
610
|
+
*/
|
611
|
+
void
|
612
|
+
regress_annotation_object_watch (RegressAnnotationObject *object,
|
613
|
+
RegressAnnotationForeachFunc func,
|
614
|
+
gpointer user_data)
|
615
|
+
{
|
616
|
+
}
|
617
|
+
|
618
|
+
/**
|
619
|
+
* regress_annotation_object_watch_full:
|
620
|
+
* @object: A #RegressAnnotationObject
|
621
|
+
* @func: The callback
|
622
|
+
* @user_data: The callback data
|
623
|
+
* @destroy: Destroy notification
|
624
|
+
*
|
625
|
+
* Test overriding via the "Rename To" regress_annotation.
|
626
|
+
*
|
627
|
+
* Rename to: regress_annotation_object_watch
|
628
|
+
*/
|
629
|
+
void
|
630
|
+
regress_annotation_object_watch_full (RegressAnnotationObject *object,
|
631
|
+
RegressAnnotationForeachFunc func,
|
632
|
+
gpointer user_data,
|
633
|
+
GDestroyNotify destroy)
|
634
|
+
{
|
635
|
+
}
|
636
|
+
|
637
|
+
/**
|
638
|
+
* regress_annotation_object_hidden_self:
|
639
|
+
* @object: (type RegressAnnotationObject): A #RegressAnnotationObject
|
640
|
+
**/
|
641
|
+
void
|
642
|
+
regress_annotation_object_hidden_self (gpointer object)
|
643
|
+
{
|
644
|
+
}
|
645
|
+
|
646
|
+
/**
|
647
|
+
* regress_annotation_init:
|
648
|
+
* @argc: (inout): The number of args.
|
649
|
+
* @argv: (inout) (array length=argc): The arguments.
|
650
|
+
**/
|
651
|
+
void
|
652
|
+
regress_annotation_init (int *argc, char ***argv)
|
653
|
+
{
|
654
|
+
|
655
|
+
}
|
656
|
+
|
657
|
+
/**
|
658
|
+
* regress_annotation_return_array:
|
659
|
+
* @length: (out): Number of return values
|
660
|
+
*
|
661
|
+
* Return value: (transfer full) (array length=length): The return value
|
662
|
+
**/
|
663
|
+
char **
|
664
|
+
regress_annotation_return_array (int *length)
|
665
|
+
{
|
666
|
+
return NULL;
|
667
|
+
}
|
668
|
+
|
669
|
+
/**
|
670
|
+
* regress_annotation_string_zero_terminated:
|
671
|
+
*
|
672
|
+
* Return value: (transfer full) (array zero-terminated=1): The return value
|
673
|
+
**/
|
674
|
+
char **
|
675
|
+
regress_annotation_string_zero_terminated (void)
|
676
|
+
{
|
677
|
+
return NULL;
|
678
|
+
}
|
679
|
+
|
680
|
+
/**
|
681
|
+
* regress_annotation_string_zero_terminated_out:
|
682
|
+
* @out: (array zero-terminated=1) (inout):
|
683
|
+
**/
|
684
|
+
void
|
685
|
+
regress_annotation_string_zero_terminated_out (char ***out)
|
686
|
+
{
|
687
|
+
}
|
688
|
+
|
689
|
+
/**
|
690
|
+
* regress_annotation_versioned:
|
691
|
+
*
|
692
|
+
* Since: 0.6
|
693
|
+
**/
|
694
|
+
void
|
695
|
+
regress_annotation_versioned (void)
|
696
|
+
{
|
697
|
+
}
|
698
|
+
|
699
|
+
/**
|
700
|
+
* regress_annotation_string_array_length:
|
701
|
+
* @n_properties:
|
702
|
+
* @properties: (array length=n_properties) (element-type utf8):
|
703
|
+
*/
|
704
|
+
void
|
705
|
+
regress_annotation_string_array_length (guint n_properties, const gchar * const properties[])
|
706
|
+
{
|
707
|
+
}
|
708
|
+
|
709
|
+
/**
|
710
|
+
* regress_annotation_object_extra_annos:
|
711
|
+
*
|
712
|
+
* Attributes: (org.foobar testvalue)
|
713
|
+
*/
|
714
|
+
void
|
715
|
+
regress_annotation_object_extra_annos (RegressAnnotationObject *object)
|
716
|
+
{
|
717
|
+
}
|
718
|
+
|
719
|
+
/**
|
720
|
+
* regress_annotation_custom_destroy:
|
721
|
+
* @callback: (destroy destroy) (closure data): Destroy notification
|
722
|
+
*
|
723
|
+
* Test messing up the heuristic of closure/destroy-notification
|
724
|
+
* detection, and fixing it via regress_annotations.
|
725
|
+
*/
|
726
|
+
void
|
727
|
+
regress_annotation_custom_destroy (RegressAnnotationCallback callback,
|
728
|
+
RegressAnnotationNotifyFunc destroy,
|
729
|
+
gpointer data)
|
730
|
+
{
|
731
|
+
}
|
732
|
+
|
733
|
+
/**
|
734
|
+
* regress_annotation_get_source_file:
|
735
|
+
*
|
736
|
+
* Return value: (type filename) (transfer full): Source file
|
737
|
+
*/
|
738
|
+
char *
|
739
|
+
regress_annotation_get_source_file (void)
|
740
|
+
{
|
741
|
+
return NULL;
|
742
|
+
}
|
743
|
+
|
744
|
+
/**
|
745
|
+
* regress_annotation_set_source_file:
|
746
|
+
* @fname: (type filename): Source file
|
747
|
+
*
|
748
|
+
*/
|
749
|
+
void
|
750
|
+
regress_annotation_set_source_file (const char *fname)
|
751
|
+
{
|
752
|
+
}
|
753
|
+
|
754
|
+
/**
|
755
|
+
* regress_annotation_ptr_array:
|
756
|
+
* @array: (element-type GObject.Value): the array
|
757
|
+
*/
|
758
|
+
void
|
759
|
+
regress_annotation_ptr_array (GPtrArray *array)
|
760
|
+
{
|
761
|
+
}
|
762
|
+
|
763
|
+
/**
|
764
|
+
* regress_annotation_attribute_func:
|
765
|
+
* @object: A #RegressAnnotationObject.
|
766
|
+
* @data: (attribute some.regress_annotation value) (attribute another.regress_annotation blahvalue): Some data.
|
767
|
+
*
|
768
|
+
* Returns: (attribute some.other.regress_annotation value2) (attribute yet.another.regress_annotation another_value): The return value.
|
769
|
+
*/
|
770
|
+
gint
|
771
|
+
regress_annotation_attribute_func (RegressAnnotationObject *object,
|
772
|
+
const gchar *data)
|
773
|
+
{
|
774
|
+
return 42;
|
775
|
+
}
|
776
|
+
|
777
|
+
/**
|
778
|
+
* regress_annotation_invalid_regress_annotation:
|
779
|
+
* @foo: some text (e.g. example) or else
|
780
|
+
*/
|
781
|
+
void
|
782
|
+
regress_annotation_invalid_regress_annotation (int foo)
|
783
|
+
{
|
784
|
+
|
785
|
+
}
|
786
|
+
|
787
|
+
|
788
|
+
char backslash_parsing_tester_2 = '\\';
|
789
|
+
|
790
|
+
|
791
|
+
/**
|
792
|
+
* regress_annotation_test_parsing_bug630862:
|
793
|
+
*
|
794
|
+
* See https://bugzilla.gnome.org/show_bug.cgi?id=630862
|
795
|
+
*
|
796
|
+
* Returns: (transfer none): An object, note the colon:in here
|
797
|
+
*/
|
798
|
+
GObject *
|
799
|
+
regress_annotation_test_parsing_bug630862 (void)
|
800
|
+
{
|
801
|
+
return NULL;
|
802
|
+
}
|
803
|
+
|
804
|
+
|
805
|
+
/**
|
806
|
+
* regress_annotation_space_after_comment_bug631690:
|
807
|
+
*
|
808
|
+
* Explicitly test having a space after the ** here.
|
809
|
+
*/
|
810
|
+
void
|
811
|
+
regress_annotation_space_after_comment_bug631690 (void)
|
812
|
+
{
|
813
|
+
}
|
814
|
+
|
815
|
+
/**
|
816
|
+
* regress_annotation_return_filename:
|
817
|
+
*
|
818
|
+
* Returns: (type filename): An annotated filename
|
819
|
+
*/
|
820
|
+
gchar*
|
821
|
+
regress_annotation_return_filename (void)
|
822
|
+
{
|
823
|
+
return "a utf-8 filename";
|
824
|
+
}
|
825
|
+
|
826
|
+
/**
|
827
|
+
* regress_annotation_transfer_floating:
|
828
|
+
*
|
829
|
+
* Returns: (transfer floating): A floating object
|
830
|
+
*/
|
831
|
+
GObject *
|
832
|
+
regress_annotation_transfer_floating(void)
|
833
|
+
{
|
834
|
+
return NULL;
|
835
|
+
}
|