mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
55 lines
760 B
Plaintext
55 lines
760 B
Plaintext
|
include protocol PTestHandle;
|
||
|
|
||
|
using mozilla::void_t;
|
||
|
using mozilla::null_t;
|
||
|
|
||
|
namespace mozilla {
|
||
|
namespace _ipdltest {
|
||
|
|
||
|
union Key {
|
||
|
// int;
|
||
|
// double;
|
||
|
nsString;
|
||
|
};
|
||
|
|
||
|
struct KeyValue {
|
||
|
Key key;
|
||
|
JSONVariant value;
|
||
|
};
|
||
|
|
||
|
union JSONVariant {
|
||
|
void_t;
|
||
|
null_t;
|
||
|
bool;
|
||
|
int;
|
||
|
double;
|
||
|
nsString;
|
||
|
PTestHandle;
|
||
|
KeyValue[];
|
||
|
JSONVariant[];
|
||
|
};
|
||
|
|
||
|
sync protocol PTestJSON {
|
||
|
manages PTestHandle;
|
||
|
|
||
|
child:
|
||
|
async Start();
|
||
|
|
||
|
parent:
|
||
|
async PTestHandle();
|
||
|
sync Test(JSONVariant i)
|
||
|
returns (JSONVariant o);
|
||
|
async __delete__();
|
||
|
|
||
|
state START:
|
||
|
send Start goto TEST;
|
||
|
|
||
|
state TEST:
|
||
|
recv PTestHandle goto TEST;
|
||
|
recv Test goto TEST;
|
||
|
recv __delete__;
|
||
|
};
|
||
|
|
||
|
} // namespace mozilla
|
||
|
} // namespace _ipdltest
|