<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19088"></HEAD>
<BODY>
<DIV><SPAN class=530035017-05072011><FONT face=Arial>Hi, I want to create
an exchange in a program that is specific to each executable instance. I
assumed that there would be an "autoDelete" parameter to the
amqp_exchange_declare function but there doesn't seem to be one. Yet in
the amqp_framing.h file there seems like there should be. Near the
top of the framing.h file, I see this:</FONT></SPAN></DIV>
<DIV><SPAN class=530035017-05072011><FONT face=Arial></FONT></SPAN> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV><SPAN class=530035017-05072011><FONT face=Courier>#define
AMQP_EXCHANGE_DECLARE_METHOD ((amqp_method_number_t) 0x0028000A) /* 40, 10;
2621450 */<BR>typedef struct amqp_exchange_declare_t_ {<BR> uint16_t
ticket;<BR> amqp_bytes_t exchange;<BR> amqp_bytes_t
type;<BR> amqp_boolean_t passive;<BR> amqp_boolean_t
durable;<BR> <STRONG>amqp_boolean_t
auto_delete</STRONG>; // <<=================<BR>
amqp_boolean_t internal;<BR> amqp_boolean_t nowait;<BR>
amqp_table_t arguments;<BR>}
amqp_exchange_declare_t;</FONT></SPAN></DIV></BLOCKQUOTE>
<DIV> </DIV>
<DIV><SPAN class=530035017-05072011><FONT face=Arial>But lower in the file when
the function is actually defined, I see this:</FONT></SPAN></DIV>
<DIV><SPAN class=530035017-05072011><FONT face=Arial></FONT></SPAN> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV><SPAN class=530035017-05072011><FONT face=Courier>RABBITMQ_EXPORT
amqp_exchange_declare_ok_t *<BR>amqp_exchange_declare(amqp_connection_state_t
state,<BR>
amqp_channel_t
channel,<BR>
amqp_bytes_t
exchange,<BR>
amqp_bytes_t
type,<BR>
amqp_boolean_t
passive,<BR>
amqp_boolean_t
durable,<BR>
amqp_table_t arguments);</FONT></SPAN></DIV></BLOCKQUOTE>
<DIV><SPAN class=530035017-05072011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=530035017-05072011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=530035017-05072011><FONT face=Arial>Is this an oversite?
Is there an alternative way to declare an exchange that lets me pass the <FONT
face=Courier>amqp_exchange_declare_t </FONT><FONT face=Arial>struct to some
other function such that I can set the auto_delete
flag?</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=530035017-05072011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=530035017-05072011><FONT face=Arial>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=530035017-05072011><FONT face=Arial> Lowell</DIV>
<DIV><BR></DIV></FONT></SPAN></BODY></HTML>