path: root/content/fetch.h
diff options
authorJohn Mark Bell <>2008-01-30 19:56:41 +0000
committerJohn Mark Bell <>2008-01-30 19:56:41 +0000
commitcc3481a2ff3fcf65317e035cb20ac632e5e0c149 (patch)
treea1b7befa9cde8a7e57dfcd4169a4deee219ff96c /content/fetch.h
parent087516561f16f995a3d87ae6f7f95103b40d9a3e (diff)
Make core fetching code handle verifiability of transactions
Make core fetching code be responsible for inserting cookies into the urldb Provide accessor to a fetch's parent url (this is defined as being the URL of the verifiable fetch which caused this one to occur) Make fetchcache's 3xx handling use the parent url when spawning new fetches svn path=/trunk/netsurf/; revision=3809
Diffstat (limited to 'content/fetch.h')
1 files changed, 4 insertions, 2 deletions
diff --git a/content/fetch.h b/content/fetch.h
index d1c388ac9..da846c607 100644
--- a/content/fetch.h
+++ b/content/fetch.h
@@ -96,14 +96,15 @@ void fetch_change_callback(struct fetch *fetch,
void *p);
long fetch_http_code(struct fetch *fetch);
const char *fetch_get_referer(struct fetch *fetch);
+const char *fetch_get_parent_url(struct fetch *fetch);
/* API for fetchers themselves */
typedef bool (*fetcher_initialise)(const char *);
typedef void* (*fetcher_setup_fetch)(struct fetch *, const char *,
bool, const char *,
- struct form_successful_control *, bool,
- const char *, const char **);
+ struct form_successful_control *,
+ const char **);
typedef bool (*fetcher_start_fetch)(void *);
typedef void (*fetcher_abort_fetch)(void *);
typedef void (*fetcher_free_fetch)(void *);
@@ -125,4 +126,5 @@ void fetch_remove_from_queues(struct fetch *fetch);
void fetch_free(struct fetch *f);
void fetch_set_http_code(struct fetch *fetch, long http_code);
const char *fetch_get_referer_to_send(struct fetch *fetch);
+void fetch_set_cookie(struct fetch *fetch, const char *data);