home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / app / tile_swap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-07-12  |  758 b   |  35 lines

  1. #ifndef __TILE_SWAP_H__
  2. #define __TILE_SWAP_H__
  3.  
  4.  
  5. #include "tile.h"
  6.  
  7.  
  8. typedef enum {
  9.   SWAP_IN = 1,
  10.   SWAP_IN_ASYNC,
  11.   SWAP_OUT,
  12.   SWAP_DELETE,
  13.   SWAP_COMPRESS
  14. } SwapCommand;
  15.  
  16. typedef int (*SwapFunc) (int       fd,
  17.              Tile     *tile,
  18.              int       cmd,
  19.              gpointer  user_data);
  20.  
  21.  
  22. void tile_swap_exit     (void);
  23. int  tile_swap_add      (char      *filename,
  24.                  SwapFunc   swap_func,
  25.                  gpointer   user_data);
  26. void tile_swap_remove   (int        swap_num);
  27. void tile_swap_in       (Tile      *tile);
  28. void tile_swap_in_async (Tile      *tile);
  29. void tile_swap_out      (Tile      *tile);
  30. void tile_swap_delete   (Tile      *tile);
  31. void tile_swap_compress (int        swap_num);
  32.  
  33.  
  34. #endif /* __TILE_SWAP_H__ */
  35.