summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-protocol.h
blob: 55e02ba40227fcd4c39f80716354e50a12262f84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
 * Copyright (c) 2003-2007 by FlashCode <flashcode@flashtux.org>
 * See README for License detail, AUTHORS for developers list.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * 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, see <http://www.gnu.org/licenses/>.
 */


#ifndef __WEECHAT_IRC_PROTOCOL_H
#define __WEECHAT_IRC_PROTOCOL_H 1

#include "irc-server.h"

typedef int (t_irc_recv_func)(struct t_irc_server *, char *, char *, char *,
                              char *, int, int);

struct t_irc_protocol_msg
{
    char *name;                     /* IRC message name                      */
    char *description;              /* message description                   */
    t_irc_recv_func *recv_function; /* function called when msg is received  */
};

extern int irc_protocol_is_highlight (char *, char *);
extern int irc_protocol_recv_command (struct t_irc_server *, char *, char *, char *, char *);
extern int irc_protocol_cmd_error (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_invite (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_join (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_kick (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_kill (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_mode (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_nick (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_notice (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_part (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_ping (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_pong (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_privmsg (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_quit (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_server_mode_reason (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_server_msg (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_server_reply (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_topic (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_wallops (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_001 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_005 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_221 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_301 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_302 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_303 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_305 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_306 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_whois_nick_msg (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_310 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_311 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_312 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_314 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_315 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_317 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_319 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_321 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_322 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_323 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_324 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_327 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_329 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_331 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_332 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_333 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_338 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_341 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_344 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_345 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_348 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_349 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_351 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_352 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_353 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_365 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_366 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_367 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_368 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_432 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_433 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_438 (struct t_irc_server *, char *, char *, char *, char *, int, int);
extern int irc_protocol_cmd_671 (struct t_irc_server *, char *, char *, char *, char *, int, int);

#endif /* irc-protocol.h */