[gobject-introspection] Add a marshalling test for returning a NULL array



commit 7c38c1ae2240d58fa3709ee92509562358fbe852
Author: Paolo Borelli <pborelli gnome org>
Date:   Tue Jan 3 17:00:02 2012 +0100

    Add a marshalling test for returning a NULL array

 tests/gimarshallingtests.c |   10 ++++++++++
 tests/gimarshallingtests.h |    1 +
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index 41f8620..7c922d4 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 b9d5093..0ad0569 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]