diff options
| author | Paul Jones <paulj@lshift.net> | 2009-08-26 12:14:05 +0100 |
|---|---|---|
| committer | Paul Jones <paulj@lshift.net> | 2009-08-26 12:14:05 +0100 |
| commit | 493a17637a4fabb7c7037d16b9e9c113b5c76dc9 (patch) | |
| tree | 9e456fec770dfcfd65f1fec8e6c037dc49e5fd47 /codegen.py | |
| parent | ae00b843da3e5bacca3d3bcfad7ac5e96871a408 (diff) | |
| download | rabbitmq-server-git-493a17637a4fabb7c7037d16b9e9c113b5c76dc9.tar.gz | |
Added code generation of is_method_synchronous
Diffstat (limited to 'codegen.py')
| -rw-r--r-- | codegen.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/codegen.py b/codegen.py index 84741ea28d..b46c4d3175 100644 --- a/codegen.py +++ b/codegen.py @@ -117,6 +117,9 @@ def genErl(spec): def genMethodHasContent(m): print "method_has_content(%s) -> %s;" % (m.erlangName(), str(m.hasContent).lower()) + + def genMethodIsSynchronous(m): + print "is_method_synchronous(%s) -> %s;" % (m.erlangName(), str(m.isSynchronous).lower()) def genMethodFieldTypes(m): """Not currently used - may be useful in future?""" @@ -246,6 +249,7 @@ def genErl(spec): -export([method_id/1]). -export([method_has_content/1]). +-export([is_method_synchronous/1]). -export([method_fieldnames/1]). -export([decode_method_fields/2]). -export([decode_properties/2]). @@ -266,6 +270,9 @@ bitvalue(undefined) -> 0. for m in methods: genMethodHasContent(m) print "method_has_content(Name) -> exit({unknown_method_name, Name})." + for m in methods: genMethodIsSynchronous(m) + print "is_method_synchronous(Name) -> exit({unknown_method_name, Name})." + for m in methods: genMethodFieldNames(m) print "method_fieldnames(Name) -> exit({unknown_method_name, Name})." |
