From 5feb7018c5228a22d370d070c1f7c3dad2c71e25 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 10 Jul 2009 00:26:37 +0000 Subject: Replace parent_url with a pointer to the parent content. svn path=/trunk/netsurf/; revision=8428 --- content/fetch.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'content/fetch.h') diff --git a/content/fetch.h b/content/fetch.h index 42b6323c5..3206acc39 100644 --- a/content/fetch.h +++ b/content/fetch.h @@ -63,10 +63,11 @@ 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, - fetch_callback callback, - void *p, bool only_2xx, const char *post_urlenc, - struct form_successful_control *post_multipart, - bool verifiable, const char *parent_url, char *headers[]); + fetch_callback callback, + void *p, bool only_2xx, const char *post_urlenc, + struct form_successful_control *post_multipart, + bool verifiable, struct content *parent, + char *headers[]); void fetch_abort(struct fetch *f); void fetch_poll(void); void fetch_quit(void); @@ -78,7 +79,7 @@ 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); +struct content *fetch_get_parent(struct fetch *fetch); bool fetch_get_verifiable(struct fetch *fetch); /* API for fetchers themselves */ -- cgit v1.2.3