2011-10-04 18:03:20 -04:00
|
|
|
#ifndef HEADER_CURL_TOOL_PARAMHLP_H
|
|
|
|
#define HEADER_CURL_TOOL_PARAMHLP_H
|
2011-09-17 19:58:18 -04:00
|
|
|
/***************************************************************************
|
|
|
|
* _ _ ____ _
|
|
|
|
* Project ___| | | | _ \| |
|
|
|
|
* / __| | | | |_) | |
|
|
|
|
* | (__| |_| | _ <| |___
|
|
|
|
* \___|\___/|_| \_\_____|
|
|
|
|
*
|
2017-08-06 14:10:40 -04:00
|
|
|
* Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2011-09-17 19:58:18 -04:00
|
|
|
*
|
|
|
|
* This software is licensed as described in the file COPYING, which
|
|
|
|
* you should have received as part of this distribution. The terms
|
2016-02-02 18:19:02 -05:00
|
|
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
2011-09-17 19:58:18 -04:00
|
|
|
*
|
|
|
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
* copies of the Software, and permit persons to whom the Software is
|
|
|
|
* furnished to do so, under the terms of the COPYING file.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
2012-04-06 17:35:15 -04:00
|
|
|
#include "tool_setup.h"
|
2011-09-17 19:58:18 -04:00
|
|
|
|
2014-02-23 07:59:59 -05:00
|
|
|
struct getout *new_getout(struct OperationConfig *config);
|
2011-09-17 19:58:18 -04:00
|
|
|
|
2011-10-04 18:03:20 -04:00
|
|
|
ParameterError file2string(char **bufp, FILE *file);
|
2011-09-17 19:58:18 -04:00
|
|
|
|
2011-10-04 18:03:20 -04:00
|
|
|
ParameterError file2memory(char **bufp, size_t *size, FILE *file);
|
2011-09-17 19:58:18 -04:00
|
|
|
|
2011-10-04 18:03:20 -04:00
|
|
|
void cleanarg(char *str);
|
2011-09-17 19:58:18 -04:00
|
|
|
|
2012-11-26 10:23:02 -05:00
|
|
|
ParameterError str2num(long *val, const char *str);
|
|
|
|
ParameterError str2unum(long *val, const char *str);
|
2017-08-06 14:10:40 -04:00
|
|
|
ParameterError str2udouble(double *val, const char *str, long max);
|
2011-09-17 19:58:18 -04:00
|
|
|
|
2014-02-23 07:59:59 -05:00
|
|
|
long proto2num(struct OperationConfig *config, long *val, const char *str);
|
2011-09-17 19:58:18 -04:00
|
|
|
|
2015-08-22 21:49:26 -04:00
|
|
|
int check_protocol(const char *str);
|
|
|
|
|
2012-11-26 10:23:02 -05:00
|
|
|
ParameterError str2offset(curl_off_t *val, const char *str);
|
2011-09-17 19:58:18 -04:00
|
|
|
|
2014-02-23 07:59:59 -05:00
|
|
|
CURLcode get_args(struct OperationConfig *config, const size_t i);
|
2011-10-04 18:03:20 -04:00
|
|
|
|
|
|
|
ParameterError add2list(struct curl_slist **list, const char *ptr);
|
|
|
|
|
2014-02-23 07:59:59 -05:00
|
|
|
int ftpfilemethod(struct OperationConfig *config, const char *str);
|
2011-10-04 18:03:20 -04:00
|
|
|
|
2014-02-23 07:59:59 -05:00
|
|
|
int ftpcccmethod(struct OperationConfig *config, const char *str);
|
2011-10-04 18:03:20 -04:00
|
|
|
|
2014-02-23 07:59:59 -05:00
|
|
|
long delegation(struct OperationConfig *config, char *str);
|
2011-10-04 18:03:20 -04:00
|
|
|
|
2016-12-13 15:10:00 -05:00
|
|
|
ParameterError str2tls_max(long *val, const char *str);
|
|
|
|
|
2011-10-04 18:03:20 -04:00
|
|
|
#endif /* HEADER_CURL_TOOL_PARAMHLP_H */
|