[gobject-introspection] add back the fixed_array_out_struct test
- From: John Palmieri <johnp src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gobject-introspection] add back the fixed_array_out_struct test
 
- Date: Tue, 23 Aug 2011 18:18:22 +0000 (UTC)
 
commit f1c3a8040259e3c1d04bbecad88ab5f7fca01738
Author: John (J5) Palmieri <johnp redhat com>
Date:   Tue Aug 23 14:17:54 2011 -0400
    add back the fixed_array_out_struct test
 tests/gimarshallingtests.c |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index e830081..8ba3308 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):
  */
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]