[vala/0.52] tests/girwriter: Add missing [Flags] annotation
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.52] tests/girwriter: Add missing [Flags] annotation
- Date: Tue, 20 Jul 2021 08:40:47 +0000 (UTC)
commit b93b58a1725064dd0c2d6d4125180fc44f29bdee
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Jun 25 09:07:16 2021 +0200
tests/girwriter: Add missing [Flags] annotation
tests/girwriter/GirTest-1.0.gir-expected | 6 +++---
tests/girwriter/girtest.vala | 1 +
tests/girwriter/girtest.vapi-expected | 1 +
3 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/tests/girwriter/GirTest-1.0.gir-expected b/tests/girwriter/GirTest-1.0.gir-expected
index d4bb4291e..87615c322 100644
--- a/tests/girwriter/GirTest-1.0.gir-expected
+++ b/tests/girwriter/GirTest-1.0.gir-expected
@@ -28,9 +28,9 @@
<enumeration name="SkippedEnum" c:type="GirTestSkippedEnum" glib:type-name="GirTestSkippedEnum"
glib:get-type="gir_test_skipped_enum_get_type" introspectable="0">
<member name="value1" c:identifier="GIR_TEST_SKIPPED_ENUM_VALUE1" value="0"/>
</enumeration>
- <enumeration name="SkippedFlags" c:type="GirTestSkippedFlags" glib:type-name="GirTestSkippedFlags"
glib:get-type="gir_test_skipped_flags_get_type" introspectable="0">
- <member name="value1" c:identifier="GIR_TEST_SKIPPED_FLAGS_VALUE1" value="0"/>
- </enumeration>
+ <bitfield name="SkippedFlags" c:type="GirTestSkippedFlags" glib:type-name="GirTestSkippedFlags"
glib:get-type="gir_test_skipped_flags_get_type" introspectable="0">
+ <member name="value1" c:identifier="GIR_TEST_SKIPPED_FLAGS_VALUE1" value="1"/>
+ </bitfield>
<enumeration name="ErrorTest" c:type="GirTestErrorTest" glib:error-domain="gir-test-error-test-quark">
<member name="failed" c:identifier="GIR_TEST_ERROR_TEST_FAILED" value="0"/>
<member name="smelly" c:identifier="GIR_TEST_ERROR_TEST_SMELLY" value="1"/>
diff --git a/tests/girwriter/girtest.vala b/tests/girwriter/girtest.vala
index 61f0f4724..1fa012fce 100644
--- a/tests/girwriter/girtest.vala
+++ b/tests/girwriter/girtest.vala
@@ -57,6 +57,7 @@ namespace GirTest {
}
[GIR (visible = false)]
+ [Flags]
public enum SkippedFlags {
VALUE1
}
diff --git a/tests/girwriter/girtest.vapi-expected b/tests/girwriter/girtest.vapi-expected
index 7ed0bfe51..d464ec9a7 100644
--- a/tests/girwriter/girtest.vapi-expected
+++ b/tests/girwriter/girtest.vapi-expected
@@ -192,6 +192,7 @@ namespace GirTest {
VALUE1
}
[CCode (cheader_filename = "girtest.h")]
+ [Flags]
[GIR (visible = false)]
public enum SkippedFlags {
VALUE1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]