From 36eff6da2bfe5b183c2b4876bb2afe9dedec9b39 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 3 Oct 2011 15:56:47 +0000 Subject: Port more internals to nsurl. Front ends may need updating. svn path=/trunk/netsurf/; revision=12926 --- desktop/gui.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'desktop/gui.h') diff --git a/desktop/gui.h b/desktop/gui.h index 9f49e7fe0..0b2c6c0c0 100644 --- a/desktop/gui.h +++ b/desktop/gui.h @@ -136,6 +136,19 @@ void gui_cert_verify(const char *url, const struct ssl_cert_info *certs, unsigned long num, nserror (*cb)(bool proceed, void *pw), void *cbpw); +/** + * Callback to translate resource to full url. + * + * Transforms a resource: filename into a full URL. The returned URL + * is used as the target for a redirect. The caller takes ownership of + * the returned nsurl including unrefing it when finished with it. + * + * \param filename The filename of the resource to locate. + * \return A string containing the full URL of the target object or + * NULL if no suitable resource can be found. + */ +char* gui_get_resource_url(const char *filename); + /** css callback to obtain named system colours from a frontend. */ css_error gui_system_colour(void *pw, lwc_string *name, css_color *color); -- cgit v1.2.3