Mark Slee | 738ad31 | 2007-05-16 02:40:12 +0000 | [diff] [blame] | 1 | #!/usr/local/bin/thrift -cpp -java -py -php -xsd -perl |
Mark Slee | 07a3aab | 2007-03-07 05:45:10 +0000 | [diff] [blame] | 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 |
Mark Slee | 27ed6ec | 2007-08-16 01:26:31 +0000 | [diff] [blame] | 10 | perl_package shared |
Mark Slee | 07a3aab | 2007-03-07 05:45:10 +0000 | [diff] [blame] | 11 | |
| 12 | struct SharedStruct { |
| 13 | 1: i32 key |
| 14 | 2: string value |
| 15 | } |
| 16 | |
| 17 | service SharedService { |
| 18 | SharedStruct getStruct(1: i32 key) |
| 19 | } |