*push*
[NeonServV5.git] / IRCParser.h
1 #ifndef _IRCParser_h
2 #define _IRCParser_h
3
4 #include "main.h"
5 #include "ClientSocket.h"
6
7 #define MAXNUMPARAMS 200 /* maximum number of parameters in one line */
8
9 #define IRC_CMD(NAME) int NAME(ClientSocket *client, UNUSED_ARG(const char *from), UNUSED_ARG(char **argv), UNUSED_ARG(unsigned int argc))
10 typedef IRC_CMD(irc_cmd_t);
11
12 struct irc_cmd {
13     char *cmd;
14     irc_cmd_t *func;
15     struct irc_cmd *next;
16 };
17
18 int parse_lines(struct ClientSocket *client, char *lines, int len);
19 void parser_init();
20
21 #endif