summaryrefslogtreecommitdiff
path: root/tests/scanner
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2011-08-13 09:18:18 -0400
committerJohn (J5) Palmieri <johnp@redhat.com>2011-08-13 09:18:53 -0400
commitdead144faeeef4c0cd547ca287ede994745dbe7d (patch)
tree7c11bd37f274dae5e42c8892c56964c3ef227b3e /tests/scanner
parentd84b7babf5adb637342492d13ab127d43317c8be (diff)
downloadgobject-introspection-dead144faeeef4c0cd547ca287ede994745dbe7d.tar.gz
remove the flat struct array test and replace with object pointer array test
Diffstat (limited to 'tests/scanner')
-rw-r--r--tests/scanner/regress.c15
-rw-r--r--tests/scanner/regress.h2
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index 86927a05..13db3a7c 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -2308,6 +2308,21 @@ regress_test_obj_null_out (RegressTestObj **obj)
*obj = NULL;
}
+/**
+ * regress_test_array_fixed_out_objects:
+ * @objs: (out) (array fixed-size=2) (transfer full): An array of #RegressTestObj
+ */
+void
+regress_test_array_fixed_out_objects (RegressTestObj ***objs)
+{
+ RegressTestObj **values = g_new(gpointer, 2);
+
+ values[0] = regress_constructor();
+ values[1] = regress_constructor();
+
+ *objs = values;
+}
+
typedef struct _CallbackInfo CallbackInfo;
struct _CallbackInfo
diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h
index 7b8d9de4..4c74e098 100644
--- a/tests/scanner/regress.h
+++ b/tests/scanner/regress.h
@@ -341,6 +341,8 @@ int regress_test_obj_instance_method (RegressTestObj *obj);
double regress_test_obj_static_method (int x);
void regress_forced_method (RegressTestObj *obj);
+void regress_test_array_fixed_out_objects (RegressTestObj ***objs);
+
void regress_test_obj_torture_signature_0 (RegressTestObj *obj,
int x,
double *y,