diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-27 11:07:32 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-27 11:07:32 +0000 |
commit | e1f7a37f157686aba073296c3458875b839577b5 (patch) | |
tree | a9c8e46272e32ca491e0b2586d7720b0f2bbb596 /content/fetch.h | |
parent | a269a82d1fee2eca4bee956b35ff8fd71e65c30e (diff) | |
download | netsurf-e1f7a37f157686aba073296c3458875b839577b5.tar.gz netsurf-e1f7a37f157686aba073296c3458875b839577b5.tar.bz2 |
Port fetch layer to nsurl. Remove unused fetch_get_referer function.
svn path=/trunk/netsurf/; revision=12899
Diffstat (limited to 'content/fetch.h')
-rw-r--r-- | content/fetch.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/content/fetch.h b/content/fetch.h index 33378a0a9..66a0f4a44 100644 --- a/content/fetch.h +++ b/content/fetch.h @@ -28,6 +28,7 @@ #include <libwapcaplet/libwapcaplet.h> #include "utils/config.h" +#include "utils/nsurl.h" typedef enum { FETCH_PROGRESS, @@ -84,7 +85,7 @@ typedef void (*fetch_callback)(fetch_msg msg, void *p, const void *data, void fetch_init(void); -struct fetch * fetch_start(const char *url, const char *referer, +struct fetch * fetch_start(nsurl *url, nsurl *referer, fetch_callback callback, void *p, bool only_2xx, const char *post_urlenc, const struct fetch_multipart_data *post_multipart, @@ -95,12 +96,11 @@ void fetch_poll(void); void fetch_quit(void); const char *fetch_filetype(const char *unix_path); char *fetch_mimetype(const char *ro_path); -bool fetch_can_fetch(const char *url); +bool fetch_can_fetch(nsurl *url); void fetch_change_callback(struct fetch *fetch, fetch_callback callback, void *p); long fetch_http_code(struct fetch *fetch); -const char *fetch_get_referer(struct fetch *fetch); bool fetch_get_verifiable(struct fetch *fetch); void fetch_multipart_data_destroy(struct fetch_multipart_data *list); |