mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:13:34 +03:00
curl: unify pointer names to global config
Use 'config' for pointing to a OperationConfig Use 'global' for pointing to GlobalConfig Bonus: add config_alloc(), an easier way to allocate + init a new OperationConfig struct. Closes #17888
This commit is contained in:
parent
695eee432f
commit
d516628d14
20 changed files with 110 additions and 123 deletions
|
|
@ -75,22 +75,22 @@ extern const struct NameValueUnsigned setopt_nv_CURLHSTS[];
|
|||
|
||||
/* Intercept setopt calls for --libcurl */
|
||||
|
||||
CURLcode tool_setopt_enum(CURL *curl, struct GlobalConfig *config,
|
||||
CURLcode tool_setopt_enum(CURL *curl, struct GlobalConfig *global,
|
||||
const char *name, CURLoption tag,
|
||||
const struct NameValue *nv, long lval);
|
||||
CURLcode tool_setopt_SSLVERSION(CURL *curl, struct GlobalConfig *config,
|
||||
CURLcode tool_setopt_SSLVERSION(CURL *curl, struct GlobalConfig *global,
|
||||
const char *name, CURLoption tag,
|
||||
long lval);
|
||||
CURLcode tool_setopt_flags(CURL *curl, struct GlobalConfig *config,
|
||||
CURLcode tool_setopt_flags(CURL *curl, struct GlobalConfig *global,
|
||||
const char *name, CURLoption tag,
|
||||
const struct NameValue *nv, long lval);
|
||||
CURLcode tool_setopt_bitmask(CURL *curl, struct GlobalConfig *config,
|
||||
CURLcode tool_setopt_bitmask(CURL *curl, struct GlobalConfig *global,
|
||||
const char *name, CURLoption tag,
|
||||
const struct NameValueUnsigned *nv, long lval);
|
||||
CURLcode tool_setopt_mimepost(CURL *curl, struct GlobalConfig *config,
|
||||
CURLcode tool_setopt_mimepost(CURL *curl, struct GlobalConfig *global,
|
||||
const char *name, CURLoption tag,
|
||||
curl_mime *mimepost);
|
||||
CURLcode tool_setopt_slist(CURL *curl, struct GlobalConfig *config,
|
||||
CURLcode tool_setopt_slist(CURL *curl, struct GlobalConfig *global,
|
||||
const char *name, CURLoption tag,
|
||||
struct curl_slist *list);
|
||||
CURLcode tool_setopt_long(CURL *curl, struct GlobalConfig *global,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue