summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaszlo Pandy <lpandy@src.gnome.org>2011-02-22 12:15:49 +0100
committerLaszlo Pandy <lpandy@src.gnome.org>2011-02-22 12:16:44 +0100
commitf49f46f0c2b4ab2c7e33598596e6df72bd960c19 (patch)
tree9faa13f842bf25ee670ae6e08b92c08ec8a4ee1c
parente16444d4a07613a6ab07e7827ef970fb072830e5 (diff)
downloadgobject-introspection-f49f46f0c2b4ab2c7e33598596e6df72bd960c19.tar.gz
Add non GType flags to GIMarshallingTests.
-rw-r--r--tests/gimarshallingtests.c40
-rw-r--r--tests/gimarshallingtests.h18
2 files changed, 58 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index 069d46e6..bbb6bd8d 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 9ad0ab08..42215601 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 */