summaryrefslogtreecommitdiffstats
path: root/module/lib/thrift/Thrift.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-27 23:45:45 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-27 23:45:45 +0200
commit0c1a92dcfa6d9775d5d0da8ef5fc8d9cc40d77b9 (patch)
tree0fb4ed212d1e9e8d48c30d69644a774eb2424b23 /module/lib/thrift/Thrift.py
parentlittle cli improvement (diff)
downloadpyload-0c1a92dcfa6d9775d5d0da8ef5fc8d9cc40d77b9.tar.xz
thrift 0.7.0 from trunk, patched for low mem usage
Diffstat (limited to 'module/lib/thrift/Thrift.py')
-rw-r--r--module/lib/thrift/Thrift.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/module/lib/thrift/Thrift.py b/module/lib/thrift/Thrift.py
index 91728a776..a96351276 100644
--- a/module/lib/thrift/Thrift.py
+++ b/module/lib/thrift/Thrift.py
@@ -38,6 +38,25 @@ class TType:
UTF8 = 16
UTF16 = 17
+ _VALUES_TO_NAMES = ( 'STOP',
+ 'VOID',
+ 'BOOL',
+ 'BYTE',
+ 'DOUBLE',
+ None,
+ 'I16',
+ None,
+ 'I32',
+ None,
+ 'I64',
+ 'STRING',
+ 'STRUCT',
+ 'MAP',
+ 'SET',
+ 'LIST',
+ 'UTF8',
+ 'UTF16' )
+
class TMessageType:
CALL = 1
REPLY = 2