diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-09-11 14:25:27 +0200 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-09-17 10:04:25 +0200 |
commit | a18d88dd1a42ef646852b32dc00b07d7895b6dc7 (patch) | |
tree | 74680b7c15f9b82a242c3f073fb139812b50493d /tests/scanner/foo.c | |
parent | c2f808b1171c6b5e6de5063040f305dbf37fbd73 (diff) | |
download | gobject-introspection-a18d88dd1a42ef646852b32dc00b07d7895b6dc7.tar.gz |
Make Full the default transfer for returned foreign structs.
For that we also need to read the annotations for foreign structs
before guessing the transfer mode of return values.
https://bugzilla.gnome.org/show_bug.cgi?id=629188
Diffstat (limited to 'tests/scanner/foo.c')
-rw-r--r-- | tests/scanner/foo.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/scanner/foo.c b/tests/scanner/foo.c index a2901f1b..8b8b40d0 100644 --- a/tests/scanner/foo.c +++ b/tests/scanner/foo.c @@ -717,6 +717,15 @@ foo_foreign_struct_new (void) return g_slice_new0 (FooForeignStruct); } +FooForeignStruct* +foo_foreign_struct_copy (FooForeignStruct *original) +{ + FooForeignStruct *copy; + copy = foo_foreign_struct_new (); + copy->foo = original->foo; + return copy; +} + /** * foo_test_varargs_callback: (skip) * |