mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 16:45:07 +03:00
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>
This commit is contained in:
parent
207c9e1c1d
commit
deaf13de9b
2 changed files with 30 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue