ipc/ipdl/test/cxx/PTestBridgeMainSub.ipdl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ipc/ipdl/test/cxx/PTestBridgeMainSub.ipdl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +include protocol PTestBridgeMain;
     1.5 +include protocol PTestBridgeSub;
     1.6 +
     1.7 +namespace mozilla {
     1.8 +namespace _ipdltest {
     1.9 +
    1.10 +// (Bridge protocols can have different semantics than the endpoints
    1.11 +// they bridge)
    1.12 +intr protocol PTestBridgeMainSub {
    1.13 +    bridges PTestBridgeMain, PTestBridgeSub;
    1.14 +
    1.15 +child:
    1.16 +    Hi();
    1.17 +    intr HiRpc();
    1.18 +
    1.19 +parent:
    1.20 +    Hello();
    1.21 +    sync HelloSync();
    1.22 +    intr HelloRpc();
    1.23 +    __delete__();
    1.24 +
    1.25 +state START:       recv Hello goto HI;
    1.26 +state HI:          send Hi goto HELLO_SYNC;
    1.27 +state HELLO_SYNC:  recv HelloSync goto HELLO_RPC;
    1.28 +state HELLO_RPC:   answer HelloRpc goto HI_RPC;
    1.29 +state HI_RPC:      call HiRpc goto DEAD;
    1.30 +state DEAD:
    1.31 +    recv __delete__;
    1.32 +};
    1.33 +
    1.34 +
    1.35 +} // namespace mozilla
    1.36 +} // namespace _ipdltest

mercurial