From 8ec7ad053a9a291ea2619055b1ca1989d4c975b9 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 5 Nov 2014 23:44:31 +0000 Subject: Make the fetching of a contents encoding generic. The frontends previously had to use an html renderer API to get the encoding of a content. This also required the explicit checking of the contents type rather than using the existing content API to abstract this knowledge. --- content/content.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'content/content.h') diff --git a/content/content.h b/content/content.h index 11ddee1dd..67a519df6 100644 --- a/content/content.h +++ b/content/content.h @@ -318,7 +318,8 @@ void content_invalidate_reuse_data(struct hlcache_handle *c); nsurl *content_get_refresh_url(struct hlcache_handle *c); struct bitmap *content_get_bitmap(struct hlcache_handle *c); bool content_get_opaque(struct hlcache_handle *h); -bool content_get_quirks(struct hlcache_handle *c); +bool content_get_quirks(struct hlcache_handle *h); +const char *content_get_encoding(struct hlcache_handle *h); bool content_is_locked(struct hlcache_handle *h); -- cgit v1.2.3