diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-03-09 15:10:58 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-03-09 15:10:58 +0000 |
commit | 9cf4434ae27a02e30dae886ce2bb8badd83bf351 (patch) | |
tree | bed8d1e3e3c5ec7c3acf1b133f16e0efd531afed /lib | |
parent | 8ccd8b6dbc92a6bba7944ffab1365d65b7eb63fb (diff) |
Modified to use Curl_* functions instead of curl_* ones
Diffstat (limited to 'lib')
-rw-r--r-- | lib/easy.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/lib/easy.c b/lib/easy.c index e04c2d03a..ead4da73a 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -83,15 +83,11 @@ CURL *curl_easy_init(void) CURLcode res; struct UrlData *data; - if(curl_init()) - return NULL; - /* We use curl_open() with undefined URL so far */ - res = curl_open((CURL **)&data, NULL); + res = Curl_open((CURL **)&data, NULL); if(res != CURLE_OK) return NULL; - data->interf = CURLI_EASY; /* mark it as an easy one */ /* SAC */ data->device = NULL; @@ -119,16 +115,16 @@ CURLcode curl_easy_setopt(CURL *curl, CURLoption tag, ...) if(tag < CURLOPTTYPE_OBJECTPOINT) { /* This is a LONG type */ param_long = va_arg(arg, long); - curl_setopt(data, tag, param_long); + Curl_setopt(data, tag, param_long); } else if(tag < CURLOPTTYPE_FUNCTIONPOINT) { /* This is a object pointer type */ param_obj = va_arg(arg, void *); - curl_setopt(data, tag, param_obj); + Curl_setopt(data, tag, param_obj); } else { param_func = va_arg(arg, func_T ); - curl_setopt(data, tag, param_func); + Curl_setopt(data, tag, param_func); } va_end(arg); @@ -137,13 +133,12 @@ CURLcode curl_easy_setopt(CURL *curl, CURLoption tag, ...) CURLcode curl_easy_perform(CURL *curl) { - return curl_transfer(curl); + return Curl_perform(curl); } void curl_easy_cleanup(CURL *curl) { - curl_close(curl); - curl_free(); + Curl_close(curl); } CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...) @@ -153,5 +148,5 @@ CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...) va_start(arg, info); paramp = va_arg(arg, void *); - return curl_getinfo(curl, info, paramp); + return Curl_getinfo(curl, info, paramp); } |