summaryrefslogtreecommitdiffstats
path: root/lib/extra_opts.h
diff options
context:
space:
mode:
authorMatthias Eble <psychotrahe@gmx.de>2009-06-11 15:28:14 (GMT)
committerMatthias Eble <psychotrahe@gmx.de>2009-06-11 15:28:14 (GMT)
commit5a6268f72953d7d0aa0f22f278ac929b1f183686 (patch)
tree2653c52c368a8cee0110265f98ed662698901249 /lib/extra_opts.h
parentc66d2c6b3b6d948ff36126f5d3a7629279f47878 (diff)
parent6e5d12b5d0345e61425399aff22c5a54fbebaf9e (diff)
downloadmonitoring-plugins-5a6268f72953d7d0aa0f22f278ac929b1f183686.tar.gz
Merge branch 'master' of ssh://PsychoTrahe@repo.or.cz/srv/git/nagiosplugins
Diffstat (limited to 'lib/extra_opts.h')
-rw-r--r--lib/extra_opts.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/extra_opts.h b/lib/extra_opts.h
index 0cb47fb..4bb7b73 100644
--- a/lib/extra_opts.h
+++ b/lib/extra_opts.h
@@ -8,11 +8,14 @@
8 8
9/* np_extra_opts: Process the --extra-opts arguments and create a new argument 9/* np_extra_opts: Process the --extra-opts arguments and create a new argument
10 * array with ini-processed and argument-passed arguments together. The 10 * array with ini-processed and argument-passed arguments together. The
11 * ini-procesed arguments always come first (in the ord of --extra-opts 11 * ini-procesed arguments always come first (in the order of --extra-opts
12 * arguments). If no --extra-opts arguments are provided or returned nothing 12 * arguments). If no --extra-opts arguments are provided or returned nothing
13 * it returns **argv otherwise the new array is returned. --extra-opts are 13 * it returns **argv otherwise the new array is returned. --extra-opts are
14 * always removed from **argv. The original pointers from **argv are kept in 14 * always removed from **argv. The original pointers from **argv are kept in
15 * the new array to preserve ability to overwrite arguments in processlist. 15 * the new array to preserve ability to overwrite arguments in processlist.
16 *
17 * The new array can be easily freed as long as a pointer to the original one
18 * is kept. See my_free() in lib/tests/test_opts1.c for an example.
16 */ 19 */
17char **np_extra_opts(int *argc, char **argv, const char *plugin_name); 20char **np_extra_opts(int *argc, char **argv, const char *plugin_name);
18 21