tool_getparam.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_TOOL_GETPARAM_H
00002 #define HEADER_CURL_TOOL_GETPARAM_H
00003 /***************************************************************************
00004  *                                  _   _ ____  _
00005  *  Project                     ___| | | |  _ \| |
00006  *                             / __| | | | |_) | |
00007  *                            | (__| |_| |  _ <| |___
00008  *                             \___|\___/|_| \_\_____|
00009  *
00010  * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
00011  *
00012  * This software is licensed as described in the file COPYING, which
00013  * you should have received as part of this distribution. The terms
00014  * are also available at https://curl.haxx.se/docs/copyright.html.
00015  *
00016  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
00017  * copies of the Software, and permit persons to whom the Software is
00018  * furnished to do so, under the terms of the COPYING file.
00019  *
00020  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
00021  * KIND, either express or implied.
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 /* HEADER_CURL_TOOL_GETPARAM_H */
00063 


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:07