Go to the documentation of this file.00001 #ifndef HEADER_CURL_TOOL_GETPARAM_H
00002 #define HEADER_CURL_TOOL_GETPARAM_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "tool_setup.h"
00025
00026 typedef enum {
00027 PARAM_OK = 0,
00028 PARAM_OPTION_AMBIGUOUS,
00029 PARAM_OPTION_UNKNOWN,
00030 PARAM_REQUIRES_PARAMETER,
00031 PARAM_BAD_USE,
00032 PARAM_HELP_REQUESTED,
00033 PARAM_MANUAL_REQUESTED,
00034 PARAM_VERSION_INFO_REQUESTED,
00035 PARAM_ENGINES_REQUESTED,
00036 PARAM_GOT_EXTRA_PARAMETER,
00037 PARAM_BAD_NUMERIC,
00038 PARAM_NEGATIVE_NUMERIC,
00039 PARAM_LIBCURL_DOESNT_SUPPORT,
00040 PARAM_LIBCURL_UNSUPPORTED_PROTOCOL,
00041 PARAM_NO_MEM,
00042 PARAM_NEXT_OPERATION,
00043 PARAM_LAST
00044 } ParameterError;
00045
00046 struct GlobalConfig;
00047 struct OperationConfig;
00048
00049 ParameterError getparameter(char *flag, char *nextarg, bool *usedarg,
00050 struct GlobalConfig *global,
00051 struct OperationConfig *operation);
00052
00053 #ifdef UNITTESTS
00054 void parse_cert_parameter(const char *cert_parameter,
00055 char **certname,
00056 char **passphrase);
00057 #endif
00058
00059 ParameterError parse_args(struct GlobalConfig *config, int argc,
00060 argv_item_t argv[]);
00061
00062 #endif
00063