FAVE-SPI FLAM Anti Virus Exit (FAVE) Service Provider Interface (SPI)

FAVE.h
Go to the documentation of this file.
1
143#ifdef __cplusplus
144 extern "C" {
145#endif
146
147#ifndef INC_FAVE_H
148#define INC_FAVE_H
151/**********************************************************************/
152
153#include"FLMRTC.h"
154#include"FLMDEF.h"
155
156/**********************************************************************/
157
169#define FAVE_FUNC_OPN 1
170#define FAVE_FUNC_RUN 2
171#define FAVE_FUNC_CLS 3
183#define FAVE_DEFLIB_NAME "libfave"
184#define FAVE_DEFFUC_NAME "CLAMAVC"
195#define FAVE_FLAG_WRITE 0x00000001U
196#define FAVE_FLAG_REOPN 0x00000004U
197#define FAVE_FLAG_TRACE 0x00000010U
198#define FAVE_FLAG_STATISTIC 0x00000020U
199#define FAVE_FLAG_ACCESS 0x00000040U
200#define FAVE_FLAG_STRONG 0x00000080U
201#define FAVE_FLAG_COMPRESS 0x00000100U
204/**********************************************************************/
205
229 typedef struct FaveOpn {
231 unsigned int uiFlg;
233 unsigned int uiPar;
235 char* pcPar;
237 unsigned int uiMsg;
239 unsigned int uiDy5;
241 char acMsg[4096];
242}TsFaveOpn;
243
256 typedef struct FaveRun {
258 unsigned int uiInp;
260 unsigned int uiDy1;
262 unsigned char* pcInp;
264 unsigned int uiMsg;
266 unsigned int uiDy2;
268 char acMsg[4096];
269}TsFaveRun;
270
281 typedef struct FaveCls {
283 unsigned int uiMsg;
285 unsigned int uiDy1;
287 char acMsg[4096];
288}TsFaveCls;
289
297 typedef union FavePar {
299 TsFaveOpn stOpn;
301 TsFaveRun stRun;
303 TsFaveCls stCls;
304}TuFavePar;
307/**********************************************************************/
308
334 typedef void (TfFavExit)(
335 void** ppHdl,
336 int* piRetco,
337 const int* piFunc,
338 TuFavePar* puPara);
341/**********************************************************************/
342
344#endif /* INC_FAVE_H */
345
346#ifdef __cplusplus
347 }
348#endif
FLMDEF.h
FLMDEF - External FLAM definitions.
FLMRTC.h
FLMRTC - FLAM-Return-Codes.
TsFaveOpn
struct FaveOpn TsFaveOpn
FAVE parameter structure for function code FAVE_FUNC_OPN.
TsFaveRun
struct FaveRun TsFaveRun
FAVE Run structure.
TuFavePar
union FavePar TuFavePar
FAVE Union of function structures.
TsFaveCls
struct FaveCls TsFaveCls
FAVE Close structure.
TfFavExit
void() TfFavExit(void **ppHdl, int *piRetco, const int *piFunc, TuFavePar *puPara)
FAVE function.
Definition: FAVE.h:334
FaveCls
FAVE Close structure.
Definition: FAVE.h:281
FaveCls::acMsg
char acMsg[4096]
[OUTPUT] Maximal 4096 byte long error string
Definition: FAVE.h:287
FaveCls::uiDy1
unsigned int uiDy1
[DUMMY] 32 bit dummy field for 64 bit alignment
Definition: FAVE.h:285
FaveCls::uiMsg
unsigned int uiMsg
[OUTPUT] Length of error message (32 bit word)
Definition: FAVE.h:283
FaveOpn
FAVE parameter structure for function code FAVE_FUNC_OPN.
Definition: FAVE.h:229
FaveOpn::uiMsg
unsigned int uiMsg
[OUTPUT] Length of error message (32 bit word)
Definition: FAVE.h:237
FaveOpn::uiDy5
unsigned int uiDy5
[DUMMY] 32 bit dummy field for 64 bit alignment
Definition: FAVE.h:239
FaveOpn::uiPar
unsigned int uiPar
[INPUT] Length of the parameter string (32 bit word)
Definition: FAVE.h:233
FaveOpn::pcPar
char * pcPar
[INPUT] Pointer to the parameter string (32 or 64 bit)
Definition: FAVE.h:235
FaveOpn::acMsg
char acMsg[4096]
[OUTPUT] Maximal 4096 byte long error string
Definition: FAVE.h:241
FaveOpn::uiFlg
unsigned int uiFlg
[INOUT] Flag word (32 bit) with several bit settings
Definition: FAVE.h:231
FaveRun
FAVE Run structure.
Definition: FAVE.h:256
FaveRun::uiDy2
unsigned int uiDy2
[DUMMY] 32 bit dummy field for 64 bit alignment
Definition: FAVE.h:266
FaveRun::pcInp
unsigned char * pcInp
[INPUT] Pointer to the input data (32 or 64 bit)
Definition: FAVE.h:262
FaveRun::uiMsg
unsigned int uiMsg
[OUTPUT] Length of error message (32 bit word)
Definition: FAVE.h:264
FaveRun::acMsg
char acMsg[4096]
[OUTPUT] Maximal 4096 byte long error string
Definition: FAVE.h:268
FaveRun::uiInp
unsigned int uiInp
[INPUT] Length of the input data (32 bit word)
Definition: FAVE.h:258
FaveRun::uiDy1
unsigned int uiDy1
[DUMMY] 32 bit dummy field for 64 bit alignment
Definition: FAVE.h:260
FavePar
FAVE Union of function structures.
Definition: FAVE.h:297
FavePar::stRun
TsFaveRun stRun
[INOUT] Structure for function code FAVE_FUNC_RUN
Definition: FAVE.h:301
FavePar::stOpn
TsFaveOpn stOpn
[INOUT] Structure for function code FAVE_FUNC_OPN
Definition: FAVE.h:299
FavePar::stCls
TsFaveCls stCls
[INOUT] Structure for function code FAVE_FUNC_CLS
Definition: FAVE.h:303