ipc/ipdl/test/cxx/PTestJSON.ipdl

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 include protocol PTestHandle;
     3 using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
     4 using struct mozilla::null_t from "ipc/IPCMessageUtils.h";
     6 namespace mozilla {
     7 namespace _ipdltest {
     9 union Key {
    10 //    int;
    11 //    double;
    12     nsString;
    13 };
    15 struct KeyValue {
    16     Key key;
    17     JSONVariant value;
    18 };
    20 union JSONVariant {
    21     void_t;
    22     null_t;
    23     bool;
    24     int;
    25     double;
    26     nsString;
    27     PTestHandle;
    28     KeyValue[];
    29     JSONVariant[];
    30 };
    32 sync protocol PTestJSON {
    33     manages PTestHandle;
    35 child:
    36     async Start();
    38 parent:
    39     async PTestHandle();
    40     sync Test(JSONVariant i)
    41         returns (JSONVariant o);
    42     async __delete__();
    44 state START:
    45     send Start goto TEST;
    47 state TEST:
    48     recv PTestHandle goto TEST;
    49     recv Test goto TEST;
    50     recv __delete__;
    51 };
    53 } // namespace mozilla
    54 } // namespace _ipdltest

mercurial