[gobject-introspection/ewlsh/fundamental-test] Add additional fundamental test.
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/ewlsh/fundamental-test] Add additional fundamental test.
- Date: Wed, 7 Oct 2020 04:02:31 +0000 (UTC)
commit 2be303c1b338ac207b55d9d0ffc2beca0f9fe6b8
Author: Evan Welsh <2943271+ewlsh users noreply github com>
Date: Tue Oct 6 23:00:47 2020 -0500
Add additional fundamental test.
Necessary as there is currently no Regress function to test whether functions can accept fundamental
parameters.
tests/scanner/regress.c | 10 +++++++++-
tests/scanner/regress.h | 4 ++++
2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index 3a63436ba..de855bfaa 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -3731,7 +3731,15 @@ regress_test_create_fundamental_hidden_class_instance (void)
return (RegressTestFundamentalObject *) g_type_create_instance
(_regress_test_fundamental_hidden_sub_object_get_type());
}
-
+/**
+ * regress_test_get_fundamental_sub_object_data:
+ *
+ * Return value: (transfer full): UTF-8 string
+ */
+char*
+regress_test_get_fundamental_sub_object_data (RegressTestFundamentalSubObject * fundamental_sub_object) {
+ return g_strdup(fundamental_sub_object->data);
+}
/**
* regress_test_callback:
diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h
index 0b239f14b..5819d7d71 100644
--- a/tests/scanner/regress.h
+++ b/tests/scanner/regress.h
@@ -1082,6 +1082,10 @@ _GI_TEST_EXTERN
RegressTestFundamentalObject *
regress_test_create_fundamental_hidden_class_instance (void);
+_GI_TEST_EXTERN
+char*
+regress_test_get_fundamental_sub_object_data (RegressTestFundamentalSubObject * fundamental_sub_object);
+
/* callback */
typedef void (*RegressTestSimpleCallback) (void);
typedef void RegressTestNoPtrCallback (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]