Function amqp_table_construct_table_entry

Synopsis

#include <librabbitmq/amqp_table.h>

amqp_table_entry_t amqp_table_construct_table_entry(const char *key, const amqp_table_t *value)

Description

Initializes a table entry with table type value.

Parameters:

[ in ] key - the table entry key. The string must remain value for the life of the resulting amqp_table_entry_t.

[ in ] value - the amqp_table_t value. The table must remain valid for the life of the resulting amqp_table_entry_t.

Return
An initialized table entry.

Source

Lines 640-647 in librabbitmq/amqp_table.c. Line 56 in librabbitmq/amqp_table.h.

amqp_table_entry_t amqp_table_construct_table_entry(const char *key,
                                                    const amqp_table_t *value) {
  amqp_table_entry_t ret;
  ret.key = amqp_cstring_bytes(key);
  ret.value.kind = AMQP_FIELD_KIND_TABLE;
  ret.value.value.table = *value;
  return ret;
}





Add Discussion as Guest

Log in to DocsForge