1 |
/* -*- c-basic-offset: 8 -*- |
/* -*- c-basic-offset: 8 -*- |
2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
Persistent Bitmap Cache routines |
Persistent Bitmap Cache routines |
4 |
Copyright (C) Jeroen Meijer 2004-2005 |
Copyright (C) Jeroen Meijer 2004-2007 |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
56 |
uint8 *celldata; |
uint8 *celldata; |
57 |
int fd; |
int fd; |
58 |
CELLHEADER cellhdr; |
CELLHEADER cellhdr; |
59 |
HBITMAP bitmap; |
RD_HBITMAP bitmap; |
60 |
|
|
61 |
if (!g_bitmap_cache_persist_enable) |
if (!g_bitmap_cache_persist_enable) |
62 |
return False; |
return False; |
81 |
/* Store a bitmap in the persistent cache */ |
/* Store a bitmap in the persistent cache */ |
82 |
BOOL |
BOOL |
83 |
pstcache_save_bitmap(uint8 cache_id, uint16 cache_idx, uint8 * key, |
pstcache_save_bitmap(uint8 cache_id, uint16 cache_idx, uint8 * key, |
84 |
uint16 width, uint16 height, uint16 length, uint8 * data) |
uint8 width, uint8 height, uint16 length, uint8 * data) |
85 |
{ |
{ |
86 |
int fd; |
int fd; |
87 |
CELLHEADER cellhdr; |
CELLHEADER cellhdr; |
107 |
int |
int |
108 |
pstcache_enumerate(uint8 id, HASH_KEY * keylist) |
pstcache_enumerate(uint8 id, HASH_KEY * keylist) |
109 |
{ |
{ |
110 |
int fd, idx, n; |
int fd, n; |
111 |
|
uint16 idx; |
112 |
sint16 mru_idx[0xa00]; |
sint16 mru_idx[0xa00]; |
113 |
uint32 mru_stamp[0xa00]; |
uint32 mru_stamp[0xa00]; |
114 |
CELLHEADER cellhdr; |
CELLHEADER cellhdr; |