20 #ifndef FREERDP_PERSISTENT_CACHE_H
21 #define FREERDP_PERSISTENT_CACHE_H
23 #include <freerdp/api.h>
24 #include <freerdp/types.h>
25 #include <freerdp/update.h>
27 #include <winpr/crt.h>
28 #include <winpr/stream.h>
35 typedef struct rdp_persistent_cache rdpPersistentCache;
79 FREERDP_API
int persistent_cache_get_version(rdpPersistentCache* persistent);
80 FREERDP_API
int persistent_cache_get_count(rdpPersistentCache* persistent);
82 FREERDP_API
int persistent_cache_read_entry(rdpPersistentCache* persistent,
84 FREERDP_API
int persistent_cache_write_entry(rdpPersistentCache* persistent,
87 FREERDP_API
int persistent_cache_open(rdpPersistentCache* persistent,
const char* filename,
88 BOOL write, UINT32 version);
89 FREERDP_API
int persistent_cache_close(rdpPersistentCache* persistent);
91 FREERDP_API
void persistent_cache_free(rdpPersistentCache* persistent);
93 WINPR_ATTR_MALLOC(persistent_cache_free, 1)
94 FREERDP_API rdpPersistentCache* persistent_cache_new(
void);