2008-06-18 01:02:46 +00:00
|
|
|
#!/usr/local/bin/thrift --gen cpp --gen java --gen py --php --xsd --perl
|
2007-03-07 05:45:10 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This Thrift file can be included by other Thrift files that want to share
|
|
|
|
|
* these definitions.
|
|
|
|
|
*/
|
|
|
|
|
|
2008-02-27 01:55:17 +00:00
|
|
|
namespace cpp shared
|
2008-02-27 01:55:25 +00:00
|
|
|
namespace java shared
|
2008-03-27 21:42:39 +00:00
|
|
|
namespace perl shared
|
2007-03-07 05:45:10 +00:00
|
|
|
|
|
|
|
|
struct SharedStruct {
|
|
|
|
|
1: i32 key
|
|
|
|
|
2: string value
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
service SharedService {
|
|
|
|
|
SharedStruct getStruct(1: i32 key)
|
|
|
|
|
}
|