20#ifndef FREERDP_LIB_OFFSCREEN_CACHE_H
21#define FREERDP_LIB_OFFSCREEN_CACHE_H
23#include <freerdp/api.h>
24#include <freerdp/types.h>
25#include <freerdp/update.h>
26#include <freerdp/freerdp.h>
28#include <winpr/stream.h>
30typedef struct rdp_offscreen_cache rdpOffscreenCache;
38 FREERDP_LOCAL rdpBitmap* offscreen_cache_get(rdpOffscreenCache* offscreen_cache, UINT32 index);
40 FREERDP_LOCAL
void offscreen_cache_register_callbacks(rdpUpdate* update);
42 FREERDP_LOCAL
void offscreen_cache_free(rdpOffscreenCache* offscreen);
44 WINPR_ATTR_MALLOC(offscreen_cache_free, 1)
46 FREERDP_LOCAL rdpOffscreenCache* offscreen_cache_new(rdpContext* context);