ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/opercmd.h
Revision: 6212
Committed: Fri Jun 26 17:00:33 2015 UTC (10 years, 2 months ago) by michael
Content type: text/x-chdr
File size: 1732 byte(s)
Log Message:
- opercmd.c, opercmd.h: constification

File Contents

# User Rev Content
1 michael 5351 /*
2     * Copyright (c) 2002 Erik Fears
3     * Copyright (c) 2014-2015 ircd-hybrid development team
4     *
5     * This program is free software; you can redistribute it and/or modify
6     * it under the terms of the GNU General Public License as published by
7     * the Free Software Foundation; either version 2 of the License, or
8     * (at your option) any later version.
9     *
10     * This program is distributed in the hope that it will be useful,
11     * but WITHOUT ANY WARRANTY; without even the implied warranty of
12     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13     * GNU General Public License for more details.
14     *
15     * You should have received a copy of the GNU General Public License
16     * along with this program; if not, write to the Free Software
17     * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
18     * USA
19     */
20    
21 michael 5052 #ifndef OPERCMD_H
22     #define OPERCMD_H
23    
24 michael 5287 struct OperCommandHash
25     {
26     const char *command;
27 michael 5338 void (*handler)(char *, const struct ChannelConf *);
28 michael 5287 };
29    
30 michael 5052 struct Command
31     {
32 michael 5287 /* Points to specific entry in COMMAND_TABLE in opercmd.c */
33     const struct OperCommandHash *tab;
34 michael 5052
35 michael 5120 /* Command parameter.
36     * <erik> but i cant think of any commands bopm will ever have that is
37     * multiple parameters
38     *
39     * I still havn't -Erik 12/11/02
40     */
41     char *param;
42 michael 5052
43 michael 5120 /* Who ordered it. */
44     char *irc_nick;
45 michael 5052
46 michael 5120 /* Where the reply is to be sent. */
47 michael 5338 const struct ChannelConf *target;
48 michael 5052
49 michael 5120 /*
50     * When it was added, because we might need to remove it if it does
51     * not get executed.
52     */
53     time_t added;
54 michael 5052 };
55    
56     extern void command_init(void);
57 michael 5291 extern void command_userhost(const char *);
58 michael 5052 extern void command_timer(void);
59 michael 6212 extern void command_parse(const char *, const struct ChannelConf *, const char *);
60 michael 5052 #endif

Properties

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