diff options
| author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-08-05 15:05:02 +0100 |
|---|---|---|
| committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-08-05 15:05:02 +0100 |
| commit | 010a6f713383315a9bcf7cfd2b1e859a23fd0a47 (patch) | |
| tree | 93eac984ede9cdeba01180586d80c3a6ea473511 /codegen.py | |
| parent | 2263a1a11da4144f11ed7da4140d0e77e2c449b7 (diff) | |
| download | rabbitmq-server-git-010a6f713383315a9bcf7cfd2b1e859a23fd0a47.tar.gz | |
more autogenerated specs
The specs for framing_0_8 and framing_0_9_1 are up to date.
Diffstat (limited to 'codegen.py')
| -rw-r--r-- | codegen.py | 3 |
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()). |
