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 | 4b3d1d93a69a0dd9838e554297b0ecc849742ef9 (patch) | |
tree | 93eac984ede9cdeba01180586d80c3a6ea473511 /codegen.py | |
parent | e996d00de76b3c3775129ea79ec569ccc6fe12a3 (diff) | |
download | rabbitmq-server-4b3d1d93a69a0dd9838e554297b0ecc849742ef9.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
@@ -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()). |