From 0b0342ee7ece8ea5a811cfb05c70f03ca4e3bde3 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 8 Feb 2010 15:38:24 +0100 Subject: Turn image and palette cache into c style dynamic interface Instead of passing a bunch of function pointer and an opaque pointer we make a real type and add a vtable pointer to it. This means we can simplify all the canvas constructors, etc. --- common/gdi_canvas.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'common/gdi_canvas.h') diff --git a/common/gdi_canvas.h b/common/gdi_canvas.h index 606e71ec..18a48438 100644 --- a/common/gdi_canvas.h +++ b/common/gdi_canvas.h @@ -60,10 +60,8 @@ void gdi_canvas_set_access_params(GdiCanvas *canvas, unsigned long base, unsigne GdiCanvas *gdi_canvas_create(HDC dc, class Mutex *lock, int bits, void *bits_cache_opaque, - bits_cache_put_fn_t bits_cache_put, bits_cache_get_fn_t bits_cache_get, - void *palette_cache_opaque, palette_cache_put_fn_t palette_cache_put, - palette_cache_get_fn_t palette_cache_get, - palette_cache_release_fn_t palette_cache_release, + SpiceImageCache *bits_cache, + SpicePaletteCache *palette_cache void *glz_decoder_opaque, glz_decode_fn_t glz_decode); -- cgit