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_protected.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/content_protected.h') diff --git a/content/content_protected.h b/content/content_protected.h index af274ef5a..2647b2e0f 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -80,7 +80,7 @@ struct content_handler { nserror (*debug)(struct content *c, 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); + const char *(*get_encoding)(const struct content *c, enum content_encoding_type op); content_type (*type)(void); /** handler dependant content sensitive internal data interface. */ @@ -198,7 +198,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); +const char *content__get_encoding(struct content *c, enum content_encoding_type op); bool content__is_locked(struct content *c); #endif -- cgit v1.2.3