54 #if defined(__cplusplus) || defined(c_plusplus) 177 const void *data,
size_t data_len);
355 #if defined(__cplusplus) || defined(c_plusplus)
int ast_event_str_to_ie_type(const char *str, enum ast_event_ie_type *ie_type)
Convert a string to an IE type.
enum ast_event_type ast_event_get_type(const struct ast_event *event)
Get the type for an event.
ast_event_ie_pltype
Payload types for event information elements.
int ast_event_append_ie_bitflags(struct ast_event **event, enum ast_event_ie_type ie_type, uint32_t bitflags)
Append an information element that has a bitflags payload.
enum ast_event_ie_pltype ast_event_get_ie_pltype(enum ast_event_ie_type ie_type)
Get the payload type for a given information element type.
supposed to be an opaque type
ast_event_ie_type
Event Information Element types.
const void * ast_event_get_ie_raw(const struct ast_event *event, enum ast_event_ie_type ie_type)
Get the value of an information element that has a raw payload.
int ast_event_append_ie_raw(struct ast_event **event, enum ast_event_ie_type ie_type, const void *data, size_t data_len)
Append an information element that has a raw payload.
int ast_event_append_ie_str(struct ast_event **event, enum ast_event_ie_type ie_type, const char *str)
Append an information element that has a string payload.
size_t ast_event_minimum_length(void)
Get the minimum length of an ast_event.
uint32_t ast_event_get_ie_uint(const struct ast_event *event, enum ast_event_ie_type ie_type)
Get the value of an information element that has an integer payload.
int ast_event_iterator_init(struct ast_event_iterator *iterator, const struct ast_event *event)
Initialize an event iterator instance.
void ast_event_destroy(struct ast_event *event)
Destroy an event.
int ast_event_iterator_next(struct ast_event_iterator *iterator)
Move iterator instance to next IE.
struct ast_event * ast_event_new(enum ast_event_type event_type,...)
Create a new event.
uint32_t ast_event_iterator_get_ie_uint(struct ast_event_iterator *iterator)
Get the value of the current IE in the iterator as an integer payload.
int ast_event_append_eid(struct ast_event **event)
Append the global EID IE.
const char * ast_event_get_ie_type_name(enum ast_event_ie_type ie_type)
Get the string representation of an information element type.
const char * ast_event_iterator_get_ie_str(struct ast_event_iterator *iterator)
Get the value of the current IE in the iterator as a string payload.
size_t ast_event_get_size(const struct ast_event *event)
Get the size of an event.
const char * ast_event_get_type_name(const struct ast_event *event)
Get the string representation of the type of the given event.
const char * ast_event_get_ie_str(const struct ast_event *event, enum ast_event_ie_type ie_type)
Get the value of an information element that has a string payload.
enum ast_event_ie_type ast_event_iterator_get_ie_type(struct ast_event_iterator *iterator)
Get the type of the current IE in the iterator instance.
uint16_t ast_event_get_ie_raw_payload_len(const struct ast_event *event, enum ast_event_ie_type ie_type)
Get the length of the raw payload for a particular IE.
int ast_event_append_ie_uint(struct ast_event **event, enum ast_event_ie_type ie_type, uint32_t data)
Append an information element that has an integer payload.