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.c | |
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.c')
-rw-r--r-- | tests/scanner/foo.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/scanner/foo.c b/tests/scanner/foo.c index c65d7289..d1a1c67c 100644 --- a/tests/scanner/foo.c +++ b/tests/scanner/foo.c @@ -294,3 +294,27 @@ foo_dbus_data_get_type (void) (GBoxedFreeFunc) foo_dbus_data_free); return our_type; } + +GType +foo_brect_get_type (void) +{ + static GType our_type = 0; + + if (our_type == 0) + our_type = g_boxed_type_register_static ("FooBRect", + (GBoxedCopyFunc) g_memdup, /* Won't work */ + (GBoxedFreeFunc) g_free); + return our_type; +} + +GType +foo_bunion_get_type (void) +{ + static GType our_type = 0; + + if (our_type == 0) + our_type = g_boxed_type_register_static ("FooBUnion", + (GBoxedCopyFunc) g_memdup, /* Won't work */ + (GBoxedFreeFunc) g_free); + return our_type; +} |