| Mark Slee | 07a3aab | 2007-03-07 05:45:10 +0000 | [diff] [blame] | 1 | #!/usr/local/bin/thrift -cpp -java -py -php -xsd |
| 2 | |||||
| 3 | /** | ||||
| 4 | * This Thrift file can be included by other Thrift files that want to share | ||||
| 5 | * these definitions. | ||||
| 6 | */ | ||||
| 7 | |||||
| 8 | cpp_namespace shared | ||||
| 9 | java_package shared | ||||
| 10 | |||||
| 11 | struct SharedStruct { | ||||
| 12 | 1: i32 key | ||||
| 13 | 2: string value | ||||
| 14 | } | ||||
| 15 | |||||
| 16 | service SharedService { | ||||
| 17 | SharedStruct getStruct(1: i32 key) | ||||
| 18 | } | ||||