/[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 1042 by astrand, Tue Jan 24 12:40:24 2006 UTC revision 1365 by jsorg71, Thu Jan 4 05:39:39 2007 UTC
# Line 1  Line 1 
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
# Line 56  pstcache_load_bitmap(uint8 cache_id, uin Line 56  pstcache_load_bitmap(uint8 cache_id, uin
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;
# Line 81  pstcache_load_bitmap(uint8 cache_id, uin Line 81  pstcache_load_bitmap(uint8 cache_id, uin
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;
# Line 107  pstcache_save_bitmap(uint8 cache_id, uin Line 107  pstcache_save_bitmap(uint8 cache_id, uin
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;

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

  ViewVC Help
Powered by ViewVC 1.1.26