summaryrefslogtreecommitdiff
path: root/librabbitmq/amqp_api.c
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2010-06-06 02:48:53 +0100
committerDavid Wragg <david@rabbitmq.com>2010-06-06 02:48:53 +0100
commit872d469c5917e80b9e52e7eac7e5357c1bfcf428 (patch)
treeca905b97c45195be385fc12c78879f17ee8720c2 /librabbitmq/amqp_api.c
parent1450ae07a8797549dee1dc4db7fd64a41493f1f7 (diff)
parentf557f155ec3c7f52101415261fafcc8c56ed6ed2 (diff)
downloadrabbitmq-c-github-ask-872d469c5917e80b9e52e7eac7e5357c1bfcf428.tar.gz
Merge default into bug22825
Diffstat (limited to 'librabbitmq/amqp_api.c')
-rw-r--r--librabbitmq/amqp_api.c13
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,