wofi-config(3) | Library Functions Manual | wofi-config(3) |
wofi - Config functions and documentation
The functions documented here are used for manipulating maps that represent config entries. They are defined in config.h.
The following functions are used to work with configs.
struct map* map - The map to insert into.
char* line - The config line to insert. Should be in the format of key=value.
struct map* map - The map to load the config into.
const char* config - The path to a config file. Should contain lines with the format of key=value.
struct map* config - The map to get the value from.
const char* key - The key to lookup.
char* def_opt - The default value to be returned if the key does not exist.
struct map* config - The map to get the value from.
const char* key - The key to lookup.
char* def_opt - The default value to be returned if the key does not exist.
uint8_t num_choices - The number of enum options available.
varargs - The list of enum options available.