1 /*
2  * compress.h
3  *   header file for the zlib compression module
4  *
5  * $Id: compress.h,v 1.8 (0.5) 2003/12/18 21:33:41 [Xp-AvR] Exp $
6  */
7 
8 #ifndef _COMPRESS_COMPRESS_H
9 #define _COMPRESS_COMPRESS_H
10 
11 #define UFF_COMPRESS    0x000008        /* Compress the user file       */
12 
13 typedef enum {
14   COMPF_ERROR,                  /* Compression failed.                  */
15   COMPF_SUCCESS                 /* Compression succeeded.               */
16 } compf_result;
17 
18 typedef enum {
19   COMPF_UNCOMPRESSED,           /* File is uncompressed.                */
20   COMPF_COMPRESSED,             /* File is compressed.                  */
21   COMPF_FAILED                  /* Could not determine file type.       */
22 } compf_type;
23 
24 int uncompress_to_file(char *f_src, char *f_target);
25 int compress_to_file(char *f_src, char *f_target, int mode_num);
26 int compress_file(char *filename, int mode_num);
27 int uncompress_file(char *filename);
28 int is_compressedfile(char *filename);
29 
30 #endif /* !_COMPRESS_COMPRESS_H */
31