diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-24 22:53:42 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-24 22:53:42 +0000 |
commit | eab8cdc640a1c3b78c5626e197d0c45d093a39b2 (patch) | |
tree | dffefc44e4baae35443839f2f5a0f80078af2b15 /include | |
parent | dc9d0f256d9798822d65f1f709567b9e0669c119 (diff) |
Added protos for the upcoming curl_*_strerror() functions
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/curl.h | 23 | ||||
-rw-r--r-- | include/curl/multi.h | 11 |
2 files changed, 33 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index a81c915d6..abe384445 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -1066,7 +1066,6 @@ void curl_slist_free_all(struct curl_slist *); */ time_t curl_getdate(const char *p, const time_t *now); - #define CURLINFO_STRING 0x100000 #define CURLINFO_LONG 0x200000 #define CURLINFO_DOUBLE 0x300000 @@ -1242,6 +1241,28 @@ typedef struct { */ curl_version_info_data *curl_version_info(CURLversion); +/* + * NAME curl_easy_strerror() + * + * DESCRIPTION + * + * The curl_easy_strerror function may be used to turn a CURLcode value + * into the equivalent human readable error string. This is useful + * for printing meaningful error messages. + */ +const char *curl_easy_strerror(CURLcode); + +/* + * NAME curl_share_strerror() + * + * DESCRIPTION + * + * The curl_share_strerror function may be used to turn a CURLSHcode value + * into the equivalent human readable error string. This is useful + * for printing meaningful error messages. + */ +const char *curl_share_strerror(CURLSHcode); + #ifdef __cplusplus } #endif diff --git a/include/curl/multi.h b/include/curl/multi.h index b2d821826..3a867ab68 100644 --- a/include/curl/multi.h +++ b/include/curl/multi.h @@ -203,6 +203,17 @@ CURLMcode curl_multi_cleanup(CURLM *multi_handle); CURLMsg *curl_multi_info_read(CURLM *multi_handle, int *msgs_in_queue); +/* + * NAME curl_multi_strerror() + * + * DESCRIPTION + * + * The curl_multi_strerror function may be used to turn a CURLMcode value + * into the equivalent human readable error string. This is useful + * for printing meaningful error messages. + */ +const char *curl_multi_strerror(CURLMcode); + #ifdef __cplusplus } /* end of extern "C" */ #endif |