summaryrefslogtreecommitdiffstats
path: root/common/gdi_canvas.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-02-08 15:38:24 +0100
committerAlexander Larsson <alexl@redhat.com>2010-02-23 14:43:20 +0100
commit0b0342ee7ece8ea5a811cfb05c70f03ca4e3bde3 (patch)
tree7e4ce72080519d7d55df6f3dadc63b6784c0856b /common/gdi_canvas.h
parent7537acd630e8973c92bb769b56d78836372b30c2 (diff)
downloadspice-0b0342ee7ece8ea5a811cfb05c70f03ca4e3bde3.tar.gz
spice-0b0342ee7ece8ea5a811cfb05c70f03ca4e3bde3.tar.xz
spice-0b0342ee7ece8ea5a811cfb05c70f03ca4e3bde3.zip
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.
Diffstat (limited to 'common/gdi_canvas.h')
-rw-r--r--common/gdi_canvas.h6
1 files changed, 2 insertions, 4 deletions
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);