~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/type_desc.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
/*
 
2
 *  ClamAV bytecode internal API
 
3
 *
 
4
 *  Copyright (C) 2009 Sourcefire, Inc.
 
5
 *
 
6
 *  Authors: Török Edvin
 
7
 *
 
8
 *  This program is free software; you can redistribute it and/or modify
 
9
 *  it under the terms of the GNU General Public License version 2 as
 
10
 *  published by the Free Software Foundation.
 
11
 *
 
12
 *  This program is distributed in the hope that it will be useful,
 
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 *  GNU General Public License for more details.
 
16
 *
 
17
 *  You should have received a copy of the GNU General Public License
 
18
 *  along with this program; if not, write to the Free Software
 
19
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 
20
 *  MA 02110-1301, USA.
 
21
 */
 
22
#ifndef TYPE_DESC_H
 
23
#define TYPE_DESC_H
 
24
 
 
25
#include "clambc.h"
 
26
struct cli_bc_ctx;
 
27
 
 
28
enum derived_t {
 
29
  DFunctionType,
 
30
  DPointerType,
 
31
  DStructType,
 
32
  DPackedStructType,
 
33
  DArrayType
 
34
};
 
35
 
 
36
struct cli_bc_type {
 
37
    enum derived_t kind;
 
38
    uint16_t *containedTypes;
 
39
    unsigned numElements;
 
40
    uint32_t size;
 
41
    unsigned align;
 
42
};
 
43
 
 
44
typedef uint32_t (*cli_apicall_int2)(struct cli_bc_ctx *, uint32_t, uint32_t);
 
45
typedef uint32_t (*cli_apicall_pointer)(struct cli_bc_ctx *, void*, uint32_t);
 
46
typedef uint32_t (*cli_apicall_int1)(struct cli_bc_ctx *, uint32_t);
 
47
typedef void* (*cli_apicall_malloclike)(struct cli_bc_ctx *, uint32_t);
 
48
 
 
49
struct cli_apicall {
 
50
    const char *name;
 
51
    uint16_t type;/* type id in cli_apicall_types array */
 
52
    uint16_t idx;
 
53
    uint8_t kind;
 
54
};
 
55
 
 
56
struct cli_apiglobal {
 
57
    const char *name;
 
58
    enum bc_global globalid;
 
59
    uint16_t type;
 
60
    unsigned offset;
 
61
};
 
62
 
 
63
#ifdef __cplusplus
 
64
extern "C" {
 
65
#endif
 
66
extern const struct cli_bc_type cli_apicall_types[];
 
67
extern const unsigned cli_apicall_maxtypes;
 
68
 
 
69
extern const struct cli_apiglobal cli_globals[];
 
70
 
 
71
extern const struct cli_apicall cli_apicalls[];
 
72
extern const cli_apicall_int2 cli_apicalls0[];
 
73
extern const cli_apicall_pointer cli_apicalls1[];
 
74
extern const cli_apicall_int1 cli_apicalls2[];
 
75
extern const cli_apicall_malloclike cli_apicalls3[];
 
76
extern const unsigned cli_apicall_maxapi;
 
77
extern const unsigned cli_apicall_maxglobal;
 
78
 
 
79
#ifdef __cplusplus
 
80
}
 
81
#endif
 
82
#endif