summaryrefslogtreecommitdiff
path: root/content/content.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-11-07 12:33:34 +0000
committerVincent Sanders <vince@kyllikki.org>2014-11-07 12:33:34 +0000
commit3405803280c9cafab0a4ef229faa4bc447e4c953 (patch)
treeac7d85272d21ec15cec1825a2ea6b43f7b4cf11b /content/content.c
parent6993e842d902e363d44014fa514c91ca30896555 (diff)
downloadnetsurf-3405803280c9cafab0a4ef229faa4bc447e4c953.tar.gz
netsurf-3405803280c9cafab0a4ef229faa4bc447e4c953.tar.bz2
Improve content encoding information API
Extend the content_get_encoding() API to retrieve the source of the encoding as well as the actual encoding.
Diffstat (limited to 'content/content.c')
-rw-r--r--content/content.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/content/content.c b/content/content.c
index 83fdacf78..cd493ba44 100644
--- a/content/content.c
+++ b/content/content.c
@@ -1323,19 +1323,19 @@ bool content_get_quirks(hlcache_handle *h)
* \param c Content to retrieve bitmap from
* \return Pointer to bitmap, or NULL if none.
*/
-const char *content_get_encoding(hlcache_handle *h)
+const char *content_get_encoding(hlcache_handle *h, enum content_encoding_type op)
{
- return content__get_encoding(hlcache_handle_get_content(h));
+ return content__get_encoding(hlcache_handle_get_content(h), op);
}
-const char *content__get_encoding(struct content *c)
+const char *content__get_encoding(struct content *c, enum content_encoding_type op)
{
const char *encoding = NULL;
if ((c != NULL) &&
(c->handler != NULL) &&
(c->handler->get_encoding != NULL) ) {
- encoding = c->handler->get_encoding(c);
+ encoding = c->handler->get_encoding(c, op);
}
return encoding;