summaryrefslogtreecommitdiffstats
path: root/lib/extra_opts.h
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-03-24 07:02:28 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-03-24 07:02:28 (GMT)
commita34cf37404104ff5bb13fb5fecdf5e492401c6a3 (patch)
treee41a60d8a551b4ec7ef65be4ce084b7ae02be79e /lib/extra_opts.h
parentdce143e354da414bdd5fa5fb0b9b488ac4221200 (diff)
downloadmonitoring-plugins-a34cf37404104ff5bb13fb5fecdf5e492401c6a3.tar.gz
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
Diffstat (limited to 'lib/extra_opts.h')
-rw-r--r--lib/extra_opts.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/extra_opts.h b/lib/extra_opts.h
new file mode 100644
index 0000000..5f89d2b
--- /dev/null
+++ b/lib/extra_opts.h
@@ -0,0 +1,15 @@
1#ifndef _EXTRA_OPTS_H_
2#define _EXTRA_OPTS_H_
3
4/*
5 * extra_opts.h: routines for loading nagios-plugin defaults from ini
6 * configuration files.
7 */
8
9/* np_extra_opts: Process the --extra-opts arguments and create a new argument
10 * array load the default configuration (if present) for
11 * a plugin from the ini file
12 */
13char **np_extra_opts(int argc, char **argv, const char *plugin_name, int *argc_new);
14
15#endif /* _EXTRA_OPTS_H_ */