Subversion Repositories SvarDOS

Rev

Rev 272 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 272 Rev 295
Line 14... Line 14...
14
#include <time.h>  /* required for the time_t definition */
14
#include <time.h>  /* required for the time_t definition */
15
 
15
 
16
#define ZIP_FLAG_ISADIR    1
16
#define ZIP_FLAG_ISADIR    1
17
#define ZIP_FLAG_ENCRYPTED 2
17
#define ZIP_FLAG_ENCRYPTED 2
18
 
18
 
-
 
19
#define ZIP_METH_STORE 0
-
 
20
#define ZIP_METH_DEFLATE 8
-
 
21
 
19
struct ziplist {
22
struct ziplist {
20
  long filelen;
23
  long filelen;
21
  long compressedfilelen;
24
  long compressedfilelen;
22
  unsigned long crc32;
25
  unsigned long crc32;
23
  long dataoffset;      /* offset in the file where compressed data starts */
26
  long dataoffset;      /* offset in the file where compressed data starts */
24
  struct ziplist *nextfile;
27
  struct ziplist *nextfile;
25
  time_t timestamp;     /* the timestamp of the file */
28
  time_t timestamp;     /* the timestamp of the file */
26
  short compmethod;
29
  short compmethod;     /* compression method (ZIP_METH_xxx) */
27
  unsigned char flags;  /* see ZIP_FLAG_xxx above */
30
  unsigned char flags;  /* see ZIP_FLAG_xxx above */
28
  char filename[1];     /* must be last element (gets expanded at runtime) */
31
  char filename[1];     /* must be last element (gets expanded at runtime) */
29
};
32
};
30
 
33
 
31
struct ziplist *zip_listfiles(FILE *fd);
34
struct ziplist *zip_listfiles(FILE *fd);