summaryrefslogtreecommitdiffstats
path: root/server/spice_image_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/spice_image_cache.h')
-rw-r--r--server/spice_image_cache.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/server/spice_image_cache.h b/server/spice_image_cache.h
index 07ecefb7..6d6b32d1 100644
--- a/server/spice_image_cache.h
+++ b/server/spice_image_cache.h
@@ -22,9 +22,12 @@
#include "common/pixman_utils.h"
#include "common/canvas_base.h"
-
#include "common/ring.h"
+/* FIXME: move back to display_channel.h (once structs are private) */
+typedef struct Drawable Drawable;
+typedef struct DisplayChannelClient DisplayChannelClient;
+
typedef struct ImageCacheItem {
RingItem lru_link;
uint64_t id;
@@ -48,9 +51,15 @@ typedef struct ImageCache {
#endif
} ImageCache;
-int image_cache_hit(ImageCache *cache, uint64_t id);
-void image_cache_init(ImageCache *cache);
-void image_cache_reset(ImageCache *cache);
-void image_cache_aging(ImageCache *cache);
+int image_cache_hit (ImageCache *cache, uint64_t id);
+void image_cache_init (ImageCache *cache);
+void image_cache_reset (ImageCache *cache);
+void image_cache_aging (ImageCache *cache);
+void image_cache_localize (ImageCache *cache, SpiceImage **image_ptr,
+ SpiceImage *image_store, Drawable *drawable);
+void image_cache_localize_brush (ImageCache *cache, SpiceBrush *brush,
+ SpiceImage *image_store);
+void image_cache_localize_mask (ImageCache *cache, SpiceQMask *mask,
+ SpiceImage *image_store);
#endif