Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/fda2c1a4c7241b27ea884f4ba9190fedd0631caa
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/fda2c1a4c7241b27ea884f4ba9190fedd0631caa
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/fda2c1a4c7241b27ea884f4ba9190fedd0631caa

The branch, ashmew2/fix-description has been created
        at  fda2c1a4c7241b27ea884f4ba9190fedd0631caa (commit)

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=fda2c1a4c7241b27ea884f4ba9190fedd0631caa
commit fda2c1a4c7241b27ea884f4ba9190fedd0631caa
Author: Ashish Gupta <[email protected]>
Commit: Ashish Gupta <[email protected]>

    Fix descriptions in curl fetcher and fetch.h

diff --git a/content/fetch.h b/content/fetch.h
index 5521778..79fb0ed 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.
diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c
index a6146ed..2c15cc1 100644
--- a/content/fetchers/curl.c
+++ b/content/fetchers/curl.c
@@ -295,24 +295,8 @@ fetch_curl_post_convert(const struct fetch_multipart_data 
*control)
 
 /**
  * Start fetching data for the given URL.
- *
- * The function returns immediately. The fetch may be queued for later
- * processing.
- *
- * A pointer to an opaque struct curl_fetch_info is returned, which can be
- * passed to fetch_abort() to abort the fetch at any time. Returns 0 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
- * 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.
- *
- * Some private data can be passed as the last parameter to fetch_start, and
- * callbacks will contain this.
+ * Returns a pointer to struct curl_fetch_info.
+ * See content/fetch.h for more information.
  */
 static void *
 fetch_curl_setup(struct fetch *parent_fetch,


-----------------------------------------------------------------------


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to