diff options
author | James Bursa <james@netsurf-browser.org> | 2004-01-24 17:08:16 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-01-24 17:08:16 +0000 |
commit | 1bdcb446392b9fd67d45df22d360dd72d7c353cc (patch) | |
tree | 5a23f86b3ee9b77728dbe4cde6915d54bbed2cc9 /render/html.h | |
parent | b116f20cd4d75f539164a0e858272145d99e4e6d (diff) | |
download | netsurf-1bdcb446392b9fd67d45df22d360dd72d7c353cc.tar.gz netsurf-1bdcb446392b9fd67d45df22d360dd72d7c353cc.tar.bz2 |
[project @ 2004-01-24 17:08:15 by bursa]
Add permitted_types to html_fetch_object().
svn path=/import/netsurf/; revision=500
Diffstat (limited to 'render/html.h')
-rw-r--r-- | render/html.h | 7 |
1 files changed, 6 insertions, 1 deletions
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, |