repo.or.cz
/
amiethrift.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
r1497@opsdev009 (orig r78879): mcslee | 2008-01-21 20:04:30 -0800
[amiethrift.git]
/
tutorial
/
shared.thrift
blob
1ecfb0a56082c54ddb9354be17f418b6cbf6ebba
1
#!/usr/local/bin/thrift -cpp -java -py -php -xsd -perl
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
perl_package shared
11
12
struct SharedStruct {
13
1: i32 key
14
2: string value
15
}
16
17
service SharedService {
18
SharedStruct getStruct(1: i32 key)
19
}