summaryrefslogtreecommitdiff
path: root/librabbitmq/amqp_api.c
diff options
context:
space:
mode:
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 91b0bf8..a748f90 100644
--- a/librabbitmq/amqp_api.c
+++ b/librabbitmq/amqp_api.c
@@ -189,6 +189,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,