rdpNineGridCache now opaque

This commit is contained in:
Armin Novak 2019-11-14 15:15:30 +01:00
parent 68ed1276c2
commit 6e1a396aa4
2 changed files with 22 additions and 22 deletions

View File

@ -27,32 +27,10 @@
#include <winpr/stream.h>
typedef struct _NINE_GRID_ENTRY NINE_GRID_ENTRY;
typedef struct rdp_nine_grid_cache rdpNineGridCache;
#include <freerdp/cache/cache.h>
struct _NINE_GRID_ENTRY
{
void* entry;
};
struct rdp_nine_grid_cache
{
pDrawNineGrid DrawNineGrid; /* 0 */
pMultiDrawNineGrid MultiDrawNineGrid; /* 1 */
UINT32 paddingA[16 - 2]; /* 2 */
UINT32 maxEntries; /* 16 */
UINT32 maxSize; /* 17 */
NINE_GRID_ENTRY* entries; /* 18 */
UINT32 paddingB[32 - 19]; /* 19 */
/* internal */
rdpSettings* settings;
};
#ifdef __cplusplus
extern "C"
{

View File

@ -34,6 +34,28 @@
#define TAG FREERDP_TAG("cache.nine_grid")
struct _NINE_GRID_ENTRY
{
void* entry;
};
typedef struct _NINE_GRID_ENTRY NINE_GRID_ENTRY;
struct rdp_nine_grid_cache
{
pDrawNineGrid DrawNineGrid; /* 0 */
pMultiDrawNineGrid MultiDrawNineGrid; /* 1 */
UINT32 paddingA[16 - 2]; /* 2 */
UINT32 maxEntries; /* 16 */
UINT32 maxSize; /* 17 */
NINE_GRID_ENTRY* entries; /* 18 */
UINT32 paddingB[32 - 19]; /* 19 */
/* internal */
rdpSettings* settings;
};
static void* nine_grid_cache_get(rdpNineGridCache* nine_grid, UINT32 index);
static void nine_grid_cache_put(rdpNineGridCache* nine_grid, UINT32 index, void* entry);