diff options
author | Ashish Gupta <ashmew2@gmail.com> | 2017-05-02 12:25:51 +0200 |
---|---|---|
committer | Ashish Gupta <ashmew2@gmail.com> | 2017-10-25 22:04:54 +0200 |
commit | 7aaf1dc18d5648ad381efad64facc7282df39e3c (patch) | |
tree | fd90a60664da09ff782d7d6ee0b3941dbcb4535a /content/fetch.h | |
parent | 878db58d03e98521c0da55628b7be1c7cca76463 (diff) | |
download | netsurf-7aaf1dc18d5648ad381efad64facc7282df39e3c.tar.gz netsurf-7aaf1dc18d5648ad381efad64facc7282df39e3c.tar.bz2 |
Fix description for FETCH_HEADER
Remove redundant FETCH_XXX description from the curl fetcher.
Diffstat (limited to 'content/fetch.h')
-rw-r--r-- | content/fetch.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content/fetch.h b/content/fetch.h index 5521778ea..79fb0ede3 100644 --- a/content/fetch.h +++ b/content/fetch.h @@ -103,14 +103,14 @@ typedef void (*fetch_callback)(const fetch_msg *msg, void *p); * The function returns immediately. The fetch may be queued for later * processing. * - * A pointer to an opaque struct fetch is returned, which can be passed to + * A pointer to an opaque struct fetch_info is returned, which can be passed to * fetch_abort() to abort the fetch at any time. Returns NULL if memory is * exhausted (or some other fatal error occurred). * * The caller must supply a callback function which is called when anything - * interesting happens. The callback function is first called with msg - * FETCH_HEADER, with the header in data, then one or more times - * with FETCH_DATA with some data for the url, and finally with + * interesting happens. The callback function is first called one or more times + * with msg.type FETCH_HEADER for each line of the header in data, then one or + * more times with FETCH_DATA with some data for the url, and finally with * FETCH_FINISHED. Alternatively, FETCH_ERROR indicates an error occurred: * data contains an error message. FETCH_REDIRECT may replace the FETCH_HEADER, * FETCH_DATA, FETCH_FINISHED sequence if the server sends a replacement URL. |