| OLD | NEW |
| 1 { | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 'name': 'sample_service', | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 'namespace': 'sample', | 3 // found in the LICENSE file. |
| 4 'structs': [{ | 4 |
| 5 'name': 'Bar', | 5 module sample { |
| 6 'fields': [ | 6 |
| 7 {'name': 'alpha', 'kind': 'u8', 'ordinal': 0}, | 7 struct Bar { |
| 8 {'name': 'beta', 'kind': 'u8', 'ordinal': 1}, | 8 uint8 alpha @0; |
| 9 {'name': 'gamma', 'kind': 'u8', 'ordinal': 2}]}, { | 9 uint8 beta @1; |
| 10 'name': 'Foo', | 10 uint8 gamma @2; |
| 11 'fields': [ | 11 }; |
| 12 {'name': 'name', 'kind': 's', 'ordinal': 8}, | 12 |
| 13 {'name': 'x', 'kind': 'i32', 'ordinal': 0}, | 13 [RequiredFields=7] |
| 14 {'name': 'y', 'kind': 'i32', 'ordinal': 1}, | 14 struct Foo { |
| 15 {'name': 'a', 'kind': 'b', 'ordinal': 2}, | 15 string name @8; |
| 16 {'name': 'b', 'kind': 'b', 'ordinal': 3}, | 16 int32 x @0; |
| 17 {'name': 'c', 'kind': 'b', 'ordinal': 4}, | 17 int32 y @1; |
| 18 {'name': 'bar', 'kind': 'x:Bar', 'ordinal': 5}, | 18 bool a @2; |
| 19 {'name': 'extra_bars', 'kind': 'a:x:Bar', 'ordinal': 7}, | 19 bool b @3; |
| 20 {'name': 'data', 'kind': 'a:u8', 'ordinal': 6}, | 20 bool c @4; |
| 21 {'name': 'files', 'kind': 'a:h', 'ordinal': 9}]}], | 21 Bar bar @5; |
| 22 'interfaces': [{ | 22 Bar[] extra_bars @7; |
| 23 'name': 'Service', | 23 uint8[] data @6; |
| 24 'attributes': | 24 handle[] files @9; |
| 25 {'Peer': 'ServiceClient'}, | 25 }; |
| 26 'methods': [{ | 26 |
| 27 'name': 'Frobinate', | 27 [Peer=ServiceClient] |
| 28 'ordinal': 0, | 28 interface Service { |
| 29 'parameters': [ | 29 void Frobinate(Foo foo @0, bool baz @1, handle port @2) @0; |
| 30 {'name': 'foo', 'kind': 'x:Foo', 'ordinal': 0}, | 30 }; |
| 31 {'name': 'baz', 'kind': 'b', 'ordinal': 1}, | 31 |
| 32 {'name': 'port', 'kind': 'h', 'ordinal': 2}]}]}, { | 32 [Peer=Service] |
| 33 'name': 'ServiceClient', | 33 interface ServiceClient { |
| 34 'attributes': | 34 void DidFrobinate(int32 result @0) @0; |
| 35 {'Peer': 'Service'}, | 35 }; |
| 36 'methods': [{ | 36 |
| 37 'name': 'DidFrobinate', | |
| 38 'ordinal': 0, | |
| 39 'parameters': [ | |
| 40 {'name': 'result', 'kind': 'i32', 'ordinal': 0}]}]}] | |
| 41 } | 37 } |
| OLD | NEW |