… | |
… | |
2 | * Copyright © 2005 William Pitcock, et al. |
2 | * Copyright © 2005 William Pitcock, et al. |
3 | * Rights to this code are as documented in doc/pod/license.pod. |
3 | * Rights to this code are as documented in doc/pod/license.pod. |
4 | * |
4 | * |
5 | * Data structures for channel information. |
5 | * Data structures for channel information. |
6 | * |
6 | * |
7 | * $Id: channels.h,v 1.3 2007/08/28 17:08:06 pippijn Exp $ |
7 | * $Id: channels.h,v 1.4 2007/08/30 06:57:25 pippijn Exp $ |
8 | */ |
8 | */ |
9 | |
9 | |
10 | #ifndef CHANNELS_H |
10 | #ifndef CHANNELS_H |
11 | #define CHANNELS_H |
11 | #define CHANNELS_H |
|
|
12 | |
|
|
13 | #include <map> |
12 | |
14 | |
13 | #include <ermyth/callback.h> |
15 | #include <ermyth/callback.h> |
14 | |
16 | |
15 | #define MAXEXTMODES 5 |
17 | #define MAXEXTMODES 5 |
16 | |
18 | |
… | |
… | |
163 | E void modestack_mode_ext (char *source, channel_t *channel, int dir, int i, char const * const value); |
165 | E void modestack_mode_ext (char *source, channel_t *channel, int dir, int i, char const * const value); |
164 | E void modestack_mode_param (char *source, channel_t *channel, int dir, char type, char const * const value); |
166 | E void modestack_mode_param (char *source, channel_t *channel, int dir, char type, char const * const value); |
165 | E void check_modes (mychan_t *mychan, bool sendnow); |
167 | E void check_modes (mychan_t *mychan, bool sendnow); |
166 | |
168 | |
167 | /* channels.C */ |
169 | /* channels.C */ |
168 | E dictionary_tree_t *chanlist; |
170 | typedef std::pair<char const * const, channel_t *> channel_pair; |
|
|
171 | typedef std::map<char const * const, channel_t *, irccase_lt> channel_map; |
|
|
172 | E channel_map chanlist; |
169 | |
173 | |
170 | E void init_channels (void); |
174 | E void init_channels (void); |
171 | |
175 | |
172 | E channel_t *channel_add (char const * const name, unsigned int ts, server_t *creator); |
176 | E channel_t *channel_add (char const * const name, unsigned int ts, server_t *creator); |
173 | E void channel_delete (channel_t *c); |
177 | E void channel_delete (channel_t *c); |