From 1bdcb446392b9fd67d45df22d360dd72d7c353cc Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 24 Jan 2004 17:08:16 +0000 Subject: [project @ 2004-01-24 17:08:15 by bursa] Add permitted_types to html_fetch_object(). svn path=/import/netsurf/; revision=500 --- render/html.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'render/html.h') diff --git a/render/html.h b/render/html.h index 33385a78d..f57f36ca5 100644 --- a/render/html.h +++ b/render/html.h @@ -8,6 +8,7 @@ #ifndef _NETSURF_RENDER_HTML_H_ #define _NETSURF_RENDER_HTML_H_ +#include "netsurf/content/content_type.h" #include "netsurf/css/css.h" #include "netsurf/render/box.h" #include "netsurf/utils/pool.h" @@ -49,6 +50,9 @@ struct content_html_data { char *url; struct content *content; struct box *box; + /** Pointer to array of permitted content_type, terminated by + * CONTENT_UNKNOWN, or 0 if any type is acceptable. */ + const content_type *permitted_types; } *object; pool box_pool; /**< Memory pool for box tree. */ pool string_pool; /**< Memory pool for strings. */ @@ -60,7 +64,8 @@ int html_convert(struct content *c, unsigned int width, unsigned int height); void html_revive(struct content *c, unsigned int width, unsigned int height); void html_reformat(struct content *c, unsigned int width, unsigned int height); void html_destroy(struct content *c); -void html_fetch_object(struct content *c, char *url, struct box *box); +void html_fetch_object(struct content *c, char *url, struct box *box, + const content_type *permitted_types); /* in riscos/htmlinstance.c */ void html_add_instance(struct content *c, struct browser_window *bw, -- cgit v1.2.3