#include <adt/char_map.h>
#include <errno.h>
#include <malloc.h>
#include <mem.h>
#include <unistd.h>
Go to the source code of this file.
Defines | |
#define | CHAR_MAP_MAGIC_VALUE 0x12345611 |
Internal magic value for a consistency check. | |
Functions | |
int | char_map_add (char_map_t *map, const uint8_t *identifier, size_t length, const int value) |
Adds the value with the key to the map. | |
static int | char_map_add_item (char_map_t *map, const uint8_t *identifier, size_t length, const int value) |
Adds the value with the key to the map. | |
void | char_map_destroy (char_map_t *map) |
Clears and destroys the map. | |
int | char_map_exclude (char_map_t *map, const uint8_t *identifier, size_t length) |
Excludes the value assigned to the key from the map. | |
int | char_map_find (const char_map_t *map, const uint8_t *identifier, size_t length) |
Returns the value assigned to the key from the map. | |
static char_map_t * | char_map_find_node (const char_map_t *map, const uint8_t *identifier, size_t length) |
Returns the node assigned to the key from the map. | |
int | char_map_initialize (char_map_t *map) |
Initializes the map. | |
static int | char_map_is_valid (const char_map_t *map) |
Checks if the map is valid. | |
int | char_map_update (char_map_t *map, const uint8_t *identifier, const size_t length, const int value) |
Adds or updates the value with the key to the map. |
Definition in file char_map.c.