summaryrefslogtreecommitdiff
path: root/codegen.py
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonyg@lshift.net>2009-05-12 16:34:03 +0100
committerTony Garnock-Jones <tonyg@lshift.net>2009-05-12 16:34:03 +0100
commitee1a261d858e94a4b1d017bd58ce3b733c69837e (patch)
treea2c113f8b7b1587d44486019743f2dd4c7871e7f /codegen.py
parent8184d3cdc5c495520b994cc9768ec36a41478375 (diff)
downloadrabbitmq-server-ee1a261d858e94a4b1d017bd58ce3b733c69837e.tar.gz
Cope with both 0-8/0-9 style and 0-9-1 style protocol headers.
Diffstat (limited to 'codegen.py')
-rw-r--r--codegen.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/codegen.py b/codegen.py
index 84741ea2..997f3e32 100644
--- a/codegen.py
+++ b/codegen.py
@@ -308,6 +308,7 @@ def genHrl(spec):
print "-define(PROTOCOL_VERSION_MAJOR, %d)." % (spec.major)
print "-define(PROTOCOL_VERSION_MINOR, %d)." % (spec.minor)
+ print "-define(PROTOCOL_VERSION_REVISION, %d)." % (spec.revision)
print "-define(PROTOCOL_PORT, %d)." % (spec.port)
for (c,v,cls) in spec.constants: