wofi-map(3) | Library Functions Manual | wofi-map(3) |
wofi - Map API functions and documentation
The functions documented here are used for interacting with wofi's config and map. They are defined in map.h.
The following functions are used to interact with a struct map*
struct map* map - The map to insert into.
const char* key - The key to store the value under. This key is given to strdup() before being saved and will be freed when running map_free().
char* value - The value to store. This value is given to strdup() before being saved and will be freed when running map_free(). If the value is NULL it will not be given to strdup().
struct map* map - The map to insert into.
const char* key - The key to store the value under. This key is given to strdup() before being saved and will be freed when running map_free().
void* value - The value to store. This pointer is stored in the map, it is on the caller to free this and it will not be freed when running map_free().
struct map* map - The map to get the value from.
const char* key - The key to lookup.
struct map* map - The map to check against.
const char* key - The key to check for.
struct map* map - The map to get the size of.