mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-17 01:15:06 +03:00
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>
43 lines
658 B
Text
43 lines
658 B
Text
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
|
|
module ipa.test;
|
|
|
|
enum IPAOperationCode {
|
|
IPAOperationNone,
|
|
IPAOperationInit,
|
|
IPAOperationStart,
|
|
IPAOperationStop,
|
|
};
|
|
|
|
[scopedEnum] enum ErrorFlags {
|
|
Error1 = 0x1,
|
|
Error2 = 0x2,
|
|
Error3 = 0x4,
|
|
Error4 = 0x8,
|
|
};
|
|
|
|
struct IPASettings {};
|
|
|
|
struct TestStruct {
|
|
map<string, string> m;
|
|
array<string> a;
|
|
string s1;
|
|
string s2;
|
|
int32 i;
|
|
string s3;
|
|
IPAOperationCode c;
|
|
ErrorFlags e;
|
|
[flags] ErrorFlags f;
|
|
};
|
|
|
|
interface IPATestInterface {
|
|
init(IPASettings settings) => (int32 ret);
|
|
start() => (int32 ret);
|
|
stop();
|
|
|
|
test(TestStruct s);
|
|
};
|
|
|
|
interface IPATestEventInterface {
|
|
dummyEvent(uint32 val);
|
|
};
|