Function amqp_exchange_delete

Synopsis

#include <librabbitmq/amqp_framing.h>

amqp_exchange_delete_ok_t * amqp_exchange_delete(amqp_connection_state_t state, amqp_channel_t channel, amqp_bytes_t exchange, amqp_boolean_t if_unused)

Description

amqp_exchange_delete

Parameters:

[ in ] state - connection state

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

[ in ] exchange - exchange

[ in ] if_unused - if_unused

Return
amqp_exchange_delete_ok_t

Source

Lines 2516-2528 in librabbitmq/amqp_framing.c. Line 935 in librabbitmq/amqp_framing.h.

AMQP_PUBLIC_FUNCTION
amqp_exchange_delete_ok_t *AMQP_CALL
    amqp_exchange_delete(amqp_connection_state_t state, amqp_channel_t channel,
                         amqp_bytes_t exchange, amqp_boolean_t if_unused) {
  amqp_exchange_delete_t req;
  req.ticket = 0;
  req.exchange = exchange;
  req.if_unused = if_unused;
  req.nowait = 0;

  return amqp_simple_rpc_decoded(state, channel, AMQP_EXCHANGE_DELETE_METHOD,
                                 AMQP_EXCHANGE_DELETE_OK_METHOD, &req);
}





Add Discussion as Guest

Log in to DocsForge