summaryrefslogtreecommitdiff
path: root/tests/scanner/foo.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-08-19 09:31:47 -0400
committerColin Walters <walters@verbum.org>2010-08-31 16:05:56 -0400
commitf8ddb18535cfcc60fc28095f0f6db2895d90edac (patch)
tree63162306bc979d01e12cff4ddcdce304ff888121 /tests/scanner/foo.h
parente66d50732c8ce5cf3ef198e114d94e102a1c4911 (diff)
downloadgobject-introspection-f8ddb18535cfcc60fc28095f0f6db2895d90edac.tar.gz
tests/scanner: Update annotations and tests
First of all, add missing (transfer) annotations that will be required by the new scanner. Other changes: Don't use the (type bitfield) hack; the new scanner will not accept it. Use shifts in the flag constants instead. Use typedefs consistently for structures. Drop scanning of anonymous structure/union members.
Diffstat (limited to 'tests/scanner/foo.h')
-rw-r--r--tests/scanner/foo.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/scanner/foo.h b/tests/scanner/foo.h
index 7120d015..f31a79e2 100644
--- a/tests/scanner/foo.h
+++ b/tests/scanner/foo.h
@@ -298,23 +298,27 @@ union _FooBUnion
FooBRect *rect;
};
-typedef union _FooUnion
+typedef union _FooUnion FooUnion;
+
+union _FooUnion
{
int foo;
-} FooUnion;
+};
typedef struct _FooUtilityStruct FooUtilityStruct;
struct _FooUtilityStruct
{
UtilityStruct bar;
};
-typedef struct _FooThingWithArray
+
+typedef struct _FooThingWithArray FooThingWithArray;
+struct _FooThingWithArray
{
int x;
int y;
char lines[80];
guchar *data;
-} FooThingWithArray;
+} ;
FooBUnion *foo_bunion_new (void);