~ubuntu-branches/ubuntu/trusty/clamav/trusty-proposed

« back to all changes in this revision

Viewing changes to libclamav/zziplib/zziplib.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran
  • Date: 2005-09-19 09:05:59 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050919090559-hikpqduq8yx5qxo2
Tags: 0.87-1
* New upstream version
  - Fixes CAN-2005-2920 and CAN-2005-2919 (closes: #328660)
* New logcheck line for clamav-daemon (closes: #323132)
* relibtoolize and apply kfreebsd patch (closes: #327707)
* Make sure init.d script starts freshclam up again after upgrade when run
  from if-up.d (closes: #328912)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * you need to add an include path to the dir containing (!!) the ./zzip/ dir
17
17
 */
18
18
 
 
19
#if HAVE_CONFIG_H
 
20
#include "clamav-config.h"
 
21
#endif
 
22
 
19
23
#ifndef _ZZIP_ZZIP_H /* zziplib.h */
20
24
#define _ZZIP_ZZIP_H
21
25
 
25
29
#include <stddef.h> /* size_t and friends */
26
30
/* msvc6 has neither ssize_t (we assume "int") nor off_t (assume "long") */
27
31
 
 
32
#ifdef C_OS2
 
33
#include <types.h>
 
34
#endif
 
35
 
28
36
#ifdef __cplusplus
29
37
extern "C" {
30
38
#endif
93
101
    int         st_size;        /* file size / decompressed size */
94
102
    unsigned short d_flags;     /* general purpose flags */
95
103
    char *      d_name;         /* file name / strdupped name */
 
104
    int         d_crc32;        /* the adler32-checksum */
 
105
    int         d_off;          /* the offset in the file */
96
106
};
97
107
 
98
108
/*
178
188
 * zzip/file.c
179
189
 */
180
190
_zzip_export
181
 
ZZIP_FILE *     zzip_file_open(ZZIP_DIR * dir, zzip_char_t* name, int modes);
 
191
ZZIP_FILE *     zzip_file_open(ZZIP_DIR * dir, zzip_char_t* name, int modes, int d_off);
182
192
_zzip_export
183
193
int             zzip_file_close(ZZIP_FILE * fp);
184
194
_zzip_export
316
326
#endif /* _ZZIP_WRITE_SOURCE */
317
327
 
318
328
#ifdef __cplusplus
319
 
};
 
329
}
320
330
#endif
321
331
 
322
332
#endif /* _ZZIPLIB_H */