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,944 @@
|
|
1
|
+
#ifndef __GITESTTYPES_H__
|
2
|
+
#define __GITESTTYPES_H__
|
3
|
+
|
4
|
+
#ifndef _GI_DISABLE_CAIRO
|
5
|
+
#include <cairo-gobject.h>
|
6
|
+
#endif
|
7
|
+
#include <glib-object.h>
|
8
|
+
#include <gio/gio.h>
|
9
|
+
#include <time.h>
|
10
|
+
|
11
|
+
void regress_set_abort_on_error (gboolean abort_on_error);
|
12
|
+
|
13
|
+
/* basic types */
|
14
|
+
gboolean regress_test_boolean (gboolean in);
|
15
|
+
gboolean regress_test_boolean_true (gboolean in);
|
16
|
+
gboolean regress_test_boolean_false (gboolean in);
|
17
|
+
gint8 regress_test_int8 (gint8 in);
|
18
|
+
guint8 regress_test_uint8 (guint8 in);
|
19
|
+
gint16 regress_test_int16 (gint16 in);
|
20
|
+
guint16 regress_test_uint16 (guint16 in);
|
21
|
+
gint32 regress_test_int32 (gint32 in);
|
22
|
+
guint32 regress_test_uint32 (guint32 in);
|
23
|
+
gint64 regress_test_int64 (gint64 in);
|
24
|
+
guint64 regress_test_uint64 (guint64 in);
|
25
|
+
gshort regress_test_short (gshort in);
|
26
|
+
gushort regress_test_ushort (gushort in);
|
27
|
+
gint regress_test_int (gint in);
|
28
|
+
guint regress_test_uint (guint in);
|
29
|
+
glong regress_test_long (glong in);
|
30
|
+
gulong regress_test_ulong (gulong in);
|
31
|
+
gssize regress_test_ssize (gssize in);
|
32
|
+
gsize regress_test_size (gsize in);
|
33
|
+
gfloat regress_test_float (gfloat in);
|
34
|
+
gdouble regress_test_double (gdouble in);
|
35
|
+
gunichar regress_test_unichar (gunichar in);
|
36
|
+
time_t regress_test_timet (time_t in);
|
37
|
+
GType regress_test_gtype (GType in);
|
38
|
+
|
39
|
+
/* utf8 */
|
40
|
+
const char *regress_test_utf8_const_return (void);
|
41
|
+
char *regress_test_utf8_nonconst_return (void);
|
42
|
+
void regress_test_utf8_const_in (const char *in);
|
43
|
+
void regress_test_utf8_out (char **out);
|
44
|
+
void regress_test_utf8_inout (char **inout);
|
45
|
+
GSList *regress_test_filename_return (void);
|
46
|
+
void regress_test_utf8_null_in (char *in);
|
47
|
+
void regress_test_utf8_null_out (char **char_out);
|
48
|
+
|
49
|
+
/* in arguments after out arguments */
|
50
|
+
void regress_test_int_out_utf8 (int *length, const char *in);
|
51
|
+
|
52
|
+
/* multiple output arguments */
|
53
|
+
void regress_test_multi_double_args (gdouble in, gdouble *one, gdouble *two);
|
54
|
+
void regress_test_utf8_out_out (char **out0, char **out1);
|
55
|
+
char *regress_test_utf8_out_nonconst_return (char **out);
|
56
|
+
|
57
|
+
/* non-basic-types */
|
58
|
+
/* array */
|
59
|
+
gboolean regress_test_strv_in (char **arr);
|
60
|
+
int regress_test_array_int_in (int n_ints, int *ints);
|
61
|
+
void regress_test_array_int_out (int *n_ints, int **ints);
|
62
|
+
void regress_test_array_int_inout (int *n_ints, int **ints);
|
63
|
+
int regress_test_array_gint8_in (int n_ints, gint8 *ints);
|
64
|
+
int regress_test_array_gint16_in (int n_ints, gint16 *ints);
|
65
|
+
gint32 regress_test_array_gint32_in (int n_ints, gint32 *ints);
|
66
|
+
gint64 regress_test_array_gint64_in (int n_ints, gint64 *ints);
|
67
|
+
char *regress_test_array_gtype_in (int n_types, GType *types);
|
68
|
+
char **regress_test_strv_out_container (void);
|
69
|
+
char **regress_test_strv_out (void);
|
70
|
+
const char * const * regress_test_strv_out_c (void);
|
71
|
+
void regress_test_strv_outarg (char ***retp);
|
72
|
+
int regress_test_array_fixed_size_int_in (int *ints);
|
73
|
+
void regress_test_array_fixed_size_int_out (int **ints);
|
74
|
+
int *regress_test_array_fixed_size_int_return (void);
|
75
|
+
|
76
|
+
/* transfer tests */
|
77
|
+
int *regress_test_array_int_full_out(int *len);
|
78
|
+
int *regress_test_array_int_none_out(int *len);
|
79
|
+
void regress_test_array_int_null_in (int *arr, int len);
|
80
|
+
void regress_test_array_int_null_out (int **arr, int *len);
|
81
|
+
|
82
|
+
/* interface */
|
83
|
+
/* GList */
|
84
|
+
const GList *regress_test_glist_nothing_return (void);
|
85
|
+
GList *regress_test_glist_nothing_return2 (void);
|
86
|
+
GList *regress_test_glist_container_return (void);
|
87
|
+
GList *regress_test_glist_everything_return (void);
|
88
|
+
void regress_test_glist_nothing_in (const GList *in);
|
89
|
+
void regress_test_glist_nothing_in2 (GList *in);
|
90
|
+
void regress_test_glist_null_in(GSList *in);
|
91
|
+
void regress_test_glist_null_out(GSList **out_list);
|
92
|
+
|
93
|
+
/* GSList */
|
94
|
+
const GSList *regress_test_gslist_nothing_return (void);
|
95
|
+
GSList *regress_test_gslist_nothing_return2 (void);
|
96
|
+
GSList *regress_test_gslist_container_return (void);
|
97
|
+
GSList *regress_test_gslist_everything_return (void);
|
98
|
+
void regress_test_gslist_nothing_in (const GSList *in);
|
99
|
+
void regress_test_gslist_nothing_in2 (GSList *in);
|
100
|
+
void regress_test_gslist_null_in(GSList *in);
|
101
|
+
void regress_test_gslist_null_out(GSList **out_list);
|
102
|
+
|
103
|
+
/* GHashTable */
|
104
|
+
const GHashTable *regress_test_ghash_null_return (void);
|
105
|
+
const GHashTable *regress_test_ghash_nothing_return (void);
|
106
|
+
GHashTable *regress_test_ghash_nothing_return2 (void);
|
107
|
+
GHashTable *regress_test_ghash_gvalue_return (void);
|
108
|
+
void regress_test_ghash_gvalue_in (GHashTable *hash);
|
109
|
+
GHashTable *regress_test_ghash_container_return (void);
|
110
|
+
GHashTable *regress_test_ghash_everything_return (void);
|
111
|
+
void regress_test_ghash_null_in (const GHashTable *in);
|
112
|
+
void regress_test_ghash_null_out (const GHashTable **out);
|
113
|
+
void regress_test_ghash_nothing_in (const GHashTable *in);
|
114
|
+
void regress_test_ghash_nothing_in2 (GHashTable *in);
|
115
|
+
GHashTable *regress_test_ghash_nested_everything_return (void);
|
116
|
+
GHashTable *regress_test_ghash_nested_everything_return2 (void);
|
117
|
+
|
118
|
+
/* GPtrArray */
|
119
|
+
GPtrArray *regress_test_garray_container_return (void);
|
120
|
+
GPtrArray *regress_test_garray_full_return (void);
|
121
|
+
|
122
|
+
/* error? */
|
123
|
+
|
124
|
+
/* closure */
|
125
|
+
int regress_test_closure (GClosure *closure);
|
126
|
+
int regress_test_closure_one_arg (GClosure *closure, int arg);
|
127
|
+
GVariant *regress_test_closure_variant (GClosure *closure, GVariant* arg);
|
128
|
+
|
129
|
+
/* value */
|
130
|
+
int regress_test_int_value_arg(const GValue *v);
|
131
|
+
const GValue *regress_test_value_return(int i);
|
132
|
+
|
133
|
+
/* foreign structs */
|
134
|
+
#ifndef _GI_DISABLE_CAIRO
|
135
|
+
cairo_t *regress_test_cairo_context_full_return (void);
|
136
|
+
void regress_test_cairo_context_none_in (cairo_t *context);
|
137
|
+
|
138
|
+
cairo_surface_t *regress_test_cairo_surface_none_return (void);
|
139
|
+
cairo_surface_t *regress_test_cairo_surface_full_return (void);
|
140
|
+
void regress_test_cairo_surface_none_in (cairo_surface_t *surface);
|
141
|
+
void regress_test_cairo_surface_full_out (cairo_surface_t **surface);
|
142
|
+
#endif
|
143
|
+
|
144
|
+
/* versioning (deprecated, since, stability) */
|
145
|
+
void regress_test_versioning (void);
|
146
|
+
|
147
|
+
GVariant *regress_test_gvariant_i (void);
|
148
|
+
GVariant *regress_test_gvariant_s (void);
|
149
|
+
GVariant *regress_test_gvariant_asv (void);
|
150
|
+
GVariant *regress_test_gvariant_v (void);
|
151
|
+
GVariant *regress_test_gvariant_as (void);
|
152
|
+
|
153
|
+
/* enums / flags */
|
154
|
+
|
155
|
+
#define NUM_REGRESS_FOO
|
156
|
+
|
157
|
+
/**
|
158
|
+
* RegressTestEnum:
|
159
|
+
* @REGRESS_TEST_VALUE1: value 1
|
160
|
+
* @REGRESS_TEST_VALUE2: value 2
|
161
|
+
*
|
162
|
+
* By purpose, not all members have documentation
|
163
|
+
*/
|
164
|
+
typedef enum
|
165
|
+
{
|
166
|
+
REGRESS_TEST_VALUE1,
|
167
|
+
REGRESS_TEST_VALUE2,
|
168
|
+
REGRESS_TEST_VALUE3 = -1,
|
169
|
+
REGRESS_TEST_VALUE4 = '0'
|
170
|
+
} RegressTestEnum;
|
171
|
+
|
172
|
+
typedef enum
|
173
|
+
{
|
174
|
+
REGRESS_TEST_UNSIGNED_VALUE1 = 1,
|
175
|
+
REGRESS_TEST_UNSIGNED_VALUE2 = 0x80000000
|
176
|
+
} RegressTestEnumUnsigned;
|
177
|
+
|
178
|
+
typedef enum
|
179
|
+
{
|
180
|
+
REGRESS_TEST_FLAG1 = 1 << 0,
|
181
|
+
REGRESS_TEST_FLAG2 = 1 << 1,
|
182
|
+
REGRESS_TEST_FLAG3 = 1 << 2,
|
183
|
+
} RegressTestFlags;
|
184
|
+
|
185
|
+
GType regress_test_enum_get_type (void) G_GNUC_CONST;
|
186
|
+
#define REGRESS_TEST_TYPE_ENUM (regress_test_enum_get_type ())
|
187
|
+
GType regress_test_enum_unsigned_get_type (void) G_GNUC_CONST;
|
188
|
+
#define REGRESS_TEST_TYPE_ENUM_UNSIGNED (regress_test_enum_unsigned_get_type ())
|
189
|
+
GType regress_test_flags_get_type (void) G_GNUC_CONST;
|
190
|
+
#define REGRESS_TEST_TYPE_FLAGS (regress_test_flags_get_type ())
|
191
|
+
|
192
|
+
typedef enum
|
193
|
+
{
|
194
|
+
REGRESS_TEST_REFERENCE_0 = 2 + 2,
|
195
|
+
REGRESS_TEST_REFERENCE_1 = 1 + 1,
|
196
|
+
REGRESS_TEST_REFERENCE_2 = 6 * 9,
|
197
|
+
REGRESS_TEST_REFERENCE_3 = REGRESS_TEST_REFERENCE_1 + REGRESS_TEST_REFERENCE_1,
|
198
|
+
REGRESS_TEST_REFERENCE_4 = REGRESS_TEST_REFERENCE_2 * REGRESS_TEST_REFERENCE_3,
|
199
|
+
REGRESS_TEST_REFERENCE_5 = ~REGRESS_TEST_REFERENCE_4,
|
200
|
+
} RegressTestReferenceEnum;
|
201
|
+
|
202
|
+
/* this is not registered with GType */
|
203
|
+
typedef enum
|
204
|
+
{
|
205
|
+
REGRESS_TEST_EVALUE1,
|
206
|
+
REGRESS_TEST_EVALUE2 = 42,
|
207
|
+
REGRESS_TEST_EVALUE3 = '0'
|
208
|
+
} RegressTestEnumNoGEnum;
|
209
|
+
|
210
|
+
const gchar * regress_test_enum_param(RegressTestEnum e);
|
211
|
+
const gchar * regress_test_unsigned_enum_param(RegressTestEnumUnsigned e);
|
212
|
+
|
213
|
+
void regress_global_get_flags_out (RegressTestFlags *v);
|
214
|
+
|
215
|
+
/* error domains */
|
216
|
+
|
217
|
+
typedef enum
|
218
|
+
{
|
219
|
+
REGRESS_TEST_ERROR_CODE1 = 1,
|
220
|
+
REGRESS_TEST_ERROR_CODE2 = 2,
|
221
|
+
REGRESS_TEST_ERROR_CODE3 = 3
|
222
|
+
} RegressTestError;
|
223
|
+
|
224
|
+
GType regress_test_error_get_type (void);
|
225
|
+
GQuark regress_test_error_quark (void);
|
226
|
+
|
227
|
+
/* Test weird names, with and without
|
228
|
+
c_symbol_prefix given by a GType
|
229
|
+
*/
|
230
|
+
typedef enum
|
231
|
+
{
|
232
|
+
REGRESS_TEST_ABC_ERROR_CODE1 = 1,
|
233
|
+
REGRESS_TEST_ABC_ERROR_CODE2 = 2,
|
234
|
+
REGRESS_TEST_ABC_ERROR_CODE3 = 3
|
235
|
+
} RegressTestABCError;
|
236
|
+
|
237
|
+
GType regress_test_abc_error_get_type (void);
|
238
|
+
GQuark regress_test_abc_error_quark (void);
|
239
|
+
|
240
|
+
typedef enum
|
241
|
+
{
|
242
|
+
REGRESS_TEST_OTHER_ERROR_CODE1 = 1,
|
243
|
+
REGRESS_TEST_OTHER_ERROR_CODE2 = 2,
|
244
|
+
REGRESS_TEST_OTHER_ERROR_CODE3 = 3
|
245
|
+
} RegressTestOtherError;
|
246
|
+
|
247
|
+
/* This returns a GType for RegressTestOtherError.
|
248
|
+
The difference is intentional, although it
|
249
|
+
is mainly meant for capitalization problems.
|
250
|
+
*/
|
251
|
+
GType regress_test_unconventional_error_get_type (void);
|
252
|
+
GQuark regress_test_unconventional_error_quark (void);
|
253
|
+
|
254
|
+
typedef enum
|
255
|
+
{
|
256
|
+
REGRESS_TEST_DEF_ERROR_CODE0 = 0,
|
257
|
+
REGRESS_TEST_DEF_ERROR_CODE1 = 1,
|
258
|
+
REGRESS_TEST_DEF_ERROR_CODE2 = 2
|
259
|
+
} RegressTestDEFError;
|
260
|
+
|
261
|
+
GQuark regress_test_def_error_quark (void);
|
262
|
+
|
263
|
+
/* the scanner used to have problem
|
264
|
+
with two uppercase letter right after
|
265
|
+
the identifier prefix, that's why
|
266
|
+
we break the RegressTest convention */
|
267
|
+
typedef enum
|
268
|
+
{
|
269
|
+
REGRESS_ATEST_ERROR_CODE0 = 0,
|
270
|
+
REGRESS_ATEST_ERROR_CODE1 = 1,
|
271
|
+
REGRESS_ATEST_ERROR_CODE2 = 2
|
272
|
+
} RegressATestError;
|
273
|
+
|
274
|
+
GQuark regress_atest_error_quark (void);
|
275
|
+
|
276
|
+
|
277
|
+
/* constants */
|
278
|
+
|
279
|
+
#define REGRESS_NEGATIVE_INT_CONSTANT -42
|
280
|
+
#define REGRESS_INT_CONSTANT 4422
|
281
|
+
#define REGRESS_DOUBLE_CONSTANT 44.22
|
282
|
+
#define REGRESS_STRING_CONSTANT "Some String"
|
283
|
+
#define REGRESS_Mixed_Case_Constant 4423
|
284
|
+
#define REGRESS_G_GINT64_CONSTANT (G_GINT64_CONSTANT (1000))
|
285
|
+
#define REGRESS_GUINT64_CONSTANT ((guint64) -1)
|
286
|
+
|
287
|
+
typedef guint64 RegressTestTypeGUInt64;
|
288
|
+
#define REGRESS_GUINT64_CONSTANTA ((RegressTestTypeGUInt64) -1)
|
289
|
+
|
290
|
+
/* structures */
|
291
|
+
typedef struct _RegressTestStructA RegressTestStructA;
|
292
|
+
typedef struct _RegressTestStructB RegressTestStructB;
|
293
|
+
typedef struct _RegressTestStructC RegressTestStructC;
|
294
|
+
typedef struct _RegressTestStructD RegressTestStructD;
|
295
|
+
typedef struct _RegressTestStructF RegressTestStructF;
|
296
|
+
|
297
|
+
struct _RegressTestStructA
|
298
|
+
{
|
299
|
+
gint some_int;
|
300
|
+
gint8 some_int8;
|
301
|
+
gdouble some_double;
|
302
|
+
RegressTestEnum some_enum;
|
303
|
+
};
|
304
|
+
|
305
|
+
void regress_test_struct_a_clone (RegressTestStructA *a,
|
306
|
+
RegressTestStructA *a_out);
|
307
|
+
void regress_test_struct_a_parse (RegressTestStructA *a_out, const gchar *string);
|
308
|
+
|
309
|
+
struct _RegressTestStructB
|
310
|
+
{
|
311
|
+
gint8 some_int8;
|
312
|
+
RegressTestStructA nested_a;
|
313
|
+
};
|
314
|
+
|
315
|
+
void regress_test_struct_b_clone (RegressTestStructB *b,
|
316
|
+
RegressTestStructB *b_out);
|
317
|
+
|
318
|
+
/* This one has a non-basic member */
|
319
|
+
struct _RegressTestStructC
|
320
|
+
{
|
321
|
+
gint another_int;
|
322
|
+
GObject *obj;
|
323
|
+
};
|
324
|
+
|
325
|
+
/* This one has annotated fields */
|
326
|
+
/**
|
327
|
+
* RegressTestStructD:
|
328
|
+
* @array1: (array zero-terminated=1):
|
329
|
+
* @array2: (array zero-terminated=1) (element-type RegressTestObj):
|
330
|
+
* @field: (type RegressTestObj):
|
331
|
+
* @list: (element-type RegressTestObj):
|
332
|
+
* @garray: (element-type RegressTestObj):
|
333
|
+
* @ref_count:
|
334
|
+
*/
|
335
|
+
struct _RegressTestStructD
|
336
|
+
{
|
337
|
+
RegressTestStructA **array1;
|
338
|
+
gpointer *array2;
|
339
|
+
gpointer field;
|
340
|
+
GList *list;
|
341
|
+
GPtrArray *garray;
|
342
|
+
};
|
343
|
+
|
344
|
+
/* This one has an array of anonymous unions, inspired by GValue */
|
345
|
+
struct RegressTestStructE
|
346
|
+
{
|
347
|
+
GType some_type;
|
348
|
+
union {
|
349
|
+
gint v_int;
|
350
|
+
guint v_uint;
|
351
|
+
glong v_long;
|
352
|
+
gulong v_ulong;
|
353
|
+
gint64 v_int64;
|
354
|
+
guint64 v_uint64;
|
355
|
+
gfloat v_float;
|
356
|
+
gdouble v_double;
|
357
|
+
gpointer v_pointer;
|
358
|
+
} some_union[2];
|
359
|
+
};
|
360
|
+
|
361
|
+
/* This one has members with const or volatile modifiers. */
|
362
|
+
struct _RegressTestStructF
|
363
|
+
{
|
364
|
+
volatile gint ref_count;
|
365
|
+
const gint *data1;
|
366
|
+
const gint *const data2;
|
367
|
+
const gint *const *const data3;
|
368
|
+
const gint **const* data4;
|
369
|
+
volatile gint *const data5;
|
370
|
+
const gint *volatile data6;
|
371
|
+
};
|
372
|
+
|
373
|
+
/* plain-old-data boxed types */
|
374
|
+
typedef struct _RegressTestSimpleBoxedA RegressTestSimpleBoxedA;
|
375
|
+
typedef struct _RegressTestSimpleBoxedB RegressTestSimpleBoxedB;
|
376
|
+
|
377
|
+
struct _RegressTestSimpleBoxedA
|
378
|
+
{
|
379
|
+
gint some_int;
|
380
|
+
gint8 some_int8;
|
381
|
+
gdouble some_double;
|
382
|
+
RegressTestEnum some_enum;
|
383
|
+
};
|
384
|
+
|
385
|
+
/* Intentionally uses _get_gtype */
|
386
|
+
GType regress_test_simple_boxed_a_get_gtype (void);
|
387
|
+
RegressTestSimpleBoxedA *regress_test_simple_boxed_a_copy (RegressTestSimpleBoxedA *a);
|
388
|
+
gboolean regress_test_simple_boxed_a_equals (RegressTestSimpleBoxedA *a,
|
389
|
+
RegressTestSimpleBoxedA *other_a);
|
390
|
+
const RegressTestSimpleBoxedA *regress_test_simple_boxed_a_const_return (void);
|
391
|
+
|
392
|
+
|
393
|
+
struct _RegressTestSimpleBoxedB
|
394
|
+
{
|
395
|
+
gint8 some_int8;
|
396
|
+
RegressTestSimpleBoxedA nested_a;
|
397
|
+
};
|
398
|
+
|
399
|
+
GType regress_test_simple_boxed_b_get_type (void);
|
400
|
+
RegressTestSimpleBoxedB *regress_test_simple_boxed_b_copy (RegressTestSimpleBoxedB *b);
|
401
|
+
|
402
|
+
/* opaque boxed */
|
403
|
+
#define REGRESS_TEST_TYPE_BOXED (regress_test_boxed_get_type())
|
404
|
+
|
405
|
+
typedef struct _RegressTestBoxed RegressTestBoxed;
|
406
|
+
typedef struct _RegressTestBoxedPrivate RegressTestBoxedPrivate;
|
407
|
+
|
408
|
+
struct _RegressTestBoxed
|
409
|
+
{
|
410
|
+
gint8 some_int8;
|
411
|
+
RegressTestSimpleBoxedA nested_a;
|
412
|
+
|
413
|
+
RegressTestBoxedPrivate *priv;
|
414
|
+
};
|
415
|
+
|
416
|
+
GType regress_test_boxed_get_type (void);
|
417
|
+
RegressTestBoxed *regress_test_boxed_new (void);
|
418
|
+
RegressTestBoxed *regress_test_boxed_new_alternative_constructor1 (int i);
|
419
|
+
RegressTestBoxed *regress_test_boxed_new_alternative_constructor2 (int i, int j);
|
420
|
+
RegressTestBoxed *regress_test_boxed_new_alternative_constructor3 (char *s);
|
421
|
+
|
422
|
+
RegressTestBoxed *regress_test_boxed_copy (RegressTestBoxed *boxed);
|
423
|
+
gboolean regress_test_boxed_equals (RegressTestBoxed *boxed,
|
424
|
+
RegressTestBoxed *other);
|
425
|
+
|
426
|
+
typedef struct _RegressTestBoxedB RegressTestBoxedB;
|
427
|
+
|
428
|
+
struct _RegressTestBoxedB
|
429
|
+
{
|
430
|
+
gint8 some_int8;
|
431
|
+
glong some_long;
|
432
|
+
};
|
433
|
+
|
434
|
+
GType regress_test_boxed_b_get_type (void);
|
435
|
+
RegressTestBoxedB *regress_test_boxed_b_new (gint8 some_int8, glong some_long);
|
436
|
+
RegressTestBoxedB *regress_test_boxed_b_copy (RegressTestBoxedB *boxed);
|
437
|
+
|
438
|
+
typedef struct _RegressTestBoxedC RegressTestBoxedC;
|
439
|
+
|
440
|
+
struct _RegressTestBoxedC
|
441
|
+
{
|
442
|
+
guint refcount;
|
443
|
+
guint another_thing;
|
444
|
+
};
|
445
|
+
|
446
|
+
GType regress_test_boxed_c_get_type (void);
|
447
|
+
RegressTestBoxedC *regress_test_boxed_c_new (void);
|
448
|
+
|
449
|
+
typedef struct _RegressTestBoxedD RegressTestBoxedD;
|
450
|
+
|
451
|
+
GType regress_test_boxed_d_get_type (void);
|
452
|
+
|
453
|
+
RegressTestBoxedD *regress_test_boxed_d_new (const char *a_string, int a_int);
|
454
|
+
RegressTestBoxedD *regress_test_boxed_d_copy (RegressTestBoxedD *boxed);
|
455
|
+
void regress_test_boxed_d_free (RegressTestBoxedD *boxed);
|
456
|
+
|
457
|
+
int regress_test_boxed_d_get_magic (RegressTestBoxedD *boxed);
|
458
|
+
|
459
|
+
/* gobject */
|
460
|
+
#define REGRESS_TEST_TYPE_OBJ (regress_test_obj_get_type ())
|
461
|
+
#define REGRESS_TEST_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), REGRESS_TEST_TYPE_OBJ, RegressTestObj))
|
462
|
+
#define REGRESS_TEST_IS_OBJECT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), REGRESS_TEST_TYPE_OBJ))
|
463
|
+
#define REGRESS_TEST_OBJ_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), REGRESS_TEST_TYPE_OBJ, RegressTestObjClass))
|
464
|
+
|
465
|
+
typedef struct _RegressTestObj RegressTestObj;
|
466
|
+
typedef struct _RegressTestObjClass RegressTestObjClass;
|
467
|
+
|
468
|
+
/**
|
469
|
+
* RegressTestObj:
|
470
|
+
* @bare: (allow-none):
|
471
|
+
*/
|
472
|
+
struct _RegressTestObj
|
473
|
+
{
|
474
|
+
GObject parent_instance;
|
475
|
+
|
476
|
+
GObject *bare;
|
477
|
+
RegressTestBoxed *boxed;
|
478
|
+
GHashTable *hash_table;
|
479
|
+
GList *list;
|
480
|
+
gint8 some_int8;
|
481
|
+
float some_float;
|
482
|
+
double some_double;
|
483
|
+
char* string;
|
484
|
+
GType gtype;
|
485
|
+
};
|
486
|
+
|
487
|
+
struct _RegressTestObjClass
|
488
|
+
{
|
489
|
+
GObjectClass parent_class;
|
490
|
+
|
491
|
+
int (*matrix) (RegressTestObj *obj, const char *somestr);
|
492
|
+
|
493
|
+
/**
|
494
|
+
* RegressTestObjClass::allow_none_vfunc:
|
495
|
+
* @two: (allow-none): Another object
|
496
|
+
*/
|
497
|
+
void (*allow_none_vfunc) (RegressTestObj *obj, RegressTestObj *two);
|
498
|
+
|
499
|
+
guint test_signal;
|
500
|
+
guint test_signal_with_static_scope_arg;
|
501
|
+
|
502
|
+
/* Should be replaced with simple "gpointer" and not be callback */
|
503
|
+
void (*_regress_reserved1) (void);
|
504
|
+
void (*_regress_reserved2) (void);
|
505
|
+
};
|
506
|
+
|
507
|
+
GType regress_test_obj_get_type (void);
|
508
|
+
RegressTestObj* regress_test_obj_new (RegressTestObj *obj);
|
509
|
+
RegressTestObj* regress_constructor (void);
|
510
|
+
RegressTestObj* regress_test_obj_new_from_file (const char *x, GError **error);
|
511
|
+
void regress_test_obj_set_bare (RegressTestObj *obj, GObject *bare);
|
512
|
+
void regress_test_obj_emit_sig_with_obj (RegressTestObj *obj);
|
513
|
+
void regress_test_obj_emit_sig_with_foreign_struct (RegressTestObj *obj);
|
514
|
+
void regress_test_obj_emit_sig_with_int64 (RegressTestObj *obj);
|
515
|
+
void regress_test_obj_emit_sig_with_uint64 (RegressTestObj *obj);
|
516
|
+
int regress_test_obj_instance_method (RegressTestObj *obj);
|
517
|
+
double regress_test_obj_static_method (int x);
|
518
|
+
void regress_forced_method (RegressTestObj *obj);
|
519
|
+
|
520
|
+
void regress_test_array_fixed_out_objects (RegressTestObj ***objs);
|
521
|
+
|
522
|
+
void regress_test_obj_torture_signature_0 (RegressTestObj *obj,
|
523
|
+
int x,
|
524
|
+
double *y,
|
525
|
+
int *z,
|
526
|
+
const char *foo,
|
527
|
+
int *q,
|
528
|
+
guint m);
|
529
|
+
gboolean regress_test_obj_torture_signature_1 (RegressTestObj *obj,
|
530
|
+
int x,
|
531
|
+
double *y,
|
532
|
+
int *z,
|
533
|
+
const char *foo,
|
534
|
+
int *q,
|
535
|
+
guint m,
|
536
|
+
GError **error);
|
537
|
+
|
538
|
+
gboolean regress_test_obj_skip_return_val (RegressTestObj *obj,
|
539
|
+
gint a,
|
540
|
+
gint *out_b,
|
541
|
+
gdouble c,
|
542
|
+
gint *inout_d,
|
543
|
+
gint *out_sum,
|
544
|
+
gint num1,
|
545
|
+
gint num2,
|
546
|
+
GError **error);
|
547
|
+
|
548
|
+
gboolean regress_test_obj_skip_return_val_no_out (RegressTestObj *obj,
|
549
|
+
gint a,
|
550
|
+
GError **error);
|
551
|
+
|
552
|
+
gboolean regress_test_obj_skip_param (RegressTestObj *obj,
|
553
|
+
gint a,
|
554
|
+
gint *out_b,
|
555
|
+
gdouble c,
|
556
|
+
gint *inout_d,
|
557
|
+
gint *out_sum,
|
558
|
+
gint num1,
|
559
|
+
gint num2,
|
560
|
+
GError **error);
|
561
|
+
|
562
|
+
gboolean regress_test_obj_skip_out_param (RegressTestObj *obj,
|
563
|
+
gint a,
|
564
|
+
gint *out_b,
|
565
|
+
gdouble c,
|
566
|
+
gint *inout_d,
|
567
|
+
gint *out_sum,
|
568
|
+
gint num1,
|
569
|
+
gint num2,
|
570
|
+
GError **error);
|
571
|
+
|
572
|
+
gboolean regress_test_obj_skip_inout_param (RegressTestObj *obj,
|
573
|
+
gint a,
|
574
|
+
gint *out_b,
|
575
|
+
gdouble c,
|
576
|
+
gint *inout_d,
|
577
|
+
gint *out_sum,
|
578
|
+
gint num1,
|
579
|
+
gint num2,
|
580
|
+
GError **error);
|
581
|
+
|
582
|
+
/* virtual */
|
583
|
+
int regress_test_obj_do_matrix (RegressTestObj *obj, const char *somestr);
|
584
|
+
|
585
|
+
void regress_func_obj_null_in (RegressTestObj *obj);
|
586
|
+
void regress_test_obj_null_out (RegressTestObj **obj);
|
587
|
+
|
588
|
+
/* inheritance */
|
589
|
+
#define REGRESS_TEST_TYPE_SUB_OBJ (regress_test_sub_obj_get_type ())
|
590
|
+
#define REGRESS_TEST_SUB_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), REGRESS_TEST_TYPE_SUB_OBJ, RegressTestSubObj))
|
591
|
+
#define REGRESS_TEST_IS_SUB_OBJECT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), REGRESS_TEST_TYPE_SUB_OBJ))
|
592
|
+
#define REGRESS_TEST_SUB_OBJ_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), REGRESS_TEST_TYPE_SUB_OBJ, RegressTestSubObjClass))
|
593
|
+
|
594
|
+
typedef struct _RegressTestSubObj RegressTestSubObj;
|
595
|
+
typedef struct _RegressTestSubObjClass RegressTestSubObjClass;
|
596
|
+
|
597
|
+
struct _RegressTestSubObj
|
598
|
+
{
|
599
|
+
RegressTestObj parent_instance;
|
600
|
+
};
|
601
|
+
|
602
|
+
struct _RegressTestSubObjClass
|
603
|
+
{
|
604
|
+
RegressTestObjClass parent_class;
|
605
|
+
};
|
606
|
+
|
607
|
+
GType regress_test_sub_obj_get_type (void);
|
608
|
+
RegressTestObj* regress_test_sub_obj_new (void);
|
609
|
+
void regress_test_sub_obj_unset_bare (RegressTestSubObj *obj);
|
610
|
+
int regress_test_sub_obj_instance_method (RegressTestSubObj *obj);
|
611
|
+
|
612
|
+
/* fundamental object */
|
613
|
+
#define REGRESS_TEST_TYPE_FUNDAMENTAL_OBJECT (regress_test_fundamental_object_get_type())
|
614
|
+
#define REGRESS_TEST_IS_FUNDAMENTAL_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), REGRESS_TEST_TYPE_FUNDAMENTAL_OBJECT))
|
615
|
+
#define REGRESS_TEST_IS_FUNDAMENTAL_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), REGRESS_TEST_TYPE_FUNDAMENTAL_OBJECT))
|
616
|
+
#define REGRESS_TEST_FUNDAMENTAL_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), REGRESS_TEST_TYPE_FUNDAMENTAL_OBJECT, RegressTestFundamentalObjectClass))
|
617
|
+
#define REGRESS_TEST_FUNDAMENTAL_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), REGRESS_TEST_TYPE_FUNDAMENTAL_OBJECT, RegressTestFundamentalObject))
|
618
|
+
#define REGRESS_TEST_FUNDAMENTAL_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), REGRESS_TEST_TYPE_FUNDAMENTAL_OBJECT, RegressTestFundamentalObjectClass))
|
619
|
+
#define REGRESS_TEST_FUNDAMENTAL_OBJECT_CAST(obj) ((RegressTestFundamentalObject*)(obj))
|
620
|
+
|
621
|
+
typedef struct _RegressTestFundamentalObject RegressTestFundamentalObject;
|
622
|
+
typedef struct _RegressTestFundamentalObjectClass RegressTestFundamentalObjectClass;
|
623
|
+
/**
|
624
|
+
* RegressTestFundamentalObjectCopyFunction:
|
625
|
+
*
|
626
|
+
* Returns: (transfer full):
|
627
|
+
*/
|
628
|
+
typedef RegressTestFundamentalObject * (*RegressTestFundamentalObjectCopyFunction) (const RegressTestFundamentalObject *obj);
|
629
|
+
typedef void (*RegressTestFundamentalObjectFinalizeFunction) (RegressTestFundamentalObject *obj);
|
630
|
+
|
631
|
+
|
632
|
+
struct _RegressTestFundamentalObject {
|
633
|
+
GTypeInstance instance;
|
634
|
+
gint refcount;
|
635
|
+
guint flags;
|
636
|
+
};
|
637
|
+
|
638
|
+
struct _RegressTestFundamentalObjectClass {
|
639
|
+
GTypeClass type_class;
|
640
|
+
|
641
|
+
RegressTestFundamentalObjectCopyFunction copy;
|
642
|
+
RegressTestFundamentalObjectFinalizeFunction finalize;
|
643
|
+
};
|
644
|
+
|
645
|
+
GType regress_test_fundamental_object_get_type (void);
|
646
|
+
RegressTestFundamentalObject* regress_test_fundamental_object_ref (RegressTestFundamentalObject *fundamental_object);
|
647
|
+
void regress_test_fundamental_object_unref (RegressTestFundamentalObject *fundamental_object);
|
648
|
+
|
649
|
+
#define REGRESS_TEST_VALUE_HOLDS_FUNDAMENTAL_OBJECT(value) (G_VALUE_HOLDS(value, REGRESS_TEST_TYPE_FUNDAMENTAL_OBJECT))
|
650
|
+
|
651
|
+
void regress_test_value_set_fundamental_object (GValue *value, RegressTestFundamentalObject *fundamental_object);
|
652
|
+
RegressTestFundamentalObject* regress_test_value_get_fundamental_object (const GValue *value);
|
653
|
+
|
654
|
+
typedef struct _RegressTestFundamentalSubObject RegressTestFundamentalSubObject;
|
655
|
+
typedef struct _RegressTestFundamentalSubObjectClass RegressTestFundamentalSubObjectClass;
|
656
|
+
|
657
|
+
struct _RegressTestFundamentalSubObject
|
658
|
+
{
|
659
|
+
RegressTestFundamentalObject fundamental_object;
|
660
|
+
char *data;
|
661
|
+
};
|
662
|
+
|
663
|
+
struct _RegressTestFundamentalSubObjectClass {
|
664
|
+
RegressTestFundamentalObjectClass fundamental_object_class;
|
665
|
+
};
|
666
|
+
|
667
|
+
GType regress_test_fundamental_sub_object_get_type(void);
|
668
|
+
|
669
|
+
RegressTestFundamentalSubObject *
|
670
|
+
regress_test_fundamental_sub_object_new (const char *data);
|
671
|
+
|
672
|
+
/* callback */
|
673
|
+
typedef void (*RegressTestSimpleCallback) (void);
|
674
|
+
typedef int (*RegressTestCallback) (void);
|
675
|
+
typedef int (*RegressTestCallbackUserData) (gpointer user_data);
|
676
|
+
/**
|
677
|
+
* RegressTestCallbackHashtable:
|
678
|
+
* @data: (element-type utf8 gint): a hash table; will be modified
|
679
|
+
*/
|
680
|
+
typedef void (*RegressTestCallbackHashtable) (GHashTable *data);
|
681
|
+
typedef void (*RegressTestCallbackGError) (const GError *error);
|
682
|
+
/**
|
683
|
+
* RegressTestCallbackOwnedGError:
|
684
|
+
* @error: (transfer full): GError instance; must be freed by the callback
|
685
|
+
*/
|
686
|
+
typedef void (*RegressTestCallbackOwnedGError) (GError *error);
|
687
|
+
/**
|
688
|
+
* RegressTestCallbackFull:
|
689
|
+
* @foo: the investment rate
|
690
|
+
* @bar: how much money
|
691
|
+
* @path: (type filename): Path to file
|
692
|
+
*/
|
693
|
+
typedef int (*RegressTestCallbackFull) (int foo, double bar, char *path);
|
694
|
+
/**
|
695
|
+
* RegressTestCallbackArray:
|
696
|
+
* @one: (array length=one_length):
|
697
|
+
* @one_length:
|
698
|
+
* @two: (array length=two_length) (element-type utf8):
|
699
|
+
* @two_length:
|
700
|
+
*/
|
701
|
+
typedef int (*RegressTestCallbackArray) (int *one, gsize one_length, const char** two, int two_length);
|
702
|
+
|
703
|
+
void regress_test_simple_callback (RegressTestSimpleCallback callback);
|
704
|
+
int regress_test_callback (RegressTestCallback callback);
|
705
|
+
int regress_test_multi_callback (RegressTestCallback callback);
|
706
|
+
int regress_test_array_callback (RegressTestCallbackArray callback);
|
707
|
+
int regress_test_callback_user_data (RegressTestCallbackUserData callback,
|
708
|
+
gpointer user_data);
|
709
|
+
int regress_test_callback_destroy_notify (RegressTestCallbackUserData callback,
|
710
|
+
gpointer user_data,
|
711
|
+
GDestroyNotify notify);
|
712
|
+
int regress_test_callback_destroy_notify_no_user_data (RegressTestCallbackUserData callback,
|
713
|
+
GDestroyNotify notify);
|
714
|
+
int regress_test_callback_thaw_notifications (void);
|
715
|
+
|
716
|
+
void regress_test_callback_async (RegressTestCallbackUserData callback, gpointer user_data);
|
717
|
+
int regress_test_callback_thaw_async (void);
|
718
|
+
|
719
|
+
void regress_test_async_ready_callback (GAsyncReadyCallback callback);
|
720
|
+
|
721
|
+
void regress_test_obj_instance_method_callback (RegressTestObj *obj, RegressTestCallback callback);
|
722
|
+
void regress_test_obj_static_method_callback (RegressTestCallback callback);
|
723
|
+
RegressTestObj *regress_test_obj_new_callback (RegressTestCallbackUserData callback,
|
724
|
+
gpointer user_data,
|
725
|
+
GDestroyNotify notify);
|
726
|
+
void regress_test_hash_table_callback (GHashTable *data, RegressTestCallbackHashtable callback);
|
727
|
+
void regress_test_gerror_callback (RegressTestCallbackGError callback);
|
728
|
+
void regress_test_null_gerror_callback (RegressTestCallbackGError callback);
|
729
|
+
void regress_test_owned_gerror_callback (RegressTestCallbackOwnedGError callback);
|
730
|
+
|
731
|
+
void regress_test_skip_unannotated_callback (RegressTestCallback callback);
|
732
|
+
|
733
|
+
typedef struct _RegressTestInterface RegressTestInterface;
|
734
|
+
|
735
|
+
/* interface */
|
736
|
+
#define REGRESS_TEST_TYPE_INTERFACE (regress_test_interface_get_type ())
|
737
|
+
#define REGRESS_TEST_INTERFACE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), REGRESS_TEST_TYPE_INTERFACE, RegressTestInterface))
|
738
|
+
#define REGRESS_TEST_IS_INTERFACE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), REGRESS_TEST_TYPE_INTERFACE))
|
739
|
+
#define REGRESS_TEST_INTERFACE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), REGRESS_TEST_TYPE_INTERFACE, RegressTestInterfaceIface))
|
740
|
+
|
741
|
+
typedef struct _RegressTestInterfaceIface RegressTestInterfaceIface;
|
742
|
+
|
743
|
+
struct _RegressTestInterfaceIface {
|
744
|
+
GTypeInterface base_iface;
|
745
|
+
};
|
746
|
+
|
747
|
+
GType regress_test_interface_get_type (void) G_GNUC_CONST;
|
748
|
+
|
749
|
+
/* gobject with non-standard prefix */
|
750
|
+
#define REGRESS_TEST_TYPE_WI_802_1X (regress_test_wi_802_1x_get_type ())
|
751
|
+
#define REGRESS_TEST_WI_802_1X(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), REGRESS_TEST_TYPE_WI_802_1X, RegressTestWi8021x))
|
752
|
+
#define REGRESS_TEST_IS_WI_802_1X(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), REGRESS_TEST_TYPE_WI_802_1X))
|
753
|
+
#define REGRESS_TEST_WI_802_1X_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), REGRESS_TEST_TYPE_WI_802_1X, RegressTestWi8021xClass))
|
754
|
+
|
755
|
+
typedef struct
|
756
|
+
{
|
757
|
+
GObject parent_instance;
|
758
|
+
|
759
|
+
gboolean testbool;
|
760
|
+
} RegressTestWi8021x;
|
761
|
+
|
762
|
+
typedef struct
|
763
|
+
{
|
764
|
+
GObjectClass parent_class;
|
765
|
+
} RegressTestWi8021xClass;
|
766
|
+
|
767
|
+
GType regress_test_wi_802_1x_get_type (void);
|
768
|
+
RegressTestWi8021x* regress_test_wi_802_1x_new (void);
|
769
|
+
gboolean regress_test_wi_802_1x_get_testbool (RegressTestWi8021x *obj);
|
770
|
+
void regress_test_wi_802_1x_set_testbool (RegressTestWi8021x *obj, gboolean v);
|
771
|
+
int regress_test_wi_802_1x_static_method (int x);
|
772
|
+
|
773
|
+
/* floating gobject */
|
774
|
+
#define REGRESS_TEST_TYPE_FLOATING (regress_test_floating_get_type ())
|
775
|
+
#define REGRESS_TEST_FLOATING(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), REGRESS_TEST_TYPE_FLOATING, RegressTestFloating))
|
776
|
+
#define REGRESS_TEST_IS_FLOATING(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), REGRESS_TEST_TYPE_FLOATING))
|
777
|
+
#define REGRESS_TEST_FLOATING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), REGRESS_TEST_TYPE_FLOATING, RegressTestFloatingClass))
|
778
|
+
|
779
|
+
typedef struct
|
780
|
+
{
|
781
|
+
GInitiallyUnowned parent_instance;
|
782
|
+
} RegressTestFloating;
|
783
|
+
|
784
|
+
typedef struct
|
785
|
+
{
|
786
|
+
GInitiallyUnownedClass parent_class;
|
787
|
+
} RegressTestFloatingClass;
|
788
|
+
|
789
|
+
GType regress_test_floating_get_type (void);
|
790
|
+
RegressTestFloating* regress_test_floating_new (void);
|
791
|
+
|
792
|
+
/* Function signature torture tests */
|
793
|
+
void regress_test_torture_signature_0 (int x,
|
794
|
+
double *y,
|
795
|
+
int *z,
|
796
|
+
const char *foo,
|
797
|
+
int *q,
|
798
|
+
guint m);
|
799
|
+
gboolean regress_test_torture_signature_1 (int x,
|
800
|
+
double *y,
|
801
|
+
int *z,
|
802
|
+
const char *foo,
|
803
|
+
int *q,
|
804
|
+
guint m,
|
805
|
+
GError **error);
|
806
|
+
void regress_test_torture_signature_2 (int x,
|
807
|
+
RegressTestCallbackUserData callback,
|
808
|
+
gpointer user_data,
|
809
|
+
GDestroyNotify notify,
|
810
|
+
double *y,
|
811
|
+
int *z,
|
812
|
+
const char *foo,
|
813
|
+
int *q,
|
814
|
+
guint m);
|
815
|
+
|
816
|
+
GValue *regress_test_date_in_gvalue (void);
|
817
|
+
GValue *regress_test_strv_in_gvalue (void);
|
818
|
+
|
819
|
+
GObject * _regress_this_is_a_private_symbol (void);
|
820
|
+
|
821
|
+
void regress_test_multiline_doc_comments (void);
|
822
|
+
void regress_test_nested_parameter (int a);
|
823
|
+
|
824
|
+
/**
|
825
|
+
* RegressSkippedStructure: (skip)
|
826
|
+
*
|
827
|
+
* This should be skipped, and moreover, all function which
|
828
|
+
* use it should be.
|
829
|
+
*/
|
830
|
+
typedef struct
|
831
|
+
{
|
832
|
+
int x;
|
833
|
+
double v;
|
834
|
+
} RegressSkippedStructure;
|
835
|
+
|
836
|
+
void regress_random_function_with_skipped_structure (int x,
|
837
|
+
RegressSkippedStructure *foo,
|
838
|
+
double v);
|
839
|
+
|
840
|
+
/**
|
841
|
+
* RegressIntset:
|
842
|
+
*
|
843
|
+
* Like telepathy-glib's TpIntset.
|
844
|
+
*
|
845
|
+
*/
|
846
|
+
typedef struct _RegressIntset RegressIntset;
|
847
|
+
|
848
|
+
/**
|
849
|
+
* RegressIntSet: (skip)
|
850
|
+
*
|
851
|
+
* Compatibility typedef, like telepathy-glib's TpIntSet
|
852
|
+
*
|
853
|
+
*/
|
854
|
+
typedef RegressIntset RegressIntSet;
|
855
|
+
|
856
|
+
/**
|
857
|
+
* RegressPtrArrayAlias:
|
858
|
+
*
|
859
|
+
* Typedef'd GPtrArray for some reason
|
860
|
+
*/
|
861
|
+
typedef GPtrArray RegressPtrArrayAlias;
|
862
|
+
|
863
|
+
void regress_introspectable_via_alias (RegressPtrArrayAlias *data);
|
864
|
+
|
865
|
+
/**
|
866
|
+
* RegressVaListAlias:
|
867
|
+
*
|
868
|
+
* Typedef'd va_list for additional reasons
|
869
|
+
*/
|
870
|
+
typedef va_list RegressVaListAlias;
|
871
|
+
|
872
|
+
void regress_not_introspectable_via_alias (RegressVaListAlias ok);
|
873
|
+
|
874
|
+
/**
|
875
|
+
* RegressAliasedTestBoxed:
|
876
|
+
*
|
877
|
+
* Typedef TestBoxed to test caller-allocates correctness
|
878
|
+
*/
|
879
|
+
typedef RegressTestBoxed RegressAliasedTestBoxed;
|
880
|
+
|
881
|
+
void regress_aliased_caller_alloc (RegressAliasedTestBoxed *boxed);
|
882
|
+
|
883
|
+
/* private testing */
|
884
|
+
|
885
|
+
typedef struct {
|
886
|
+
gint this_is_public_before;
|
887
|
+
/* < private > */
|
888
|
+
gint this_is_private;
|
889
|
+
/* < public > */
|
890
|
+
gint this_is_public_after;
|
891
|
+
} RegressTestPrivateStruct;
|
892
|
+
|
893
|
+
typedef enum {
|
894
|
+
REGRESS_TEST_PUBLIC_ENUM_BEFORE = 1 << 0,
|
895
|
+
/* <private> */
|
896
|
+
REGRESS_TEST_PRIVATE_ENUM = 1 << 1,
|
897
|
+
/* <public> */
|
898
|
+
REGRESS_TEST_PUBLIC_ENUM_AFTER = 1 << 2,
|
899
|
+
} RegressTestPrivateEnum;
|
900
|
+
|
901
|
+
typedef struct {
|
902
|
+
gint just_int;
|
903
|
+
gint array[10];
|
904
|
+
} RegressTestStructFixedArray;
|
905
|
+
|
906
|
+
void regress_test_struct_fixed_array_frob (RegressTestStructFixedArray *str);
|
907
|
+
|
908
|
+
#define REGRESS_UTF8_CONSTANT "const \xe2\x99\xa5 utf8"
|
909
|
+
|
910
|
+
#ifdef __GNUC__
|
911
|
+
#define REGRESS_TEST_GNUC_EXTENSION_STMT(foo) (G_GNUC_EXTENSION ({ int x[10]; x[5] = 42; x[5]; }))
|
912
|
+
#endif
|
913
|
+
|
914
|
+
/* https://bugzilla.gnome.org/show_bug.cgi?id=662888 */
|
915
|
+
#define REGRESS_LONG_STRING_CONSTANT \
|
916
|
+
"TYPE,VALUE,ENCODING,CHARSET,LANGUAGE,DOM,INTL,POSTAL,PARCEL," \
|
917
|
+
"HOME,WORK,PREF,VOICE,FAX,MSG,CELL,PAGER,BBS,MODEM,CAR,ISDN,VIDEO," \
|
918
|
+
"AOL,APPLELINK,ATTMAIL,CIS,EWORLD,INTERNET,IBMMAIL,MCIMAIL," \
|
919
|
+
"POWERSHARE,PRODIGY,TLX,X400,GIF,CGM,WMF,BMP,MET,PMB,DIB,PICT,TIFF," \
|
920
|
+
"PDF,PS,JPEG,QTIME,MPEG,MPEG2,AVI,WAVE,AIFF,PCM,X509,PGP"
|
921
|
+
|
922
|
+
void regress_has_parameter_named_attrs (int foo,
|
923
|
+
gpointer attributes);
|
924
|
+
|
925
|
+
typedef struct {
|
926
|
+
int dummy;
|
927
|
+
struct {
|
928
|
+
const char *name;
|
929
|
+
guint x;
|
930
|
+
} attributes[32];
|
931
|
+
|
932
|
+
double dummy2;
|
933
|
+
} RegressLikeGnomeKeyringPasswordSchema;
|
934
|
+
|
935
|
+
/* Ensure we ignore symbols that start with _; in particular we don't
|
936
|
+
* want to issue a namespace warning.
|
937
|
+
*/
|
938
|
+
#define _DONTSCANTHIS 1
|
939
|
+
|
940
|
+
/* https://bugzilla.gnome.org/show_bug.cgi?id=685022 */
|
941
|
+
#define REGRESS_MININT64 ((gint64) G_GINT64_CONSTANT(0x8000000000000000))
|
942
|
+
#define REGRESS_MAXUINT64 (G_GINT64_CONSTANT(0xffffffffffffffffU))
|
943
|
+
|
944
|
+
#endif /* __GITESTTYPES_H__ */
|