summaryrefslogtreecommitdiff
path: root/codegen.py
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-08-25 19:42:42 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-08-25 19:42:42 +0100
commitf2412e2f4af51dcdb8c5998595ba49e42979cb77 (patch)
tree247cea887772b13f69248305f22678a14069d44e /codegen.py
parentbb7006f50c9bee6231824c828af32f893e06d039 (diff)
parentc0420ca5f3d96e701df27b95a582acfe6d2d3b12 (diff)
downloadrabbitmq-server-bug23056.tar.gz
merge default into bug 23056bug23056
Diffstat (limited to 'codegen.py')
-rw-r--r--codegen.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/codegen.py b/codegen.py
index 8cd9dab8..7636c196 100644
--- a/codegen.py
+++ b/codegen.py
@@ -371,6 +371,8 @@ def genErl(spec):
classIds.add(m.klass.index)
print prettyType("amqp_class_id()",
["%i" % ci for ci in classIds])
+ print prettyType("amqp_class_name()",
+ ["%s" % c.erlangName() for c in spec.allClasses()])
print "-endif. % use_specs"
print """
@@ -378,6 +380,7 @@ def genErl(spec):
-ifdef(use_specs).
-spec(version/0 :: () -> {non_neg_integer(), non_neg_integer(), non_neg_integer()}).
-spec(lookup_method_name/1 :: (amqp_method()) -> amqp_method_name()).
+-spec(lookup_class_name/1 :: (amqp_class_id()) -> amqp_class_name()).
-spec(method_id/1 :: (amqp_method_name()) -> amqp_method()).
-spec(method_has_content/1 :: (amqp_method_name()) -> boolean()).
-spec(is_method_synchronous/1 :: (amqp_method_record()) -> boolean()).