aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-11-02 14:34:46 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-11-02 14:34:46 +0000
commite0e01e5a59b00e617f2a90114b0316879e8cb89d (patch)
tree74c7de097140215b1491a44eaafd402634473a52 /include
parent852b664e450b15bff3b9d05e6fefcee78b86335e (diff)
error code fix
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index e3bcb4377..4a1245e58 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -100,7 +100,11 @@ typedef size_t (*curl_read_callback)(char *buffer,
FILE *instream);
/* All possible error codes from this version of urlget(). Future versions
- may return other values, stay prepared. */
+ may return other values, stay prepared.
+
+ Always add new return codes last. Never *EVER* remove any. The return
+ codes must remain the same!
+ */
typedef enum {
CURLE_OK = 0,
@@ -145,8 +149,6 @@ typedef enum {
CURLE_HTTP_POST_ERROR,
- CURLE_HTTP_PORT_FAILED, /* HTTP Interface operation failed */
-
CURLE_SSL_CONNECT_ERROR, /* something was wrong when connecting with SSL */
CURLE_FTP_BAD_DOWNLOAD_RESUME, /* couldn't resume download */
@@ -159,10 +161,11 @@ typedef enum {
CURLE_FUNCTION_NOT_FOUND,
CURLE_ABORTED_BY_CALLBACK,
-
CURLE_BAD_FUNCTION_ARGUMENT,
CURLE_BAD_CALLING_ORDER,
+ CURLE_HTTP_PORT_FAILED, /* HTTP Interface operation failed */
+
CURL_LAST
} CURLcode;