diff options
author | Paolo Borelli <pborelli@gnome.org> | 2013-01-10 22:23:36 +0100 |
---|---|---|
committer | Paolo Borelli <pborelli@gnome.org> | 2013-01-11 09:50:09 +0100 |
commit | 6ad132c69c74f46f54d770835ea45e8a58fbd612 (patch) | |
tree | 6d5be69232d7be2cd1c4e9b51700d25ff141a0d0 /tests/gimarshallingtests.c | |
parent | fbe0966625757266040d1a9831d27f78bd00d753 (diff) | |
download | gobject-introspection-6ad132c69c74f46f54d770835ea45e8a58fbd612.tar.gz |
gimarshallingtests: Add vfunc with an array output
Add vfunc_array_out_param to GIMarshallingTestsObjectClass.
https://bugzilla.gnome.org/show_bug.cgi?id=690851
Diffstat (limited to 'tests/gimarshallingtests.c')
-rw-r--r-- | tests/gimarshallingtests.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c index 95bb196e..d4b6cb30 100644 --- a/tests/gimarshallingtests.c +++ b/tests/gimarshallingtests.c @@ -4239,6 +4239,19 @@ gi_marshalling_tests_object_vfunc_caller_allocated_out_parameter (GIMarshallingT } /** + * gi_marshalling_tests_object_vfunc_array_out_parameter: + * @a: (out) (array zero-terminated=1): + */ +void +gi_marshalling_tests_object_vfunc_array_out_parameter (GIMarshallingTestsObject *self, gfloat **a) +{ + /* make sure that local variables don't get smashed */ + gulong local = 0x12345678; + GI_MARSHALLING_TESTS_OBJECT_GET_CLASS (self)->vfunc_array_out_parameter (self, a); + g_assert_cmpint(local, ==, 0x12345678); +} + +/** * gi_marshalling_tests_object_vfunc_return_value_and_one_out_parameter: * @a: (out): */ |