<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); "><div><div><div><div style="font-family: Consolas; font-size: medium; "><span style="font-family: Calibri; ">Hey everyone,</span></div><div style="font-family: Consolas; font-size: medium; "><span style="font-family: Calibri; "><br></span></div><div style="font-family: Consolas; font-size: medium; "><span style="font-family: Calibri; ">I am trying to implement support for passing arguments to queue.declare in the PHP extension for AMQP. Based on the docs, arguments are up to the server to implement, but are based on an amqp_table_t structure. Based on previous email threads and some basic research, the full list of supported keys for the table seem to be: </span><span style="font-family: Calibri; ">x-expires, </span><span style="font-family: Calibri; ">x-message-ttl, </span><span class="Apple-style-span" style="font-size: 14px; white-space: pre; font-family: Calibri; ">x-ha-policy</span><span style="font-family: Calibri; "> and </span><span class="Apple-style-span" style="font-size: 14px; white-space: pre; font-family: Calibri; ">x-ha-policy-params. Is this still the complete list? It seems like I should just give people the ability to set any key they want.</span></div><div><span class="Apple-style-span" style="white-space: pre;"><br></span></div></div></div></div><div><span class="Apple-style-span" style="white-space: pre;">The definition of an amqp_table_entry is a key (amqp_bytes) and value (amqp_field_value_t). The latter has a definition of:</span></div><div><span class="Apple-style-span" style="white-space: pre;"><br></span></div><div><span class="Apple-style-span" style="white-space: pre;">typedef struct amqp_field_value_t_ {
char kind;
union {
amqp_boolean_t boolean;
int8_t i8;
uint8_t u8;
int16_t i16;
uint16_t u16;
int32_t i32;
uint32_t u32;
int64_t i64;
uint64_t u64;
float f32;
double f64;
amqp_decimal_t decimal;
amqp_bytes_t bytes;
amqp_table_t table;
amqp_array_t array;
} value;
} amqp_field_value_t;</span></div><div><span class="Apple-style-span" style="white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="white-space: pre; ">Im assuming therefore that I can shove any kind/value combo for any key, and let the rabbitmq-c client/broker figure out the details. Is that correct?</span></div><div><span class="Apple-style-span" style="white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="white-space: pre; ">Thank you for your help.</span></div><div><span class="Apple-style-span" style="white-space: pre;"><br></span></div><div><span class="Apple-style-span" style="white-space: pre;">Pieter</span></div></body></html>