diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/curl.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index 7ecb6317b..9c8cd40e0 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -186,15 +186,21 @@ typedef size_t (*curl_write_callback)(char *buffer, size_t nitems, void *outstream); +/* this is the return codes for the seek callbacks */ +#define CURL_SEEKFUNC_OK 0 +#define CURL_SEEKFUNC_FAIL 1 /* fail the entire transfer */ +#define CURL_SEEKFUNC_CANTSEEK 2 /* tell libcurl seeking can't be done, so + libcurl might try other means instead */ +typedef int (*curl_seek_callback)(void *instream, + curl_off_t offset, + int origin); /* 'whence' */ + /* This is a return code for the read callback that, when returned, will signal libcurl to immediately abort the current transfer. */ #define CURL_READFUNC_ABORT 0x10000000 /* This is a return code for the read callback that, when returned, will signal libcurl to pause sending data on the current transfer. */ #define CURL_READFUNC_PAUSE 0x10000001 -typedef int (*curl_seek_callback)(void *instream, - curl_off_t offset, - int origin); /* 'whence' */ typedef size_t (*curl_read_callback)(char *buffer, size_t size, |