diff options
author | M. Sean Finney <seanius@users.sourceforge.net> | 2007-02-06 19:33:55 +0000 |
---|---|---|
committer | M. Sean Finney <seanius@users.sourceforge.net> | 2007-02-06 19:33:55 +0000 |
commit | a70fb5becfef4479fc44c530658e5fcf2512d289 (patch) | |
tree | 8283e3edc50f8ebc8b176edd3a57d1ef940aba56 /lib/parse_ini.h | |
parent | da44f86a15f8b5e536f88f4e4bcc4bb3dde54562 (diff) | |
download | monitoring-plugins-a70fb5becfef4479fc44c530658e5fcf2512d289.tar.gz |
initial version of ini file parsing routines in C
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1610 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/parse_ini.h')
-rw-r--r-- | lib/parse_ini.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/parse_ini.h b/lib/parse_ini.h new file mode 100644 index 00000000..1c28c7de --- /dev/null +++ b/lib/parse_ini.h | |||
@@ -0,0 +1,19 @@ | |||
1 | #ifndef _PARSE_INI_H_ | ||
2 | #define _PARSE_INI_H_ | ||
3 | |||
4 | /* | ||
5 | * parse_ini.h: routines for loading nagios-plugin defaults from ini | ||
6 | * configuration files. | ||
7 | */ | ||
8 | |||
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 */ | ||
13 | |||
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); | ||
18 | |||
19 | #endif /* _PARSE_INI_H_ */ | ||