diff options
Diffstat (limited to 'src/tool_setopt.h')
-rw-r--r-- | src/tool_setopt.h | 39 |
1 files changed, 17 insertions, 22 deletions
diff --git a/src/tool_setopt.h b/src/tool_setopt.h index 2d179fa99..4f28df980 100644 --- a/src/tool_setopt.h +++ b/src/tool_setopt.h @@ -76,60 +76,55 @@ extern const struct NameValueUnsigned setopt_nv_CURLHSTS[]; /* Intercept setopt calls for --libcurl */ -CURLcode tool_setopt_enum(CURL *curl, struct OperationConfig *config, - const char *name, CURLoption tag, +CURLcode tool_setopt_enum(CURL *curl, const char *name, CURLoption tag, const struct NameValue *nv, long lval); -CURLcode tool_setopt_SSLVERSION(CURL *curl, struct OperationConfig *config, - const char *name, CURLoption tag, +CURLcode tool_setopt_SSLVERSION(CURL *curl, const char *name, CURLoption tag, long lval); CURLcode tool_setopt_flags(CURL *curl, struct OperationConfig *config, const char *name, CURLoption tag, const struct NameValue *nv, long lval); -CURLcode tool_setopt_bitmask(CURL *curl, struct OperationConfig *config, +CURLcode tool_setopt_bitmask(CURL *curl, const char *name, CURLoption tag, const struct NameValueUnsigned *nv, long lval); CURLcode tool_setopt_mimepost(CURL *curl, struct OperationConfig *config, const char *name, CURLoption tag, curl_mime *mimepost); -CURLcode tool_setopt_slist(CURL *curl, struct OperationConfig *config, - const char *name, CURLoption tag, +CURLcode tool_setopt_slist(CURL *curl, const char *name, CURLoption tag, struct curl_slist *list); -CURLcode tool_setopt_long(CURL *curl, struct OperationConfig *config, - const char *name, CURLoption tag, +CURLcode tool_setopt_long(CURL *curl, const char *name, CURLoption tag, long lval); -CURLcode tool_setopt_offt(CURL *curl, struct OperationConfig *config, - const char *name, CURLoption tag, +CURLcode tool_setopt_offt(CURL *curl, const char *name, CURLoption tag, curl_off_t lval); -CURLcode tool_setopt(CURL *curl, bool str, - struct OperationConfig *config, - const char *name, CURLoption tag, ...); +CURLcode tool_setopt(CURL *curl, struct OperationConfig *config, + bool str, const char *name, CURLoption tag, + ...); #define my_setopt(x,y,z) \ - tool_setopt(x, FALSE, config, #y, y, z) + tool_setopt(x, config, FALSE, #y, y, z) #define my_setopt_long(x,y,z) \ - tool_setopt_long(x, config, #y, y, z) + tool_setopt_long(x, #y, y, z) #define my_setopt_offt(x,y,z) \ - tool_setopt_offt(x, config, #y, y, z) + tool_setopt_offt(x, #y, y, z) #define my_setopt_str(x,y,z) \ - tool_setopt(x, TRUE, config, #y, y, z) + tool_setopt(x, config, TRUE, #y, y, z) #define my_setopt_enum(x,y,z) \ - tool_setopt_enum(x, config, #y, y, setopt_nv_ ## y, z) + tool_setopt_enum(x, #y, y, setopt_nv_ ## y, z) #define my_setopt_SSLVERSION(x,y,z) \ - tool_setopt_SSLVERSION(x, config, #y, y, z) + tool_setopt_SSLVERSION(x, #y, y, z) #define my_setopt_bitmask(x,y,z) \ - tool_setopt_bitmask(x, config, #y, y, setopt_nv_ ## y, z) + tool_setopt_bitmask(x, #y, y, setopt_nv_ ## y, z) #define my_setopt_mimepost(x,y,z) \ tool_setopt_mimepost(x, config, #y, y, z) #define my_setopt_slist(x,y,z) \ - tool_setopt_slist(x, config, #y, y, z) + tool_setopt_slist(x, #y, y, z) #else /* CURL_DISABLE_LIBCURL_OPTION */ |