From 972c146985ffa9209b53d9f31a4920730f2773b4 Mon Sep 17 00:00:00 2001 From: David Wragg Date: Wed, 27 Oct 2010 11:31:03 +0100 Subject: Add compability macros for AMQP_EMPTY_* No reason to break code written against earlier version of the library when we can easily avoid it. --- librabbitmq/amqp.h | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- cgit v1.2.1