blob: 087ee93d8c7a172cac629a166344c2e1f0720223 [file] [log] [blame]
Kevin Clark7618fb42008-06-18 01:02:46 +00001#!/usr/local/bin/thrift --gen cpp --gen java --gen py --php --xsd --perl
Mark Slee07a3aab2007-03-07 05:45:10 +00002
3/**
4 * This Thrift file can be included by other Thrift files that want to share
5 * these definitions.
6 */
7
David Reiss9a08dc62008-02-27 01:55:17 +00008namespace cpp shared
David Reiss771f8c72008-02-27 01:55:25 +00009namespace java shared
David Reiss07ef3a92008-03-27 21:42:39 +000010namespace perl shared
Mark Slee07a3aab2007-03-07 05:45:10 +000011
12struct SharedStruct {
13 1: i32 key
14 2: string value
15}
16
17service SharedService {
18 SharedStruct getStruct(1: i32 key)
19}