ipc/ipdl/test/cxx/PTestOpensOpened.ipdl

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

mercurial