econf_set_conf_dirs - Man Page
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.