summaryrefslogtreecommitdiff
path: root/test/serialization/generated_serializer/include
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2022-08-03 19:56:36 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2022-10-18 18:52:42 +0900
commitdeaf13de9bd99457300d33d5c38aedd909fe8260 (patch)
tree5bb85338e487b8e3e4a1e794417c5bf5ff46994b /test/serialization/generated_serializer/include
parent207c9e1c1d73dc062d68bf0dbb27a0b58c7581a2 (diff)
test: generated_serializer: Test Flags that is struct member
Add fields to the test struct to test serialization/deserialization of scoped enums and flags that are struct members. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'test/serialization/generated_serializer/include')
-rw-r--r--test/serialization/generated_serializer/include/libcamera/ipa/test.mojom9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/serialization/generated_serializer/include/libcamera/ipa/test.mojom b/test/serialization/generated_serializer/include/libcamera/ipa/test.mojom
index 73081b40..91c31642 100644
--- a/test/serialization/generated_serializer/include/libcamera/ipa/test.mojom
+++ b/test/serialization/generated_serializer/include/libcamera/ipa/test.mojom
@@ -9,6 +9,13 @@ enum IPAOperationCode {
IPAOperationStop,
};
+[scopedEnum] enum ErrorFlags {
+ Error1 = 0x1,
+ Error2 = 0x2,
+ Error3 = 0x4,
+ Error4 = 0x8,
+};
+
struct IPASettings {};
struct TestStruct {
@@ -19,6 +26,8 @@ struct TestStruct {
int32 i;
string s3;
IPAOperationCode c;
+ ErrorFlags e;
+ [flags] ErrorFlags f;
};
interface IPATestInterface {