Add a test to confirm that serializer and header generation works properly for mojom definition files, and that the serializer works properly. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
34 lines
504 B
Plaintext
34 lines
504 B
Plaintext
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
|
|
module ipa.test;
|
|
|
|
enum IPAOperationCode {
|
|
IPAOperationNone,
|
|
IPAOperationInit,
|
|
IPAOperationStart,
|
|
IPAOperationStop,
|
|
};
|
|
|
|
struct IPASettings {};
|
|
|
|
struct TestStruct {
|
|
map<string, string> m;
|
|
array<string> a;
|
|
string s1;
|
|
string s2;
|
|
int32 i;
|
|
string s3;
|
|
};
|
|
|
|
interface IPATestInterface {
|
|
init(IPASettings settings) => (int32 ret);
|
|
start() => (int32 ret);
|
|
stop();
|
|
|
|
test(TestStruct s);
|
|
};
|
|
|
|
interface IPATestEventInterface {
|
|
dummyEvent(uint32 val);
|
|
};
|