From 07309888d66c608977b31955215503dc355c7d33 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 27 Nov 2011 14:14:36 +0000 Subject: return; Fix bug #3442642: allow scheme-specific fetchers to have a say in whether an URL can be fetched. svn path=/trunk/netsurf/; revision=13182 --- content/fetch.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'content/fetch.h') diff --git a/content/fetch.h b/content/fetch.h index e6999c420..d7cdced1b 100644 --- a/content/fetch.h +++ b/content/fetch.h @@ -124,6 +124,7 @@ struct fetch_multipart_data *fetch_multipart_data_clone( /* API for fetchers themselves */ typedef bool (*fetcher_initialise)(lwc_string *); +typedef bool (*fetcher_can_fetch)(const nsurl *); typedef void* (*fetcher_setup_fetch)(struct fetch *, nsurl *, bool, const char *, const struct fetch_multipart_data *, @@ -138,6 +139,7 @@ typedef void (*fetcher_finalise)(lwc_string *); * * \param scheme scheme fetcher is for (caller relinquishes ownership) * \param initialiser fetcher initialiser + * \param can_fetch fetcher can fetch function * \param setup_fetch fetcher fetch setup function * \param start_fetch fetcher fetch start function * \param abort_fetch fetcher fetch abort function @@ -148,6 +150,7 @@ typedef void (*fetcher_finalise)(lwc_string *); */ bool fetch_add_fetcher(lwc_string *scheme, fetcher_initialise initialiser, + fetcher_can_fetch can_fetch, fetcher_setup_fetch setup_fetch, fetcher_start_fetch start_fetch, fetcher_abort_fetch abort_fetch, -- cgit v1.2.3