Struct containing info for an AMI event to send out.
void astman_append(struct mansession *s, const char *fmt,...)
const ast_string_field extra_fields
void astman_send_list_complete_start(struct mansession *s, const struct message *m, const char *event_name, int count)
Start the list complete event.
void ao2_iterator_destroy(struct ao2_iterator *iter)
Destroy a container iterator.
const char * astman_get_header(const struct message *m, char *var)
Get header from mananger transaction.
#define ast_strlen_zero(foo)
const char * manager_event
struct ast_manager_event_blob * stasis_message_to_ami(struct stasis_message *msg)
Build the AMI representation of the message.
struct stasis_message_type * ast_device_state_message_type(void)
Get the Stasis message type for device state messages.
void astman_send_list_complete_end(struct mansession *s)
End the list complete event.
#define RAII_VAR(vartype, varname, initval, dtor)
Declare a variable that will call a destructor function when it goes out of scope.
#define ao2_ref(o, delta)
struct ao2_container * stasis_cache_dump_by_eid(struct stasis_cache *cache, struct stasis_message_type *type, const struct ast_eid *eid)
Dump cached items to a subscription for a specific entity.
struct stasis_cache * ast_device_state_cache(void)
Backend cache for ast_device_state_topic_cached()
#define ao2_iterator_next(iter)
When we need to walk through a container, we use an ao2_iterator to keep track of the current positio...
void astman_send_error(struct mansession *s, const struct message *m, char *error)
Send error in manager transaction.
struct ao2_iterator ao2_iterator_init(struct ao2_container *c, int flags) attribute_warn_unused_result
Create an iterator for a container.
void astman_send_listack(struct mansession *s, const struct message *m, char *msg, char *listflag)
Send ack in manager transaction to begin a list.