100 const char *
const type)
107 assert(other != NULL);
135 assert(other != NULL);
137 assert(name != NULL);
138 assert(value != NULL);
140 EVEL_DEBUG(
"Adding name=%s value=%s", name, value);
142 assert(other_field != NULL);
144 other_field->
name = strdup(name);
145 other_field->
value = strdup(value);
146 assert(other_field->
name != NULL);
147 assert(other_field->
value != NULL);
171 assert(event != NULL);
177 while (other_field_item != NULL)
180 assert(other_field != NULL);
211 assert(event != NULL);
218 while (other_field != NULL)
223 free(other_field->
name);
224 free(other_field->
value);
#define EVEL_DEBUG(FMT,...)
EVENT_OTHER * evel_new_other()
Create a new Other event.
DLIST_ITEM * dlist_get_first(DLIST *list)
void evel_json_open_named_list(EVEL_JSON_BUFFER *jbuf, const char *const key)
Add the key and opening bracket of a named list to a JSON buffer.
void dlist_initialize(DLIST *list)
List initialization.
void evel_other_field_add(EVENT_OTHER *other, char *name, char *value)
Add a field name/value pair to the Other.
void evel_other_type_set(EVENT_OTHER *other, const char *const type)
Set the Event Type property of the Other.
void evel_json_close_list(EVEL_JSON_BUFFER *jbuf)
Add the closing bracket of a list to a JSON buffer.
void evel_free_other(EVENT_OTHER *event)
Free an Other.
void evel_enc_kv_string(EVEL_JSON_BUFFER *jbuf, const char *const key, const char *const value)
Encode a string key and string value to a EVEL_JSON_BUFFER.
void evel_json_close_object(EVEL_JSON_BUFFER *jbuf)
Add the closing bracket of an object to a JSON buffer.
void evel_json_open_object(EVEL_JSON_BUFFER *jbuf)
Add the opening bracket of an object to a JSON buffer.
void evel_json_encode_header(EVEL_JSON_BUFFER *jbuf, EVENT_HEADER *event)
Encode the event as a JSON event object according to AT&T's schema.
void evel_free_header(EVENT_HEADER *const event)
Free an event header.
void * dlist_pop_last(DLIST *list)
void dlist_push_last(DLIST *list, void *item)
void log_error_state(char *format,...)
DLIST_ITEM * dlist_get_next(DLIST_ITEM *item)
void evel_header_type_set(EVENT_HEADER *const header, const char *const type)
Set the Event Type property of the event header.
EVEL internal definitions.
void evel_init_header(EVENT_HEADER *const header)
Initialize a newly created event header.
void evel_json_encode_other(EVEL_JSON_BUFFER *jbuf, EVENT_OTHER *event)
Encode the Other in JSON according to AT&T's schema for the event type.