2 6e07fb41 2001-12-21 alex * ngIRCd -- The Next Generation IRC Daemon
3 020c6d8b 2002-01-02 alex * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
5 c7f07523 2002-12-12 alex * This program is free software; you can redistribute it and/or modify
6 c7f07523 2002-12-12 alex * it under the terms of the GNU General Public License as published by
7 c7f07523 2002-12-12 alex * the Free Software Foundation; either version 2 of the License, or
8 c7f07523 2002-12-12 alex * (at your option) any later version.
9 c7f07523 2002-12-12 alex * Please read the file COPYING, README and AUTHORS for more information.
11 c9540015 2003-01-03 alex * $Id: parse.h,v 1.10 2003/01/03 22:03:51 alex Exp $
13 c7f07523 2002-12-12 alex * IRC command parser and validator (header)
17 6e07fb41 2001-12-21 alex #ifndef __parse_h__
18 6e07fb41 2001-12-21 alex #define __parse_h__
21 6e07fb41 2001-12-21 alex typedef struct _REQUEST /* vgl. RFC 2812, 2.3 */
23 6e07fb41 2001-12-21 alex CHAR *prefix; /* Prefix */
24 6e07fb41 2001-12-21 alex CHAR *command; /* IRC-Befehl */
25 6e07fb41 2001-12-21 alex CHAR *argv[15]; /* Parameter (max. 15: 0..14) */
26 6e07fb41 2001-12-21 alex INT argc; /* Anzahl vorhandener Parameter */
30 17f7c6d3 2002-12-18 alex typedef struct _COMMAND
32 17f7c6d3 2002-12-18 alex CHAR *name; /* command name */
33 c9540015 2003-01-03 alex BOOLEAN (*function) PARAMS(( CLIENT *Client, REQUEST *Request ));
34 17f7c6d3 2002-12-18 alex CLIENT_TYPE type; /* valid client types (bit mask) */
35 17f7c6d3 2002-12-18 alex LONG lcount, rcount; /* number of local and remote calls */
36 17f7c6d3 2002-12-18 alex LONG bytes; /* number of bytes created */
40 c2f60abe 2002-05-27 alex GLOBAL BOOLEAN Parse_Request PARAMS((CONN_ID Idx, CHAR *Request ));
42 17f7c6d3 2002-12-18 alex GLOBAL COMMAND *Parse_GetCommandStruct PARAMS(( VOID ));