diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-05-04 07:47:11 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-05-04 07:47:11 +0000 |
commit | 9304055df518e5b9c85bd4559fcff12b09fed0f0 (patch) | |
tree | 05a790142b0ed38f31cc9c961cf3ea586f6e1347 /include | |
parent | 53e0c1b1a6f9cab14cbf767d4b6bd8e05616f0c7 (diff) |
'FILE *' changed to 'void *' in all callback functions
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/curl.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index 850c4fcd1..cf846c338 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -76,12 +76,12 @@ typedef int (*curl_progress_callback)(void *clientp, typedef size_t (*curl_write_callback)(char *buffer, size_t size, size_t nitems, - FILE *outstream); + void *outstream); typedef size_t (*curl_read_callback)(char *buffer, size_t size, size_t nitems, - FILE *instream); + void *instream); typedef int (*curl_passwd_callback)(void *clientp, char *prompt, @@ -173,7 +173,7 @@ typedef enum { typedef enum { CINIT(NOTHING, LONG, 0), /********* the first one is unused ************/ - /* This is the FILE * the regular output should be written to. */ + /* This is the FILE * or void * the regular output should be written to. */ CINIT(FILE, OBJECTPOINT, 1), /* The full URL to get/put */ @@ -276,7 +276,8 @@ typedef enum { /* send linked-list of QUOTE commands */ CINIT(QUOTE, OBJECTPOINT, 28), - /* send FILE * to store headers to */ + /* send FILE * or void * to store headers to, if you use a callback it + is simply passed to the callback unmodified */ CINIT(WRITEHEADER, OBJECTPOINT, 29), #ifdef MULTIDOC |