diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:48:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:48:22 +0000 |
commit | 7373ce3d6988706388f136e1c06afd20a3e8d5be (patch) | |
tree | e9ae5af7d102667e5706187646db45de8238e8c4 /lib/parse_ini.h | |
parent | Initial commit. (diff) | |
download | monitoring-plugins-upstream.tar.xz monitoring-plugins-upstream.zip |
Adding upstream version 2.3.5.upstream/2.3.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/parse_ini.h')
-rw-r--r-- | lib/parse_ini.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/parse_ini.h b/lib/parse_ini.h new file mode 100644 index 0000000..e37601b --- /dev/null +++ b/lib/parse_ini.h @@ -0,0 +1,22 @@ +#ifndef _PARSE_INI_H_ +#define _PARSE_INI_H_ + +/* + * parse_ini.h: routines for loading monitoring-plugin defaults from ini + * configuration files. + */ + +/* np_arg_list is a linked list of arguments passed between the ini + * parser and the argument parser to construct the final array */ +typedef struct np_arg_el { + char *arg; + struct np_arg_el *next; +} np_arg_list; + +/* np_load_defaults: load the default configuration (if present) for + * a plugin from the ini file + */ +np_arg_list *np_get_defaults(const char *locator, const char *default_section); + +#endif /* _PARSE_INI_H_ */ + |