Function amqp_queue_purge

Synopsis

#include <librabbitmq/amqp_framing.h>

amqp_queue_purge_ok_t * amqp_queue_purge(amqp_connection_state_t state, amqp_channel_t channel, amqp_bytes_t queue)

Description

amqp_queue_purge

Parameters:

[ in ] state - connection state

[ in ] channel - the channel to do the RPC on

[ in ] queue - queue

Return
amqp_queue_purge_ok_t

Source

Lines 2653-2664 in librabbitmq/amqp_framing.c. Line 1011 in librabbitmq/amqp_framing.h.

AMQP_PUBLIC_FUNCTION
amqp_queue_purge_ok_t *AMQP_CALL amqp_queue_purge(amqp_connection_state_t state,
                                                  amqp_channel_t channel,
                                                  amqp_bytes_t queue) {
  amqp_queue_purge_t req;
  req.ticket = 0;
  req.queue = queue;
  req.nowait = 0;

  return amqp_simple_rpc_decoded(state, channel, AMQP_QUEUE_PURGE_METHOD,
                                 AMQP_QUEUE_PURGE_OK_METHOD, &req);
}





Add Discussion as Guest

Log in to DocsForge