summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2011-08-23 14:17:54 -0400
committerJohn (J5) Palmieri <johnp@redhat.com>2011-08-23 14:18:18 -0400
commitf1c3a8040259e3c1d04bbecad88ab5f7fca01738 (patch)
tree7a9109a24ec3b6c0f2f39de56a4b81549388057a
parent3a308bb438246f7d6e87ebe2f6efeb1795fdcd1e (diff)
downloadgobject-introspection-f1c3a8040259e3c1d04bbecad88ab5f7fca01738.tar.gz
add back the fixed_array_out_struct test
-rw-r--r--tests/gimarshallingtests.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index e8300812..8ba33084 100644
--- a/tests/gimarshallingtests.c
+++ b/tests/gimarshallingtests.c
@@ -1180,6 +1180,28 @@ gi_marshalling_tests_array_fixed_out (gint **ints)
}
/**
+ * gi_marshalling_tests_array_fixed_out_struct:
+ * @structs: (out) (array fixed-size=2) (transfer none):
+ */
+void
+gi_marshalling_tests_array_fixed_out_struct (GIMarshallingTestsSimpleStruct **structs)
+{
+ static GIMarshallingTestsSimpleStruct *values;
+
+ if (values == NULL) {
+ values = g_new(GIMarshallingTestsSimpleStruct, 2);
+
+ values[0].long_ = 7;
+ values[0].int8 = 6;
+
+ values[1].long_ = 6;
+ values[1].int8 = 7;
+ }
+
+ *structs = values;
+}
+
+/**
* gi_marshalling_tests_array_fixed_inout:
* @ints: (inout) (array fixed-size=4) (transfer none):
*/