table of contents
- Tumbleweed 0.8.2-1.1
- Leap-16.0
| ECONF_SET_CONF_DIRS(3) | libeconf Manual | ECONF_SET_CONF_DIRS(3) |
NAME¶
econf_set_conf_dirs - sets the list of configuration directory post-fixes
SYNOPSIS¶
#include <libeconf.h>
econf_err econf_set_conf_dirs(const char **dir_postfix_list);
DESCRIPTION¶
The econf_set_conf_dirs() function sets a list of directory structures (with order) which describes the directories in which the files have to be parsed.
The argument dir_postfix_list is an array of null-terminated strings, terminated by a NULL pointer.
E.G. with the given list: {"/conf.d/", ".d/", "/", NULL} files in following directories will be parsed: <default_dirs>/<project_name>.<suffix>.d/ <default_dirs>/<project_name>/conf.d/, <default_dirs>/<project_name>.d/, <default_dirs>/<project_name>/. The entry <default_dirs>/<project_name>.<suffix>.d/ will be added automatically.
RETURN VALUE¶
On success, econf_set_conf_dirs() returns ECONF_SUCCESS.
On failure, an error code of type econf_err is returned.
ERRORS¶
ECONF_NOMEM
Out of memory.
SEE ALSO¶
| 2025-12-04 | libeconf |