Code

Fixed test so works on MacOSX (use /bin/sh instead of /bin/grep).
[nagiosplug.git] / lib / parse_ini.h
1 #ifndef _PARSE_INI_H_
2 #define _PARSE_INI_H_
4 /*
5  * parse_ini.h: routines for loading nagios-plugin defaults from ini
6  * configuration files.
7  */
9 /* NP_DEFAULT_INI_PATH: compile-time default location for ini file */
10 #ifndef NP_DEFAULT_INI_PATH
11 # define NP_DEFAULT_INI_PATH "/etc/nagios-plugins/plugins.ini"
12 #endif /* NP_DEFAULT_INI_PATH */
14 /* np_load_defaults: load the default configuration (if present) for
15  * a plugin from the ini file
16  */
17 char* np_get_defaults(const char *locator, const char *default_section);
19 #endif /* _PARSE_INI_H_ */