summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2010-10-27 11:31:03 +0100
committerDavid Wragg <david@rabbitmq.com>2010-10-27 11:31:03 +0100
commit972c146985ffa9209b53d9f31a4920730f2773b4 (patch)
tree9f5c5bfaa04a01aa00ec3c028db916d823a3d296
parent866dbff8467ab7ff75cfd3d2af50d0aeb6ab0b37 (diff)
downloadrabbitmq-c-github-ask-972c146985ffa9209b53d9f31a4920730f2773b4.tar.gz
Add compability macros for AMQP_EMPTY_*
No reason to break code written against earlier version of the library when we can easily avoid it.
-rw-r--r--librabbitmq/amqp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/librabbitmq/amqp.h b/librabbitmq/amqp.h
index a0f8331..1541583 100644
--- a/librabbitmq/amqp.h
+++ b/librabbitmq/amqp.h
@@ -245,6 +245,12 @@ RABBITMQ_EXPORT const amqp_bytes_t amqp_empty_bytes;
RABBITMQ_EXPORT const amqp_table_t amqp_empty_table;
RABBITMQ_EXPORT const amqp_array_t amqp_empty_array;
+/* Compatibility macros for the above, to avoid the need to update
+ code written against earlier versions of librabbitmq. */
+#define AMQP_EMPTY_BYTES amqp_empty_bytes
+#define AMQP_EMPTY_TABLE amqp_empty_table
+#define AMQP_EMPTY_ARRAY amqp_empty_array
+
RABBITMQ_EXPORT void init_amqp_pool(amqp_pool_t *pool, size_t pagesize);
RABBITMQ_EXPORT void recycle_amqp_pool(amqp_pool_t *pool);
RABBITMQ_EXPORT void empty_amqp_pool(amqp_pool_t *pool);