From 2348b134924e8b24fba02f068a16c6fb308af88a Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 31 Aug 2011 12:12:41 +0000 Subject: refactor bitmap out of generic content structure svn path=/trunk/netsurf/; revision=12686 --- content/content_protected.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'content/content_protected.h') diff --git a/content/content_protected.h b/content/content_protected.h index d113508e4..fd854a0bc 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -68,6 +68,10 @@ struct content_handler { nserror (*clone)(const struct content *old, struct content **newc); bool (*matches_quirks)(const struct content *c, bool quirks); content_type (*type)(lwc_string *mime_type); + + /** handler dependant content sensitive internal data interface. */ + void * (*get_internal)(const struct content *c, void *context); + /** There must be one content per user for this type. */ bool no_share; }; @@ -98,12 +102,9 @@ struct content { bool quirks; /**< Content is in quirks mode */ char *fallback_charset; /**< Fallback charset, or NULL */ - /**< URL for refresh request, in standard form as from url_join. */ + /** URL for refresh request, in standard form as from url_join. */ char *refresh; - /** Bitmap, for various image contents. */ - struct bitmap *bitmap; - unsigned int time; /**< Creation time, if LOADING or READY, otherwise total time. */ @@ -174,6 +175,7 @@ const char *content__get_source_data(struct content *c, unsigned long *size); void content__invalidate_reuse_data(struct content *c); const char *content__get_refresh_url(struct content *c); struct bitmap *content__get_bitmap(struct content *c); +bool content__get_opaque(struct content *c); bool content__is_locked(struct content *c); -- cgit v1.2.1