Commit eab8cdc6 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Added protos for the upcoming curl_*_strerror() functions

parent dc9d0f25
Loading
Loading
Loading
Loading
+22 −1
Original line number Diff line number Diff line
@@ -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
+11 −0
Original line number Diff line number Diff line
@@ -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