blob: 022c786bfe85aee89b90c1a329d55b67c43836aa [file] [log] [blame]
Kevin Clark03d7a472008-06-18 01:09:41 +00001namespace rb SpecNamespace
2
3struct Hello {
4 1: string greeting = "hello world"
5}
6
7struct Foo {
8 1: i32 simple = 53,
9 2: string words = "words",
10 3: Hello hello = {'greeting' : "hello, world!"},
11 4: list<i32> ints = [1, 2, 2, 3],
12 5: map<i32, map<string, double>> complex,
13 6: set<i16> shorts = [5, 17, 239]
14}
Kevin Clark1cfd6932008-06-18 01:13:58 +000015
16struct BoolStruct {
17 1: bool yesno = 1
18}
Kevin Clarke0fddde2008-06-18 01:16:02 +000019
Kevin Clark14fe7912008-08-04 18:46:19 +000020struct SimpleList {
21 1: list<bool> bools,
22 2: list<byte> bytes,
23 3: list<i16> i16s,
24 4: list<i32> i32s,
25 5: list<i64> i64s,
26 6: list<double> doubles,
27 7: list<string> strings,
28 8: list<map<i16, i16>> maps,
29 9: list<list<i16>> lists,
30 10: list<set<i16>> sets,
31 11: list<Hello> hellos
32}
33
Kevin Clarke0fddde2008-06-18 01:16:02 +000034service NonblockingService {
35 Hello greeting(1:bool english)
36 bool block()
Kevin Clark980e4452008-06-18 01:19:59 +000037 async void unblock(1:i32 n)
Kevin Clarke0fddde2008-06-18 01:16:02 +000038 async void shutdown()
39 void sleep(1:double seconds)
40}