summaryrefslogtreecommitdiff
path: root/codegen.py
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-14 13:55:55 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-14 13:55:55 +0100
commit0106889df4b6dd1374d37939b89b0acffca3baa6 (patch)
tree128f9705a3432f0c11bd3a3a2eadde6e7eb460b5 /codegen.py
parentc0643c346bc9064df06d0680a5496db67841b3f7 (diff)
parentedf283be19ab124065d1f4f10519985d0c82dd0b (diff)
downloadrabbitmq-server-git-0106889df4b6dd1374d37939b89b0acffca3baa6.tar.gz
merge default into bug24386
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 8cd9dab832..7636c196ac 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()).