Net--RabbitMQ
view release on metacpan or search on metacpan
RabbitMQ.xs view on Meta::CPAN
HV *options
HV *args
PREINIT:
amqp_rpc_reply_t *amqp_rpc_reply;
int passive = 0;
int durable = 0;
int exclusive = 0;
int auto_delete = 1;
amqp_table_t arguments = AMQP_EMPTY_TABLE;
amqp_bytes_t queuename_b = AMQP_EMPTY_BYTES;
PPCODE:
if(queuename && strcmp(queuename, "")) queuename_b = amqp_cstring_bytes(queuename);
if(options) {
int_from_hv(options, passive);
int_from_hv(options, durable);
int_from_hv(options, exclusive);
int_from_hv(options, auto_delete);
}
if(args)
hash_to_amqp_table(conn, args, &arguments);
amqp_queue_declare_ok_t *r = amqp_queue_declare(conn, channel, queuename_b, passive,
( run in 0.973 second using v1.01-cache-2.11-cpan-5511b514fd6 )