4
// This program is free software; you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation; either version 2 of the License, or
7
// (at your option) any later version.
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
// Written by Aecio F. Neto (afn@harvest.com.br)
19
// Harvest Consultoria (www.harvest.com.br)
21
// and somewhat hacked by mad@madness.at ;-)
30
#include "VirusEngine.hpp"
31
#include "OptionContainer.hpp"
35
// this class implements the VirusEngine api for clamav/clamscan
37
class ClamEngine:public VirusEngine
43
struct cl_limits limits;
44
struct cl_stat dbstat;
46
string vname; // extra virus name field, in case we manually need to set one
47
// (e.g. forked scanning needs this; child->parent data handover)
52
virtual ~ ClamEngine ();
54
virtual int loadEngine ();
55
virtual int reloadEngine ();
56
virtual int unloadEngine ();
58
virtual int scanFile (const char *_fname);
60
virtual const char *getVirusName ();
61
virtual const char *getErrString ();
63
virtual void setVirusName (const char *_vname);
64
virtual void setErrString (const char *_err_str);