~ubuntu-branches/ubuntu/hardy/clamav/hardy-security

« back to all changes in this revision

Viewing changes to libclamav/readdb.h

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2009-04-30 14:44:26 UTC
  • mfrom: (0.28.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090430144426-933t29chbo6phaa7
Tags: 0.94.dfsg.2-1ubuntu0.3~hardy4
No change rebuild from backports for use with ClamAV 0.94

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  Copyright (C) 2004 - 2005 Tomasz Kojm <tkojm@clamav.net>
 
2
 *  Copyright (C) 2007-2008 Sourcefire, Inc.
 
3
 *
 
4
 *  Authors: Tomasz Kojm
3
5
 *
4
6
 *  This program is free software; you can redistribute it and/or modify
5
7
 *  it under the terms of the GNU General Public License version 2 as
21
23
 
22
24
#include "clamav.h"
23
25
#include "matcher.h"
24
 
 
25
 
int cli_parse_add(struct cli_matcher *root, const char *virname, const char *hexsig, unsigned short type, const char *offset, unsigned short target);
 
26
#include "str.h"
 
27
#include "cltypes.h"
 
28
#include "cvd.h"
 
29
 
 
30
#define CLI_DBEXT(ext)                          \
 
31
    (                                           \
 
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")            \
 
54
    )
 
55
 
 
56
char *cli_virname(char *virname, unsigned int official, unsigned int allocated);
 
57
 
 
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);
26
59
 
27
60
int cli_initengine(struct cl_engine **engine, unsigned int options);
28
61
 
 
62
int cli_load(const char *filename, struct cl_engine **engine, unsigned int *signo, unsigned int options, struct cli_dbio *dbio);
 
63
 
 
64
char *cli_dbgets(char *buff, unsigned int size, FILE *fs, struct cli_dbio *dbio);
 
65
 
29
66
#endif