summaryrefslogtreecommitdiff
path: root/tests/gimarshallingtests.h
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2020-08-23 16:50:30 +0100
committerPhilip Chimento <philip.chimento@gmail.com>2020-09-19 21:55:32 -0700
commit3e2cca38b6b923fad018b56ab5f497a208170159 (patch)
treea1fc834c46db8490ca488fd7bef31a3970d45d12 /tests/gimarshallingtests.h
parent7c9edf260b7c58a1587aa9b31c9f747bd6964487 (diff)
downloadgobject-introspection-3e2cca38b6b923fad018b56ab5f497a208170159.tar.gz
tests: Add a test-case for a vfunc returning flags in different ways
We already had a test for enums, but flags are not precisely the same, so testing both can give bindings better coverage. Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'tests/gimarshallingtests.h')
-rw-r--r--tests/gimarshallingtests.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h
index 747a075d..656cadd9 100644
--- a/tests/gimarshallingtests.h
+++ b/tests/gimarshallingtests.h
@@ -1515,6 +1515,17 @@ struct _GIMarshallingTestsObjectClass
* @object: (in) (transfer full):
*/
void (* vfunc_in_object_transfer_full) (GIMarshallingTestsObject *self, GObject *object);
+
+ /**
+ * GIMarshallingTestsObjectClass::vfunc_return_flags:
+ */
+ GIMarshallingTestsFlags (* vfunc_return_flags) (GIMarshallingTestsObject *self);
+
+ /**
+ * GIMarshallingTestsObjectClass::vfunc_out_flags:
+ * @flags: (out):
+ */
+ void (* vfunc_out_flags) (GIMarshallingTestsObject *self, GIMarshallingTestsFlags *flags);
};
struct _GIMarshallingTestsObject
@@ -1620,6 +1631,12 @@ GIMarshallingTestsEnum gi_marshalling_tests_object_vfunc_return_enum (GIMarshall
_GI_TEST_EXTERN
void gi_marshalling_tests_object_vfunc_out_enum (GIMarshallingTestsObject *self, GIMarshallingTestsEnum *_enum);
+_GI_TEST_EXTERN
+GIMarshallingTestsFlags gi_marshalling_tests_object_vfunc_return_flags (GIMarshallingTestsObject *self);
+
+_GI_TEST_EXTERN
+void gi_marshalling_tests_object_vfunc_out_flags (GIMarshallingTestsObject *self, GIMarshallingTestsFlags *flags);
+
_GI_TEST_EXTERN
void gi_marshalling_tests_object_get_ref_info_for_vfunc_return_object_transfer_none (GIMarshallingTestsObject *self, guint *ref_count, gboolean *is_floating);