81131381 |
/*
* Copyright (C) 2002 - 2004 Tomasz Kojm <tkojm@clamav.net>
*
* This program is free software; you can redistribute it and/or modify |
bb34cb31 |
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. |
81131381 |
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software |
48b7b4a7 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA. |
81131381 |
*/
#ifndef __SESSION_H
#define __SESSION_H
|
7c225c08 |
#define COMMAND_SHUTDOWN 1 |
81131381 |
#define COMMAND_RELOAD 2
#define COMMAND_END 3 |
45905a4a |
#define COMMAND_SESSION 4 |
81131381 |
|
7708ddfc |
#define CMD1 "SCAN" |
6f6fc585 |
/* #define CMD2 "RAWSCAN" */ |
7708ddfc |
#define CMD3 "QUIT" /* deprecated */
#define CMD4 "RELOAD"
#define CMD5 "PING"
#define CMD6 "CONTSCAN"
#define CMD7 "VERSION"
#define CMD8 "STREAM"
#define CMD9 "SESSION"
#define CMD10 "END"
#define CMD11 "SHUTDOWN" |
df599e74 |
/* #define CMD12 "FD" */ |
8765287e |
#define CMD13 "MULTISCAN" |
725a2969 |
#define CMD14 "FILDES" |
aa22174b |
#define CMD15 "STATS" |
7708ddfc |
|
bd8603aa |
#include "libclamav/clamav.h"
#include "shared/cfgparser.h" |
81131381 |
|
370892d0 |
int command(int desc, const struct cl_engine *engine, unsigned int options, const struct cfgstruct *copt, int timeout); |
81131381 |
#endif |