[gobject-introspection] Add non GType flags to GIMarshallingTests.
- From: Laszlo Pandy <lpandy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Add non GType flags to GIMarshallingTests.
- Date: Tue, 22 Feb 2011 11:17:23 +0000 (UTC)
commit f49f46f0c2b4ab2c7e33598596e6df72bd960c19
Author: Laszlo Pandy <lpandy src gnome org>
Date: Tue Feb 22 12:15:49 2011 +0100
Add non GType flags to GIMarshallingTests.
tests/gimarshallingtests.c | 40 ++++++++++++++++++++++++++++++++++++++++
tests/gimarshallingtests.h | 18 ++++++++++++++++++
2 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index 069d46e..bbb6bd8 100644
--- a/tests/gimarshallingtests.c
+++ b/tests/gimarshallingtests.c
@@ -2564,6 +2564,46 @@ gi_marshalling_tests_flags_inout (GIMarshallingTestsFlags *flags_)
}
+GIMarshallingTestsNoTypeFlags
+gi_marshalling_tests_no_type_flags_returnv (void)
+{
+ return GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE2;
+}
+
+void
+gi_marshalling_tests_no_type_flags_in (GIMarshallingTestsNoTypeFlags flags_)
+{
+ g_assert(flags_ == GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE2);
+}
+
+void
+gi_marshalling_tests_no_type_flags_in_zero (GIMarshallingTestsNoTypeFlags flags)
+{
+ g_assert(flags == 0);
+}
+
+/**
+ * gi_marshalling_tests_no_type_flags_out:
+ * @flags_: (out):
+ */
+void
+gi_marshalling_tests_no_type_flags_out (GIMarshallingTestsNoTypeFlags *flags_)
+{
+ *flags_ = GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE2;
+}
+
+/**
+ * gi_marshalling_tests_no_type_flags_inout:
+ * @flags_: (inout):
+ */
+void
+gi_marshalling_tests_no_type_flags_inout (GIMarshallingTestsNoTypeFlags *flags_)
+{
+ g_assert(*flags_ == GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE2);
+ *flags_ = GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE1;
+}
+
+
/**
* gi_marshalling_tests_simple_struct_returnv:
* Returns: (transfer none):
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h
index 9ad0ab0..4221560 100644
--- a/tests/gimarshallingtests.h
+++ b/tests/gimarshallingtests.h
@@ -482,6 +482,24 @@ void gi_marshalling_tests_flags_out (GIMarshallingTestsFlags *flags_);
void gi_marshalling_tests_flags_inout (GIMarshallingTestsFlags *flags_);
+/* Flags with no GType */
+
+typedef enum
+{
+ GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE1 = 1 << 0,
+ GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE2 = 1 << 1,
+ GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE3 = 1 << 2
+} GIMarshallingTestsNoTypeFlags;
+
+GIMarshallingTestsNoTypeFlags gi_marshalling_tests_no_type_flags_returnv (void);
+
+void gi_marshalling_tests_no_type_flags_in (GIMarshallingTestsNoTypeFlags flags_);
+void gi_marshalling_tests_no_type_flags_in_zero (GIMarshallingTestsNoTypeFlags flags);
+
+void gi_marshalling_tests_no_type_flags_out (GIMarshallingTestsNoTypeFlags *flags_);
+
+void gi_marshalling_tests_no_type_flags_inout (GIMarshallingTestsNoTypeFlags *flags_);
+
/* Structure */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]