<div>A completely untested little snippet for creating a table might look like:</div><div><br></div><font face="courier new, monospace">amqp_table_t table;</font><div><font face="courier new, monospace">table.num_entries = 1;</font></div>
<div><font face="courier new, monospace">table.entries = malloc(table.num_entries * sizeof(amqp_table_entry_t));</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">amqp_table_entry_t * entry = &table.entries[0];</font></div>
<div><font face="courier new, monospace">entry.key = amqp_cstring_bytes("x-expires");</font></div><div><font face="courier new, monospace">entry.value.kind = AMQP_FIELD_TYPE_I64;</font></div><div><font face="courier new, monospace">entry.value.value.i64 = 1800000;</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">/* do your queue declare call */</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">free(table.entries);</font><br>
<br><div class="gmail_quote">On Thu, Nov 22, 2012 at 11:29 AM, <span dir="ltr"><<a href="mailto:m.luchak@smartasking.com" target="_blank">m.luchak@smartasking.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font face="arial"><p style="margin:0;padding:0;font-family:arial">Hi All,</p>
<p style="margin:0;padding:0;font-family:arial"> </p>
<p style="margin:0;padding:0;font-family:arial">Lazy question ;) sorry... has to happen sometimes..</p>
<p style="margin:0;padding:0;font-family:arial"> </p>
<p style="margin:0;padding:0;font-family:arial">Can anyone point me in the right direction for setting the x-expires value in the C client when declaring a queue... using <span style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:10pt">amqp_table_entry is how it's done.. but, having difficulty setting the values..</span></p>
<p style="margin:0;padding:0;font-family:arial"> </p>
<p style="margin:0;padding:0"><span style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">thanks,</span></p>
<p style="margin:0;padding:0"><span style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">Matthew</span></p></font><br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>