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
229typedef 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];
243
256typedef 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];
270
281typedef struct FaveCls {
283 unsigned int uiMsg;
285 unsigned int uiDy1;
287 char acMsg[4096];
289
307/**********************************************************************/
308
334typedef 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 - External FLAM definitions.
FLMRTC - FLAM-Return-Codes.
struct FaveOpn TsFaveOpn
FAVE parameter structure for function code FAVE_FUNC_OPN.
struct FaveRun TsFaveRun
FAVE Run structure.
union FavePar TuFavePar
FAVE Union of function structures.
struct FaveCls TsFaveCls
FAVE Close structure.
void TfFavExit(void **ppHdl, int *piRetco, const int *piFunc, TuFavePar *puPara)
FAVE function.
Definition FAVE.h:334
FAVE Close structure.
Definition FAVE.h:281
char acMsg[4096]
[OUTPUT] Maximal 4096 byte long error string
Definition FAVE.h:287
unsigned int uiDy1
[DUMMY] 32 bit dummy field for 64 bit alignment
Definition FAVE.h:285
unsigned int uiMsg
[OUTPUT] Length of error message (32 bit word)
Definition FAVE.h:283
FAVE parameter structure for function code FAVE_FUNC_OPN.
Definition FAVE.h:229
unsigned int uiMsg
[OUTPUT] Length of error message (32 bit word)
Definition FAVE.h:237
unsigned int uiDy5
[DUMMY] 32 bit dummy field for 64 bit alignment
Definition FAVE.h:239
unsigned int uiPar
[INPUT] Length of the parameter string (32 bit word)
Definition FAVE.h:233
char * pcPar
[INPUT] Pointer to the parameter string (32 or 64 bit)
Definition FAVE.h:235
char acMsg[4096]
[OUTPUT] Maximal 4096 byte long error string
Definition FAVE.h:241
unsigned int uiFlg
[INOUT] Flag word (32 bit) with several bit settings
Definition FAVE.h:231
FAVE Run structure.
Definition FAVE.h:256
unsigned int uiDy2
[DUMMY] 32 bit dummy field for 64 bit alignment
Definition FAVE.h:266
unsigned char * pcInp
[INPUT] Pointer to the input data (32 or 64 bit)
Definition FAVE.h:262
unsigned int uiMsg
[OUTPUT] Length of error message (32 bit word)
Definition FAVE.h:264
char acMsg[4096]
[OUTPUT] Maximal 4096 byte long error string
Definition FAVE.h:268
unsigned int uiInp
[INPUT] Length of the input data (32 bit word)
Definition FAVE.h:258
unsigned int uiDy1
[DUMMY] 32 bit dummy field for 64 bit alignment
Definition FAVE.h:260
FAVE Union of function structures.
Definition FAVE.h:297
TsFaveRun stRun
[INOUT] Structure for function code FAVE_FUNC_RUN
Definition FAVE.h:301
TsFaveOpn stOpn
[INOUT] Structure for function code FAVE_FUNC_OPN
Definition FAVE.h:299
TsFaveCls stCls
[INOUT] Structure for function code FAVE_FUNC_CLS
Definition FAVE.h:303