22
24
#include "clamav.h"
23
25
#include "matcher.h"
25
int cli_parse_add(struct cli_matcher *root, const char *virname, const char *hexsig, unsigned short type, const char *offset, unsigned short target);
30
#define CLI_DBEXT(ext) \
32
cli_strbcasestr(ext, ".db") || \
33
cli_strbcasestr(ext, ".db2") || \
34
cli_strbcasestr(ext, ".db3") || \
35
cli_strbcasestr(ext, ".hdb") || \
36
cli_strbcasestr(ext, ".hdu") || \
37
cli_strbcasestr(ext, ".fp") || \
38
cli_strbcasestr(ext, ".mdb") || \
39
cli_strbcasestr(ext, ".mdu") || \
40
cli_strbcasestr(ext, ".ndb") || \
41
cli_strbcasestr(ext, ".ndu") || \
42
cli_strbcasestr(ext, ".ldb") || \
43
cli_strbcasestr(ext, ".ldu") || \
44
cli_strbcasestr(ext, ".sdb") || \
45
cli_strbcasestr(ext, ".zmd") || \
46
cli_strbcasestr(ext, ".rmd") || \
47
cli_strbcasestr(ext, ".pdb") || \
48
cli_strbcasestr(ext, ".wdb") || \
49
cli_strbcasestr(ext, ".ftm") || \
50
cli_strbcasestr(ext, ".ign") || \
51
cli_strbcasestr(ext, ".cfg") || \
52
cli_strbcasestr(ext, ".cvd") || \
53
cli_strbcasestr(ext, ".cld") \
56
char *cli_virname(char *virname, unsigned int official, unsigned int allocated);
58
int cli_parse_add(struct cli_matcher *root, const char *virname, const char *hexsig, uint16_t rtype, uint16_t type, const char *offset, uint8_t target, const uint32_t *lsigid, unsigned int options);
27
60
int cli_initengine(struct cl_engine **engine, unsigned int options);
62
int cli_load(const char *filename, struct cl_engine **engine, unsigned int *signo, unsigned int options, struct cli_dbio *dbio);
64
char *cli_dbgets(char *buff, unsigned int size, FILE *fs, struct cli_dbio *dbio);