diff options
author | David Wragg <david@rabbitmq.com> | 2010-10-21 17:49:04 +0100 |
---|---|---|
committer | David Wragg <david@rabbitmq.com> | 2010-10-21 17:49:04 +0100 |
commit | 26e6dfc338e2f972d08e9b0b059757c60a896a6b (patch) | |
tree | e9e8ea4bb6fb2346dc47476ba47b8227e8ebdd9a /librabbitmq/amqp.h | |
parent | 5518f4b04bc747b0b82836187a08e2af3e3f1178 (diff) | |
download | rabbitmq-c-github-ask-26e6dfc338e2f972d08e9b0b059757c60a896a6b.tar.gz |
Eliminate AMQP_SIMPLE_RPC and friends
They contained C99-style initializers
Diffstat (limited to 'librabbitmq/amqp.h')
-rw-r--r-- | librabbitmq/amqp.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/librabbitmq/amqp.h b/librabbitmq/amqp.h index 810cf5b..3eace1b 100644 --- a/librabbitmq/amqp.h +++ b/librabbitmq/amqp.h @@ -339,28 +339,6 @@ extern amqp_rpc_reply_t amqp_simple_rpc(amqp_connection_state_t state, amqp_method_number_t *expected_reply_ids, void *decoded_request_method); -#define AMQP_EXPAND_METHOD(classname, methodname) (AMQP_ ## classname ## _ ## methodname ## _METHOD) - -#define AMQP_SIMPLE_RPC(state, channel, classname, requestname, replyname, structname, ...) \ - ({ \ - structname _simple_rpc_request___ = (structname) { __VA_ARGS__ }; \ - amqp_method_number_t _replies__[2] = { AMQP_EXPAND_METHOD(classname, replyname), 0}; \ - amqp_simple_rpc(state, channel, \ - AMQP_EXPAND_METHOD(classname, requestname), \ - (amqp_method_number_t *)&_replies__, \ - &_simple_rpc_request___); \ - }) - -#define AMQP_MULTIPLE_RESPONSE_RPC(state, channel, classname, requestname, replynames, structname, ...) \ - ({ \ - structname _simple_rpc_request___ = (structname) { __VA_ARGS__ }; \ - amqp_simple_rpc(state, channel, \ - AMQP_EXPAND_METHOD(classname, requestname), \ - replynames, \ - &_simple_rpc_request___); \ - }) - - extern amqp_rpc_reply_t amqp_login(amqp_connection_state_t state, char const *vhost, int channel_max, |