~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/7z/7zFile.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 7zFile.h -- File IO
 
2
2008-11-22 : Igor Pavlov : Public domain */
 
3
 
 
4
#ifndef __7Z_FILE_H
 
5
#define __7Z_FILE_H
 
6
 
 
7
/* aCaB -- do not use HANDLE on win32
 
8
#ifdef _WIN32
 
9
#define USE_WINDOWS_FILE
 
10
#endif
 
11
*/
 
12
 
 
13
#ifdef USE_WINDOWS_FILE
 
14
#include <windows.h>
 
15
#else
 
16
#include <stdio.h>
 
17
#endif
 
18
 
 
19
#include "Types.h"
 
20
 
 
21
 
 
22
/* ---------- File ---------- */
 
23
 
 
24
typedef struct
 
25
{
 
26
  #ifdef USE_WINDOWS_FILE
 
27
  HANDLE handle;
 
28
  #else
 
29
  FILE *file;
 
30
  #endif
 
31
} CSzFile;
 
32
 
 
33
void File_Construct(CSzFile *p);
 
34
WRes InFile_Open(CSzFile *p, const char *name);
 
35
WRes OutFile_Open(CSzFile *p, const char *name);
 
36
WRes File_Close(CSzFile *p);
 
37
 
 
38
/* reads max(*size, remain file's size) bytes */
 
39
WRes File_Read(CSzFile *p, void *data, size_t *size);
 
40
 
 
41
/* writes *size bytes */
 
42
WRes File_Write(CSzFile *p, const void *data, size_t *size);
 
43
 
 
44
WRes File_Seek(CSzFile *p, Int64 *pos, ESzSeek origin);
 
45
WRes File_GetLength(CSzFile *p, UInt64 *length);
 
46
 
 
47
 
 
48
/* ---------- FileInStream ---------- */
 
49
 
 
50
typedef struct
 
51
{
 
52
  ISeqInStream s;
 
53
  CSzFile file;
 
54
} CFileSeqInStream;
 
55
 
 
56
void FileSeqInStream_CreateVTable(CFileSeqInStream *p);
 
57
 
 
58
 
 
59
typedef struct
 
60
{
 
61
  ISeekInStream s;
 
62
  CSzFile file;
 
63
} CFileInStream;
 
64
 
 
65
void FileInStream_CreateVTable(CFileInStream *p);
 
66
 
 
67
 
 
68
typedef struct
 
69
{
 
70
  ISeqOutStream s;
 
71
  CSzFile file;
 
72
} CFileOutStream;
 
73
 
 
74
void FileOutStream_CreateVTable(CFileOutStream *p);
 
75
 
 
76
#endif