diff options
author | Colin Walters <walters@src.gnome.org> | 2008-10-03 19:30:17 +0000 |
---|---|---|
committer | Colin Walters <walters@src.gnome.org> | 2008-10-03 19:30:17 +0000 |
commit | 832b4b26a83891e965062a9561b3e4b876e4c078 (patch) | |
tree | 8e9276fcdc781578b209b9996a997b5ad165bda0 /tests/scanner/foo.h | |
parent | 6f127376dc594e0554f6fc83a8645850987c25ae (diff) | |
download | gobject-introspection-832b4b26a83891e965062a9561b3e4b876e4c078.tar.gz |
Extend coverage of boxed struct/union test cases
svn path=/trunk/; revision=656
Diffstat (limited to 'tests/scanner/foo.h')
-rw-r--r-- | tests/scanner/foo.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/scanner/foo.h b/tests/scanner/foo.h index 2982f9d5..128ee4c1 100644 --- a/tests/scanner/foo.h +++ b/tests/scanner/foo.h @@ -167,6 +167,9 @@ foo_method_external_references (UtilityObject *object, void foo_rectangle_add(FooRectangle *r1, const FooRectangle *r2); +FooRectangle * foo_rectangle_new (int x, int y, int width, int height); + + typedef struct _FooEventAny FooEventAny; typedef struct _FooEventExpose FooEventExpose; @@ -192,4 +195,35 @@ union _FooEvent typedef void FooXEvent; +/* And now some boxed variants */ + +typedef struct _FooBRect FooBRect; + +struct _FooBRect +{ + double x; + double y; +}; + +GType foo_brect_get_type (void); + +FooBRect *foo_brect_new (double x, double y); + +void foo_brect_add (FooBRect *b1, FooBRect *b2); + +typedef union _FooBUnion FooBUnion; + +union _FooBUnion +{ + int type; + double v; + FooBRect *rect; +}; + +FooBUnion *foo_bunion_new (void); + +GType foo_bunion_get_type (void); + +int foo_bunion_get_contained_type (FooBUnion *bunion); + #endif /* __FOO_OBJECT_H__ */ |