|
Nyx Node
|
Struct describing a JSON list object. More...
#include <nyx_node.h>
Public Member Functions | |
| nyx_list_t * | nyx_list_new (void) |
| Allocates a new JSON list. | |
| void | nyx_list_free (nyx_list_t *object) |
| Frees memory of the provided JSON list object. | |
| void | nyx_list_clear (nyx_list_t *object) |
| Clears the content of the provided JSON list object. | |
| void | nyx_list_del (nyx_list_t *object, size_t idx) |
| Deletes the entry at the provided index. | |
| bool | nyx_list_iterate (nyx_list_iter_t *iter, size_t *idx, nyx_object_t **object) |
| Iterates over a JSON list object. | |
| nyx_object_t * | nyx_list_get (const nyx_list_t *object, size_t idx) |
| Gets the JSON object at the provided index. | |
| __NYX_INLINE__ bool | nyx_list_push (nyx_list_t *object, void *value) |
| Pushes a JSON object in the provided JSON list object. | |
| size_t | nyx_list_size (const nyx_list_t *object) |
| Gets the number of items in the provided JSON list object. | |
| str_t | nyx_list_to_string (const nyx_list_t *object) |
| Returns a string representing the provided JSON list object. | |
| __NYX_INLINE__ bool | nyx_list_get_boolean (const nyx_list_t *object, size_t idx) |
| Gets a boolean value at the provided index. | |
| __NYX_INLINE__ double | nyx_list_get_number (const nyx_list_t *object, size_t idx) |
| Gets a number value at the provided index. | |
| __NYX_INLINE__ STR_t | nyx_list_get_string (const nyx_list_t *object, size_t idx) |
| Gets a C string value at the provided index. | |
Struct describing a JSON list object.