summaryrefslogtreecommitdiffstats
path: root/include/helper.h
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2015-02-17 10:31:59 +0100
committerDave Davenport <qball@gmpclient.org>2015-02-17 10:31:59 +0100
commita534a0f244c4096177ce116ff58276055074deef (patch)
treeb858a71d05e8cef2b955f84675cfa36311bdc745 /include/helper.h
parentbda97e08499cbe73fdbc2a93a3bd97bd60fcd797 (diff)
Rewrite of the configuration parsing, no longer duplicating options between Xrm and CMD.
* NEEDS TESTING.
Diffstat (limited to 'include/helper.h')
-rw-r--r--include/helper.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/helper.h b/include/helper.h
index 909ecb3f..b985c2fe 100644
--- a/include/helper.h
+++ b/include/helper.h
@@ -147,18 +147,11 @@ int execute_generator ( char * cmd ) __attribute__( ( nonnull ) );
void create_pid_file ( const char *pidfile );
/**
- * @param argc Number of arguments.
- * @param argv Array of arguments.
- *
- * Parse commandline options.
- */
-void config_parse_cmd_options ( int argc, char ** argv );
-
-/**
* Do some input validation, especially the first few could break things.
* It is good to catch them beforehand.
*
* This functions exits the program with 1 when it finds an invalid configuration.
*/
-void config_sanity_check ( void );
+void config_sanity_check ( int argc, char **argv );
+char helper_parse_char ( const char *arg );
#endif // __HELPER_H__