summaryrefslogtreecommitdiff
path: root/librabbitmq/codegen.py
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonyg@kcbbs.gen.nz>2009-04-25 22:11:44 +0100
committerTony Garnock-Jones <tonyg@kcbbs.gen.nz>2009-04-25 22:11:44 +0100
commitaf9315c575b8788b28bb3c5d959a9462b12b9a15 (patch)
tree615ddf61ed58796bcbeb32dc9165f9c2fd925582 /librabbitmq/codegen.py
parent67970c9c56ebd49b57e61d50255b04fa1ac7d27d (diff)
downloadrabbitmq-c-github-ask-af9315c575b8788b28bb3c5d959a9462b12b9a15.tar.gz
More work
Diffstat (limited to 'librabbitmq/codegen.py')
-rw-r--r--librabbitmq/codegen.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/librabbitmq/codegen.py b/librabbitmq/codegen.py
index 00159ae..474be78 100644
--- a/librabbitmq/codegen.py
+++ b/librabbitmq/codegen.py
@@ -392,6 +392,26 @@ extern "C" {
print "#define %s %s" % (cConstantName(c), v)
print
+ print """/* Function prototypes. */
+extern char const *amqp_method_name(amqp_method_number_t methodNumber);
+extern amqp_boolean_t amqp_method_has_content(amqp_method_number_t methodNumber);
+extern int amqp_decode_method(amqp_method_number_t methodNumber,
+ amqp_pool_t *pool,
+ amqp_bytes_t encoded,
+ void **decoded);
+extern int amqp_decode_properties(uint16_t class_id,
+ amqp_pool_t *pool,
+ amqp_bytes_t encoded,
+ void **decoded);
+extern int amqp_encode_method(amqp_method_number_t methodNumber,
+ void *decoded,
+ amqp_bytes_t encoded);
+extern int amqp_encode_properties(uint16_t class_id,
+ void *decoded,
+ amqp_bytes_t encoded);
+extern int amqp_exception_category(uint16_t code);
+"""
+
print "/* Method field records. */"
for m in methods:
methodid = m.klass.index << 16 | m.index