From a70fb5becfef4479fc44c530658e5fcf2512d289 Mon Sep 17 00:00:00 2001 From: "M. Sean Finney" Date: Tue, 6 Feb 2007 19:33:55 +0000 Subject: 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 --- lib/parse_ini.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lib/parse_ini.h (limited to 'lib/parse_ini.h') 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 @@ +#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_ */ -- cgit v1.2.3-74-g34f1