From f37e52c39475e6efd3740c5ae1ec4f290662928f Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 13 Apr 2015 23:19:04 +0100 Subject: Move bitmap operations into an operation table. The generic bitmap handlers provided by each frontend are called back from the core and therefore should be in an operation table. This was one of the very few remaining interfaces stopping the core code from being split into a library. --- desktop/gui_table.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'desktop/gui_table.h') diff --git a/desktop/gui_table.h b/desktop/gui_table.h index 10f2bf17a..52cdde2ea 100644 --- a/desktop/gui_table.h +++ b/desktop/gui_table.h @@ -37,6 +37,7 @@ struct gui_utf8_table; struct gui_search_table; struct gui_search_web_table; struct gui_llcache_table; +struct gui_bitmap_table; /** * NetSurf operation function table @@ -119,6 +120,15 @@ struct netsurf_table { * uses the default implementation. */ struct gui_llcache_table *llcache; + + /** + * Bitmap table. + * + * Used by the image convertors as a generic interface to + * native platform-specific image formats. The table + * is mandantory and must be provided. + */ + struct gui_bitmap_table *bitmap; }; #endif -- cgit v1.2.3