File: tile_swap.h

package info (click to toggle)
gimp 1.0.2-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 17,116 kB
  • ctags: 16,070
  • sloc: ansic: 226,067; lisp: 8,497; sh: 4,965; makefile: 4,543
file content (32 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __TILE_SWAP_H__
#define __TILE_SWAP_H__


#include "tile.h"


typedef enum {
  SWAP_IN = 1,
  SWAP_OUT,
  SWAP_DELETE,
  SWAP_COMPRESS
} SwapCommand;

typedef int (*SwapFunc) (int       fd,
			 Tile     *tile,
			 int       cmd,
			 gpointer  user_data);


void tile_swap_exit     (void);
int  tile_swap_add      (char      *filename,
		         SwapFunc   swap_func,
		         gpointer   user_data);
void tile_swap_remove   (int        swap_num);
void tile_swap_in       (Tile      *tile);
void tile_swap_out      (Tile      *tile);
void tile_swap_delete   (Tile      *tile);
void tile_swap_compress (int        swap_num);


#endif /* __TILE_SWAP_H__ */