summaryrefslogtreecommitdiff
path: root/content/content.h
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.h
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.h')
-rw-r--r--content/content.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/content/content.h b/content/content.h
index bc47ffef0..9c9d64975 100644
--- a/content/content.h
+++ b/content/content.h
@@ -94,6 +94,12 @@ enum content_debug {
CONTENT_DEBUG_REDRAW /** Debug redraw operations. */
};
+/** Content encoding informstion types */
+enum content_encoding_type {
+ CONTENT_ENCODING_NORMAL, /** The content encoding */
+ CONTENT_ENCODING_SOURCE /** The content encoding source */
+};
+
/** RFC5988 metadata link */
struct content_rfc5988_link {
struct content_rfc5988_link *next; /**< next rfc5988_link in list */
@@ -328,7 +334,7 @@ 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 *h);
-const char *content_get_encoding(struct hlcache_handle *h);
+const char *content_get_encoding(struct hlcache_handle *h, enum content_encoding_type op);
bool content_is_locked(struct hlcache_handle *h);