diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-02-08 15:38:24 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-02-23 14:43:20 +0100 |
commit | 0b0342ee7ece8ea5a811cfb05c70f03ca4e3bde3 (patch) | |
tree | 7e4ce72080519d7d55df6f3dadc63b6784c0856b /common/gdi_canvas.h | |
parent | 7537acd630e8973c92bb769b56d78836372b30c2 (diff) |
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.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/common/gdi_canvas.h b/common/gdi_canvas.h index 606e71e..18a4843 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); |