Remove spy hooks.
[seven.git] / servlink / control.h
blob7966ca44d53259359259790e07686c133f621c07
1 /************************************************************************
2 * IRC - Internet Relay Chat, servlink/control.h
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 1, or (at your option)
7 * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
18 * $Id: control.h 26 2006-09-20 18:02:06Z spb $
21 #ifndef INCLUDED_servlink_control_h
22 #define INCLUDED_servlink_control_h
24 #define CMD_SET_ZIP_OUT_LEVEL 1 /* data */
25 #define CMD_START_ZIP_OUT 2
26 #define CMD_START_ZIP_IN 3
27 #define CMD_INJECT_RECVQ 4 /* data */
28 #define CMD_INJECT_SENDQ 5 /* data */
29 #define CMD_INIT 6
30 #define CMD_ZIPSTATS 7
32 #define RPL_ERROR 1 /* data */
33 #define RPL_ZIPSTATS 2 /* data */
35 /* flags */
36 #define COMMAND_FLAG_DATA 0x0001 /* command has data
37 following */
38 struct ctrl_command
40 int command;
41 int datalen;
42 int gotdatalen;
43 int readdata;
44 unsigned char *data;
47 typedef void cmd_handler(struct ctrl_command *);
49 struct command_def
51 unsigned int commandid;
52 cmd_handler *handler;
53 unsigned int flags;
56 extern struct command_def command_table[];
57 #endif /* INCLUDED_servlink_control_h */