blob: 2486e853789e34abffddf9f7a3687b036b908d5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
include protocol PTestJSONHandle;
using struct mozilla::void_t from "mozilla/ipc/IPCCore.h";
using struct mozilla::null_t from "mozilla/ipc/IPCCore.h";
namespace mozilla {
namespace _ipdltest {
[Comparable]
struct KeyValue {
nsString key;
JSONVariant value;
};
[Comparable]
union JSONVariant {
void_t;
null_t;
bool;
int;
double;
nsString;
PTestJSONHandle;
KeyValue[];
JSONVariant[];
};
[ChildProc=any, ChildImpl=virtual, ParentImpl=virtual]
sync protocol PTestJSON {
manages PTestJSONHandle;
child:
async Start();
parent:
async PTestJSONHandle();
sync Test(JSONVariant i)
returns (JSONVariant o);
async __delete__();
};
} // namespace mozilla
} // namespace _ipdltest
|