aboutsummaryrefslogtreecommitdiff
path: root/lib/parse_ini.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parse_ini.h')
-rw-r--r--lib/parse_ini.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/parse_ini.h b/lib/parse_ini.h
index 1c28c7de..fea745c5 100644
--- a/lib/parse_ini.h
+++ b/lib/parse_ini.h
@@ -6,6 +6,13 @@
* 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_DEFAULT_INI_PATH: compile-time default location for ini file */
#ifndef NP_DEFAULT_INI_PATH
# define NP_DEFAULT_INI_PATH "/etc/nagios-plugins/plugins.ini"
@@ -14,6 +21,6 @@
/* np_load_defaults: load the default configuration (if present) for
* a plugin from the ini file
*/
-char* np_get_defaults(const char *locator, const char *default_section);
+np_arg_list* np_get_defaults(const char *locator, const char *default_section);
#endif /* _PARSE_INI_H_ */