diff options
author | David Wragg <david@rabbitmq.com> | 2010-06-06 02:48:53 +0100 |
---|---|---|
committer | David Wragg <david@rabbitmq.com> | 2010-06-06 02:48:53 +0100 |
commit | 872d469c5917e80b9e52e7eac7e5357c1bfcf428 (patch) | |
tree | ca905b97c45195be385fc12c78879f17ee8720c2 /librabbitmq/amqp_api.c | |
parent | 1450ae07a8797549dee1dc4db7fd64a41493f1f7 (diff) | |
parent | f557f155ec3c7f52101415261fafcc8c56ed6ed2 (diff) | |
download | rabbitmq-c-github-ask-872d469c5917e80b9e52e7eac7e5357c1bfcf428.tar.gz |
Merge default into bug22825
Diffstat (limited to 'librabbitmq/amqp_api.c')
-rw-r--r-- | librabbitmq/amqp_api.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/librabbitmq/amqp_api.c b/librabbitmq/amqp_api.c index 9918819..3724a37 100644 --- a/librabbitmq/amqp_api.c +++ b/librabbitmq/amqp_api.c @@ -222,6 +222,19 @@ amqp_queue_declare_ok_t *amqp_queue_declare(amqp_connection_state_t state, return RPC_REPLY(amqp_queue_declare_ok_t); } +amqp_queue_delete_ok_t *amqp_queue_delete(amqp_connection_state_t state, + amqp_channel_t channel, + amqp_bytes_t queue, + amqp_boolean_t if_unused, + amqp_boolean_t if_empty) +{ + state->most_recent_api_result = + AMQP_SIMPLE_RPC(state, channel, QUEUE, DELETE, DELETE_OK, + amqp_queue_delete_t, + 0, queue, if_unused, if_empty, 0); + return RPC_REPLY(amqp_queue_delete_ok_t); +} + amqp_queue_bind_ok_t *amqp_queue_bind(amqp_connection_state_t state, amqp_channel_t channel, amqp_bytes_t queue, |