diff options
author | Paolo Borelli <pborelli@gnome.org> | 2012-01-03 17:00:02 +0100 |
---|---|---|
committer | Paolo Borelli <pborelli@gnome.org> | 2012-01-03 17:00:02 +0100 |
commit | 7c38c1ae2240d58fa3709ee92509562358fbe852 (patch) | |
tree | cb646ff2af639ad0570e894bb0c0e583b2e7c48f /tests | |
parent | 979afbcc5a0a8e4b1b16ad5d5cf1740ee2a14033 (diff) | |
download | gobject-introspection-7c38c1ae2240d58fa3709ee92509562358fbe852.tar.gz |
Add a marshalling test for returning a NULL array
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gimarshallingtests.c | 10 | ||||
-rw-r--r-- | tests/gimarshallingtests.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c index 41f86206..7c922d4f 100644 --- a/tests/gimarshallingtests.c +++ b/tests/gimarshallingtests.c @@ -1514,6 +1514,16 @@ gi_marshalling_tests_array_zero_terminated_return (void) } /** + * gi_marshalling_tests_array_zero_terminated_return_null: + * Returns: (array zero-terminated=1) (transfer none): + */ +gchar ** +gi_marshalling_tests_array_zero_terminated_return_null (void) +{ + return NULL; +} + +/** * gi_marshalling_tests_array_zero_terminated_return_struct: * Returns: (array zero-terminated=1) (transfer full): */ diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h index b9d5093d..0ad0569e 100644 --- a/tests/gimarshallingtests.h +++ b/tests/gimarshallingtests.h @@ -395,6 +395,7 @@ void gi_marshalling_tests_array_inout_etc (gint first, gint **ints, gint *length /* Zero-terminated */ gchar **gi_marshalling_tests_array_zero_terminated_return (void); +gchar **gi_marshalling_tests_array_zero_terminated_return_null (void); GIMarshallingTestsBoxedStruct **gi_marshalling_tests_array_zero_terminated_return_struct (void); void gi_marshalling_tests_array_zero_terminated_in (gchar **utf8s); |