2007-02-06 14:33:55 -05:00
|
|
|
#ifndef _PARSE_INI_H_
|
|
|
|
|
#define _PARSE_INI_H_
|
|
|
|
|
|
|
|
|
|
/*
|
2014-01-18 03:40:24 -05:00
|
|
|
* parse_ini.h: routines for loading monitoring-plugin defaults from ini
|
2007-02-06 14:33:55 -05:00
|
|
|
* configuration files.
|
|
|
|
|
*/
|
|
|
|
|
|
2008-03-15 00:51:45 -04:00
|
|
|
/* 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;
|
|
|
|
|
|
2007-02-06 14:33:55 -05:00
|
|
|
/* np_load_defaults: load the default configuration (if present) for
|
|
|
|
|
* a plugin from the ini file
|
|
|
|
|
*/
|
2014-06-18 04:37:10 -04:00
|
|
|
np_arg_list *np_get_defaults(const char *locator, const char *default_section);
|
2007-02-06 14:33:55 -05:00
|
|
|
|
|
|
|
|
#endif /* _PARSE_INI_H_ */
|
2008-03-31 01:31:14 -04:00
|
|
|
|