/[rdesktop]/sourceforge.net/trunk/rdesktop/pstcache.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/pstcache.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1365 by jsorg71, Thu Jan 4 05:39:39 2007 UTC revision 1372 by jsorg71, Mon Jan 8 04:47:06 2007 UTC
# Line 25  Line 25 
25  #define IS_PERSISTENT(id) (id < 8 && g_pstcache_fd[id] > 0)  #define IS_PERSISTENT(id) (id < 8 && g_pstcache_fd[id] > 0)
26    
27  extern int g_server_depth;  extern int g_server_depth;
28  extern BOOL g_bitmap_cache;  extern RD_BOOL g_bitmap_cache;
29  extern BOOL g_bitmap_cache_persist_enable;  extern RD_BOOL g_bitmap_cache_persist_enable;
30  extern BOOL g_bitmap_cache_precache;  extern RD_BOOL g_bitmap_cache_precache;
31    
32  int g_pstcache_fd[8];  int g_pstcache_fd[8];
33  int g_pstcache_Bpp;  int g_pstcache_Bpp;
34  BOOL g_pstcache_enumerated = False;  RD_BOOL g_pstcache_enumerated = False;
35  uint8 zero_key[] = { 0, 0, 0, 0, 0, 0, 0, 0 };  uint8 zero_key[] = { 0, 0, 0, 0, 0, 0, 0, 0 };
36    
37    
# Line 50  pstcache_touch_bitmap(uint8 cache_id, ui Line 50  pstcache_touch_bitmap(uint8 cache_id, ui
50  }  }
51    
52  /* Load a bitmap from the persistent cache */  /* Load a bitmap from the persistent cache */
53  BOOL  RD_BOOL
54  pstcache_load_bitmap(uint8 cache_id, uint16 cache_idx)  pstcache_load_bitmap(uint8 cache_id, uint16 cache_idx)
55  {  {
56          uint8 *celldata;          uint8 *celldata;
# Line 79  pstcache_load_bitmap(uint8 cache_id, uin Line 79  pstcache_load_bitmap(uint8 cache_id, uin
79  }  }
80    
81  /* Store a bitmap in the persistent cache */  /* Store a bitmap in the persistent cache */
82  BOOL  RD_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                       uint8 width, uint8 height, uint16 length, uint8 * data)                       uint8 width, uint8 height, uint16 length, uint8 * data)
85  {  {
# Line 160  pstcache_enumerate(uint8 id, HASH_KEY * Line 160  pstcache_enumerate(uint8 id, HASH_KEY *
160  }  }
161    
162  /* initialise the persistent bitmap cache */  /* initialise the persistent bitmap cache */
163  BOOL  RD_BOOL
164  pstcache_init(uint8 cache_id)  pstcache_init(uint8 cache_id)
165  {  {
166          int fd;          int fd;

Legend:
Removed from v.1365  
changed lines
  Added in v.1372

  ViewVC Help
Powered by ViewVC 1.1.26