From a34cf37404104ff5bb13fb5fecdf5e492401c6a3 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Mon, 24 Mar 2008 07:02:28 +0000 Subject: Add extra-opts argument parsing with tests git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1961 f882894a-f735-0410-b71e-b25c423dba1c --- lib/extra_opts.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/extra_opts.h (limited to 'lib/extra_opts.h') diff --git a/lib/extra_opts.h b/lib/extra_opts.h new file mode 100644 index 00000000..5f89d2b2 --- /dev/null +++ b/lib/extra_opts.h @@ -0,0 +1,15 @@ +#ifndef _EXTRA_OPTS_H_ +#define _EXTRA_OPTS_H_ + +/* + * extra_opts.h: routines for loading nagios-plugin defaults from ini + * configuration files. + */ + +/* np_extra_opts: Process the --extra-opts arguments and create a new argument + * array load the default configuration (if present) for + * a plugin from the ini file + */ +char **np_extra_opts(int argc, char **argv, const char *plugin_name, int *argc_new); + +#endif /* _EXTRA_OPTS_H_ */ -- cgit v1.2.3