~ubuntu-branches/ubuntu/utopic/clamav/utopic-security

« back to all changes in this revision

Viewing changes to libclamav/cab.h

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-02-01 11:06:17 UTC
  • mfrom: (0.35.37 sid)
  • Revision ID: package-import@ubuntu.com-20140201110617-33h2xxk09dep0ui4
Tags: 0.98.1+dfsg-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Drop build-dep on electric-fence (in Universe)
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes
  - Add autopkgtest

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <sys/types.h>
25
25
#include "cltypes.h"
 
26
#include "fmap.h"
26
27
 
27
28
#define CAB_BLOCKMAX 65535
28
29
#define CAB_INPUTMAX (CAB_BLOCKMAX + 6144)
31
32
    struct cab_folder *folders, *actfol;
32
33
    struct cab_file *files;
33
34
    struct cab_state *state;
 
35
    fmap_t *map;
 
36
    off_t cur_offset;
34
37
    uint32_t length;
35
38
    uint16_t nfolders;
36
39
    uint16_t nfiles;
55
58
    uint32_t length;
56
59
    int error;
57
60
    int lread;
58
 
    int fd;
59
61
    int ofd;
60
62
    struct cab_folder *folder;
61
63
    struct cab_file *next;
72
74
    uint16_t nblocks;
73
75
};
74
76
 
75
 
int cab_open(int fd, off_t offset, struct cab_archive *cab);
 
77
int cab_open(fmap_t *map, off_t offset, struct cab_archive *cab);
76
78
int cab_extract(struct cab_file *file, const char *name);
77
79
void cab_free(struct cab_archive *cab);
78
80