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