diff options
author | Martin Pitt <martinpitt@gnome.org> | 2012-11-21 10:25:13 +0100 |
---|---|---|
committer | Martin Pitt <martinpitt@gnome.org> | 2012-11-21 15:13:28 +0100 |
commit | 17fc978c081195dad1f6a66d69cc6e18423e6db5 (patch) | |
tree | eae5d98b67a74feb40ee6b60e521922ad9db3c9b /tests/gimarshallingtests.c | |
parent | 21cec56f5aa24bf1288a6ef3ecd2d1d168bff827 (diff) | |
download | gobject-introspection-17fc978c081195dad1f6a66d69cc6e18423e6db5.tar.gz |
GIMarshallingTests: Add more virtual methods with out arguments
Add virtuals method which takes both an (in) and and (out) argument, and
variants with both caller and callee allocation.
This came up in https://bugzilla.gnome.org/show_bug.cgi?id=688783
Diffstat (limited to 'tests/gimarshallingtests.c')
-rw-r--r-- | tests/gimarshallingtests.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c index c92dd10f..9a533293 100644 --- a/tests/gimarshallingtests.c +++ b/tests/gimarshallingtests.c @@ -3941,6 +3941,38 @@ gi_marshalling_tests_object_method_int8_out (GIMarshallingTestsObject *self, gin } /** + * gi_marshalling_tests_object_method_int8_arg_and_out_caller: + * @out: (out caller-allocates): + */ +void +gi_marshalling_tests_object_method_int8_arg_and_out_caller (GIMarshallingTestsObject *self, gint8 arg, gint8 *out) +{ + GI_MARSHALLING_TESTS_OBJECT_GET_CLASS (self)->method_int8_arg_and_out_caller (self, arg, out); +} + +/** + * gi_marshalling_tests_object_method_int8_arg_and_out_callee: + * @out: (out): + */ +void +gi_marshalling_tests_object_method_int8_arg_and_out_callee (GIMarshallingTestsObject *self, gint8 arg, gint8 **out) +{ + GI_MARSHALLING_TESTS_OBJECT_GET_CLASS (self)->method_int8_arg_and_out_callee (self, arg, out); +} + +/** + * gi_marshalling_tests_object_method_str_arg_out_ret: + * @out: (out caller-allocates): + * + * Returns: (transfer none) + */ +const gchar* +gi_marshalling_tests_object_method_str_arg_out_ret (GIMarshallingTestsObject *self, const gchar* arg, guint *out) +{ + return GI_MARSHALLING_TESTS_OBJECT_GET_CLASS (self)->method_str_arg_out_ret (self, arg, out); +} + +/** * gi_marshalling_tests_object_method_with_default_implementation: * @in: (in): */ |