#include "tool_setup.h"
#include "strcase.h"
#include "curlx.h"
#include "tool_cfgable.h"
#include "tool_getparam.h"
#include "tool_getpass.h"
#include "tool_homedir.h"
#include "tool_msgs.h"
#include "tool_paramhlp.h"
#include "tool_version.h"
#include "memdebug.h"
Go to the source code of this file.
Defines | |
#define | ENABLE_CURLX_PRINTF |
Functions | |
ParameterError | add2list (struct curl_slist **list, const char *ptr) |
int | check_protocol (const char *str) |
static CURLcode | checkpasswd (const char *kind, const size_t i, const bool last, char **userpwd) |
void | cleanarg (char *str) |
long | delegation (struct OperationConfig *config, char *str) |
ParameterError | file2memory (char **bufp, size_t *size, FILE *file) |
ParameterError | file2string (char **bufp, FILE *file) |
int | ftpcccmethod (struct OperationConfig *config, const char *str) |
int | ftpfilemethod (struct OperationConfig *config, const char *str) |
CURLcode | get_args (struct OperationConfig *config, const size_t i) |
static char * | my_useragent (void) |
struct getout * | new_getout (struct OperationConfig *config) |
long | proto2num (struct OperationConfig *config, long *val, const char *str) |
ParameterError | str2double (double *val, const char *str) |
ParameterError | str2num (long *val, const char *str) |
ParameterError | str2offset (curl_off_t *val, const char *str) |
ParameterError | str2udouble (double *val, const char *str) |
ParameterError | str2unum (long *val, const char *str) |
#define ENABLE_CURLX_PRINTF |
Definition at line 26 of file tool_paramhlp.c.
ParameterError add2list | ( | struct curl_slist ** | list, |
const char * | ptr | ||
) |
Definition at line 461 of file tool_paramhlp.c.
int check_protocol | ( | const char * | str | ) |
Check if the given string is a protocol supported by libcurl
str | the protocol name |
Definition at line 356 of file tool_paramhlp.c.
static CURLcode checkpasswd | ( | const char * | kind, |
const size_t | i, | ||
const bool | last, | ||
char ** | userpwd | ||
) | [static] |
Definition at line 399 of file tool_paramhlp.c.
void cleanarg | ( | char * | str | ) |
Definition at line 139 of file tool_paramhlp.c.
long delegation | ( | struct OperationConfig * | config, |
char * | str | ||
) |
Definition at line 500 of file tool_paramhlp.c.
ParameterError file2memory | ( | char ** | bufp, |
size_t * | size, | ||
FILE * | file | ||
) |
Definition at line 90 of file tool_paramhlp.c.
ParameterError file2string | ( | char ** | bufp, |
FILE * | file | ||
) |
Definition at line 59 of file tool_paramhlp.c.
int ftpcccmethod | ( | struct OperationConfig * | config, |
const char * | str | ||
) |
Definition at line 487 of file tool_paramhlp.c.
int ftpfilemethod | ( | struct OperationConfig * | config, |
const char * | str | ||
) |
Definition at line 472 of file tool_paramhlp.c.
CURLcode get_args | ( | struct OperationConfig * | config, |
const size_t | i | ||
) |
Definition at line 523 of file tool_paramhlp.c.
static char* my_useragent | ( | void | ) | [static] |
Definition at line 518 of file tool_paramhlp.c.
struct getout* new_getout | ( | struct OperationConfig * | config | ) | [read] |
Definition at line 40 of file tool_paramhlp.c.
long proto2num | ( | struct OperationConfig * | config, |
long * | val, | ||
const char * | str | ||
) |
Definition at line 249 of file tool_paramhlp.c.
ParameterError str2double | ( | double * | val, |
const char * | str | ||
) |
Definition at line 205 of file tool_paramhlp.c.
ParameterError str2num | ( | long * | val, |
const char * | str | ||
) |
Definition at line 163 of file tool_paramhlp.c.
ParameterError str2offset | ( | curl_off_t * | val, |
const char * | str | ||
) |
Parses the given string looking for an offset (which may be a larger-than-integer value). The offset CANNOT be negative!
val | the offset to populate |
str | the buffer containing the offset |
Definition at line 377 of file tool_paramhlp.c.
ParameterError str2udouble | ( | double * | val, |
const char * | str | ||
) |
Definition at line 227 of file tool_paramhlp.c.
ParameterError str2unum | ( | long * | val, |
const char * | str | ||
) |
Definition at line 185 of file tool_paramhlp.c.