/[svn]/ircd-hybrid-7.2/include/ircd_handler.h
ViewVC logotype

Contents of /ircd-hybrid-7.2/include/ircd_handler.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 34 - (show annotations)
Sun Oct 2 21:05:51 2005 UTC (14 years ago) by lusky
File MIME type: text/x-csrc
File size: 1622 byte(s)
create 7.2 branch, we can move/rename it as needed.


1 /*
2 * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 * ircd_handler.h: A header for the IRC message handlers.
4 *
5 * Copyright (C) 2002 by the past and present ircd coders, and others.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 * USA
21 *
22 * $Id$
23 */
24
25 #ifndef INCLUDED_ircd_handler_h
26 #define INCLUDED_ircd_handler_h
27
28 struct Client;
29
30 /*
31 * MessageHandler
32 */
33 typedef enum HandlerType {
34 UNREGISTERED_HANDLER,
35 CLIENT_HANDLER,
36 SERVER_HANDLER,
37 ENCAP_HANDLER,
38 OPER_HANDLER,
39 DUMMY_HANDLER,
40 LAST_HANDLER_TYPE
41 } HandlerType;
42
43 /*
44 * MessageHandler function
45 * Params:
46 * struct Client* client_p - connection message originated from
47 * struct Client* source_p - source of message, may be different from client_p
48 * int parc - parameter count
49 * char* parv[] - parameter vector
50 */
51 typedef void (*MessageHandler)(struct Client*, struct Client*, int, char*[]);
52
53
54 #endif /* INCLUDED_ircd_handler_h */

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26