diff options
author | Laszlo Pandy <lpandy@src.gnome.org> | 2011-02-18 00:11:30 +0100 |
---|---|---|
committer | Laszlo Pandy <lpandy@src.gnome.org> | 2011-02-18 00:12:02 +0100 |
commit | ba7b286b5a3280308f447628c12a26e6079f0110 (patch) | |
tree | b09fa06cfb92c234577c0b16918f18d888dfe523 /tests | |
parent | 75c21af091a74fc5939db13ca02f800d61c3b368 (diff) | |
download | gobject-introspection-ba7b286b5a3280308f447628c12a26e6079f0110.tar.gz |
[tests] Add GIMarshallingTests function for multiple in and multiple out args.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gimarshallingtests.c | 18 | ||||
-rw-r--r-- | tests/gimarshallingtests.h | 4 |
2 files changed, 20 insertions, 2 deletions
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c index cf2827b6..069d46e6 100644 --- a/tests/gimarshallingtests.c +++ b/tests/gimarshallingtests.c @@ -3231,6 +3231,24 @@ gi_marshalling_tests_int_out_out (gint *int0, gint *int1) } /** + * gi_marshalling_tests_int_three_in_three_out: + * @a: (in): + * @b: (in): + * @c: (in): + * @out0: (out): + * @out1: (out): + * @out2: (out): + */ +void +gi_marshalling_tests_int_three_in_three_out(gint a, gint b, gint c, + gint *out0, gint *out1, gint *out2) +{ + *out0 = a; + *out1 = b; + *out2 = c; +} + +/** * gi_marshalling_tests_int_return_out: * @int_: (out): */ diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h index f17c747f..9ad0ab08 100644 --- a/tests/gimarshallingtests.h +++ b/tests/gimarshallingtests.h @@ -701,9 +701,9 @@ GType gi_marshalling_tests_interface2_get_type (void) G_GNUC_CONST; /* Multiple output arguments */ void gi_marshalling_tests_int_out_out (gint *int0, gint *int1); -void gi_marshalling_tests_int_out_in (gint *int0, gint int1); +void gi_marshalling_tests_int_three_in_three_out(gint a, gint b, gint c, + gint *out0, gint *out1, gint *out2); gint gi_marshalling_tests_int_return_out (gint *int_); -void gi_marshalling_tests_utf8_full_out_out (gchar **utf80, gchar **utf82); /* GError */ |