From 3405803280c9cafab0a4ef229faa4bc447e4c953 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 7 Nov 2014 12:33:34 +0000 Subject: Improve content encoding information API Extend the content_get_encoding() API to retrieve the source of the encoding as well as the actual encoding. --- content/content.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'content/content.c') 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; -- cgit v1.2.3