AT&T ECOMP Vendor Event Listener library
0.1
|
Implementation of EVEL functions relating to Other. More...
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include "evel.h"
#include "evel_internal.h"
Go to the source code of this file.
Functions | |
EVENT_OTHER * | evel_new_other () |
Create a new Other event. More... | |
void | evel_other_type_set (EVENT_OTHER *other, const char *const type) |
Set the Event Type property of the Other. More... | |
void | evel_other_field_add (EVENT_OTHER *other, char *name, char *value) |
Add a field name/value pair to the Other. More... | |
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. More... | |
void | evel_free_other (EVENT_OTHER *event) |
Free an Other. More... | |
Implementation of EVEL functions relating to Other.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY AT&T INTELLECTUAL PROPERTY ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AT&T INTELLECTUAL PROPERTY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file evel_other.c.
void evel_free_other | ( | EVENT_OTHER * | event | ) |
Free an Other.
Free off the Other supplied. Will free all the contained allocated memory.
Definition at line 201 of file evel_other.c.
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.
jbuf | Pointer to the EVEL_JSON_BUFFER to encode into. |
event | Pointer to the EVENT_HEADER to encode. |
Definition at line 160 of file evel_other.c.
EVENT_OTHER* evel_new_other | ( | void | ) |
Create a new Other event.
Create a new other event.
NULL | Failed to create the event. |
Definition at line 53 of file evel_other.c.
void evel_other_field_add | ( | EVENT_OTHER * | other, |
char * | name, | ||
char * | value | ||
) |
Add a field name/value pair to the Other.
Add a value name/value pair to the Other.
The name and value are null delimited ASCII strings. The library takes a copy so the caller does not have to preserve values after the function returns.
other | Pointer to the Other. |
name | ASCIIZ string with the field's name. The caller does not need to preserve the value once the function returns. |
value | ASCIIZ string with the field's value. The caller does not need to preserve the value once the function returns. |
Definition at line 127 of file evel_other.c.
void evel_other_type_set | ( | EVENT_OTHER * | other, |
const char *const | type | ||
) |
Set the Event Type property of the Other.
other | Pointer to the Other. |
type | The Event Type to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 99 of file evel_other.c.