Code

Fix for regex input of '|', being output causing problems with Nagios' parsing of
[nagiosplug.git] / lib / extra_opts.h
1 #ifndef _EXTRA_OPTS_H_
2 #define _EXTRA_OPTS_H_
4 /*
5  * extra_opts.h: routines for loading nagios-plugin defaults from ini
6  * configuration files.
7  */
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
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
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
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.
19  */
20 char **np_extra_opts(int *argc, char **argv, const char *plugin_name);
22 #endif /* _EXTRA_OPTS_H_ */