summaryrefslogtreecommitdiffstats
path: root/include/helper.h
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2015-03-11 18:32:37 +0100
committerDave Davenport <qball@gmpclient.org>2015-03-11 18:32:37 +0100
commit4fad02225e836e838ef1f48017a576e73c694edf (patch)
tree2b21950552953472f305305ca9f0dbb3c8b788f9 /include/helper.h
parentc89a272d4dbe19df90aac3607a466d530853840c (diff)
Cleanup argc/argv lugging around.
Diffstat (limited to 'include/helper.h')
-rw-r--r--include/helper.h23
1 files changed, 7 insertions, 16 deletions
diff --git a/include/helper.h b/include/helper.h
index 2e1dbe23..76b69b85 100644
--- a/include/helper.h
+++ b/include/helper.h
@@ -41,8 +41,6 @@ char *token_collate_key ( const char *token, int case_sensitive );
char **tokenize ( const char *input, int case_sensitive );
/**
- * @param argc Number of arguments.
- * @param argv 2 dimensional array of arguments.
* @param key The key to search for
* @param val Pointer to the string to set to the key value (if found)
*
@@ -51,11 +49,9 @@ char **tokenize ( const char *input, int case_sensitive );
*
* @returns TRUE if key was found and val was set.
*/
-int find_arg_char ( const int argc, char * const argv[], const char * const key, char *val );
+int find_arg_char ( const char * const key, char *val );
/**
- * @param argc Number of arguments.
- * @param argv 2 dimensional array of arguments.
* @param key The key to search for
* @param val Pointer to the string to set to the key value (if found)
*
@@ -63,11 +59,9 @@ int find_arg_char ( const int argc, char * const argv[], const char * const key,
*
* @returns TRUE if key was found and val was set.
*/
-int find_arg_uint ( const int argc, char * const argv[], const char * const key, unsigned int *val );
+int find_arg_uint ( const char * const key, unsigned int *val );
/**
- * @param argc Number of arguments.
- * @param argv 2 dimensional array of arguments.
* @param key The key to search for
* @param val Pointer to the string to set to the key value (if found)
*
@@ -75,12 +69,10 @@ int find_arg_uint ( const int argc, char * const argv[], const char * const key,
*
* @returns TRUE if key was found and val was set.
*/
-int find_arg_int ( const int argc, char * const argv[], const char * const key, int *val );
+int find_arg_int ( const char * const key, int *val );
/**
- * @param argc Number of arguments.
- * @param argv 2 dimensional array of arguments.
* @param key The key to search for
* @param val Pointer to the string to set to the key value (if found)
*
@@ -88,18 +80,16 @@ int find_arg_int ( const int argc, char * const argv[], const char * const key,
*
* @returns TRUE if key was found and val was set.
*/
-int find_arg_str ( const int argc, char * const argv[], const char * const key, char** val );
+int find_arg_str ( const char * const key, char** val );
/**
- * @param argc Number of arguments.
- * @param argv 2 dimensional array of arguments.
* @param key The key to search for
*
* Check if key is passed as argument.
*
* @returns return position of string or -1 if not found.
*/
-int find_arg ( const int argc, char * const argv[], const char * const key );
+int find_arg ( const char * const key );
/**
* @params tokens
@@ -140,6 +130,7 @@ void create_pid_file ( const char *pidfile );
*
* This functions exits the program with 1 when it finds an invalid configuration.
*/
-void config_sanity_check ( int argc, char **argv );
+void config_sanity_check ( void );
char helper_parse_char ( const char *arg );
+void cmd_set_arguments ( int argc, char **argv );
#endif // __HELPER_H__