diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-11-05 23:44:31 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-11-05 23:44:31 +0000 |
commit | 8ec7ad053a9a291ea2619055b1ca1989d4c975b9 (patch) | |
tree | aa7272b673e2062985667d87fcfe7e19f30eb239 /content/content.h | |
parent | 4ca959f46baf18213bf5ded769d87c7f030d392f (diff) | |
download | netsurf-8ec7ad053a9a291ea2619055b1ca1989d4c975b9.tar.gz netsurf-8ec7ad053a9a291ea2619055b1ca1989d4c975b9.tar.bz2 |
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.
Diffstat (limited to 'content/content.h')
-rw-r--r-- | content/content.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |