summaryrefslogtreecommitdiff
path: root/content/mimesniff.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2012-02-08 00:52:16 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2012-02-08 00:52:16 +0000
commit3e2e110a86f53b391fb2d6f20487e7510de4336c (patch)
tree415612e933ef6bfae7f61f2137e549d2b1333603 /content/mimesniff.h
parente2bb4aa4e01f0e3b6c4134081bd9a9bbcfe2e757 (diff)
downloadnetsurf-3e2e110a86f53b391fb2d6f20487e7510de4336c.tar.gz
netsurf-3e2e110a86f53b391fb2d6f20487e7510de4336c.tar.bz2
Bypass full type sniffer if only images are acceptable
svn path=/trunk/netsurf/; revision=13436
Diffstat (limited to 'content/mimesniff.h')
-rw-r--r--content/mimesniff.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/mimesniff.h b/content/mimesniff.h
index 331adc28c..bf3e493f3 100644
--- a/content/mimesniff.h
+++ b/content/mimesniff.h
@@ -38,6 +38,7 @@ struct llcache_handle;
* \param data First data chunk, or NULL
* \param len Length of \a data, in bytes
* \param sniff_allowed Whether MIME type sniffing is allowed
+ * \param image_only Sniff image types only
* \param effective_type Location to receive computed type
* \return NSERROR_OK on success,
* NSERROR_NEED_DATA iff \a data is NULL and data is needed
@@ -46,7 +47,7 @@ struct llcache_handle;
*/
nserror mimesniff_compute_effective_type(struct llcache_handle *handle,
const uint8_t *data, size_t len, bool sniff_allowed,
- lwc_string **effective_type);
+ bool image_only, lwc_string **effective_type);
nserror mimesniff_init(void);
void mimesniff_fini(void);