blob: b7d328afe9d6a4e03a0b44adbf27ce87c19d031e (
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
44
45
46
47
48
49
50
51
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module sample {
enum BarType {
BAR_VERTICAL = 1 << 0,
BAR_HORIZONTAL = (1 << 1) + 0,
BAR_BOTH = BAR_VERTICAL | BAR_HORIZONTAL,
BAR_INVALID
};
struct Bar {
uint8 alpha = (0x100 - 1) @0;
uint8 beta @1;
uint8 gamma @2;
int32 type @3;
};
[RequiredFields=7]
struct Foo {
string name = "Fooby" @8;
int32 x @0;
int32 y @1;
bool a = true @2;
bool b @3;
bool c @4;
Bar bar @5;
Bar[] extra_bars @7;
uint8[] data = [1,2,3] @6;
handle<message_pipe> source @9;
handle<data_pipe_consumer>[] input_streams @10;
handle<data_pipe_producer>[] output_streams @11;
};
[Peer=ServiceClient]
interface Service {
enum BazOptions {
BAZ_REGULAR = 0,
BAZ_EXTRA
};
void Frobinate(Foo foo @0, int32 baz @1, handle<message_pipe> port @2) @0;
};
[Peer=Service]
interface ServiceClient {
void DidFrobinate(int32 result @0) @0;
};
}
|