summaryrefslogtreecommitdiffstats
path: root/lib/parse_ini.h
blob: 1c28c7de6d6e48b4002b3330829a9f3cbd530247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _PARSE_INI_H_
#define _PARSE_INI_H_

/*
 * parse_ini.h: routines for loading nagios-plugin defaults from ini
 * configuration files.
 */

/* 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"
#endif /* NP_DEFAULT_INI_PATH */

/* 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);

#endif /* _PARSE_INI_H_ */