Kevin Clark | 03d7a47 | 2008-06-18 01:09:41 +0000 | [diff] [blame] | 1 | namespace rb SpecNamespace |
| 2 | |
| 3 | struct Hello { |
| 4 | 1: string greeting = "hello world" |
| 5 | } |
| 6 | |
| 7 | struct 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 Clark | 1cfd693 | 2008-06-18 01:13:58 +0000 | [diff] [blame] | 15 | |
| 16 | struct BoolStruct { |
| 17 | 1: bool yesno = 1 |
| 18 | } |
Kevin Clark | e0fddde | 2008-06-18 01:16:02 +0000 | [diff] [blame] | 19 | |
| 20 | service NonblockingService { |
| 21 | Hello greeting(1:bool english) |
| 22 | bool block() |
| 23 | async void unblock() |
| 24 | async void shutdown() |
| 25 | void sleep(1:double seconds) |
| 26 | } |