summaryrefslogtreecommitdiff
path: root/content/content_protected.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-11-05 23:44:31 +0000
committerVincent Sanders <vince@kyllikki.org>2014-11-05 23:44:31 +0000
commit8ec7ad053a9a291ea2619055b1ca1989d4c975b9 (patch)
treeaa7272b673e2062985667d87fcfe7e19f30eb239 /content/content_protected.h
parent4ca959f46baf18213bf5ded769d87c7f030d392f (diff)
downloadnetsurf-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_protected.h')
-rw-r--r--content/content_protected.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/content_protected.h b/content/content_protected.h
index 84b401f00..ce161befc 100644
--- a/content/content_protected.h
+++ b/content/content_protected.h
@@ -79,6 +79,7 @@ struct content_handler {
nserror (*debug_dump)(struct content *c, FILE *f, enum content_debug op);
nserror (*clone)(const struct content *old, struct content **newc);
bool (*matches_quirks)(const struct content *c, bool quirks);
+ const char *(*get_encoding)(const struct content *c);
content_type (*type)(void);
/** handler dependant content sensitive internal data interface. */
@@ -196,7 +197,7 @@ void content__invalidate_reuse_data(struct content *c);
nsurl *content__get_refresh_url(struct content *c);
struct bitmap *content__get_bitmap(struct content *c);
bool content__get_opaque(struct content *c);
-
+const char *content__get_encoding(struct content *c);
bool content__is_locked(struct content *c);
#endif