Mark Slee | 07a3aab | 2007-03-07 05:45:10 +0000 | [diff] [blame] | 1 | /** |
| 2 | * This Thrift file can be included by other Thrift files that want to share |
| 3 | * these definitions. |
| 4 | */ |
| 5 | |
David Reiss | 9a08dc6 | 2008-02-27 01:55:17 +0000 | [diff] [blame] | 6 | namespace cpp shared |
David Reiss | 771f8c7 | 2008-02-27 01:55:25 +0000 | [diff] [blame] | 7 | namespace java shared |
David Reiss | 07ef3a9 | 2008-03-27 21:42:39 +0000 | [diff] [blame] | 8 | namespace perl shared |
Mark Slee | 07a3aab | 2007-03-07 05:45:10 +0000 | [diff] [blame] | 9 | |
| 10 | struct SharedStruct { |
| 11 | 1: i32 key |
| 12 | 2: string value |
| 13 | } |
| 14 | |
| 15 | service SharedService { |
| 16 | SharedStruct getStruct(1: i32 key) |
| 17 | } |