2
* ClamAV bytecode internal API
4
* Copyright (C) 2009 Sourcefire, Inc.
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.
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.
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,
38
uint16_t *containedTypes;
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);
51
uint16_t type;/* type id in cli_apicall_types array */
56
struct cli_apiglobal {
58
enum bc_global globalid;
66
extern const struct cli_bc_type cli_apicall_types[];
67
extern const unsigned cli_apicall_maxtypes;
69
extern const struct cli_apiglobal cli_globals[];
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;