]>
Commit | Line | Data |
---|---|---|
212380e3 | 1 | /* |
2 | * ircd-ratbox: an advanced Internet Relay Chat Daemon(ircd). | |
3 | * monitor.h: Code for server-side notify lists. | |
4 | * | |
5 | * Copyright (C) 2005 Lee Hardy <lee -at- leeh.co.uk> | |
6 | * Copyright (C) 2005 ircd-ratbox development team | |
7 | * | |
212380e3 | 8 | */ |
9 | #ifndef INCLUDED_monitor_h | |
10 | #define INCLUDED_monitor_h | |
11 | ||
6e9b4415 | 12 | struct rb_bh; |
f0a889b6 | 13 | |
212380e3 | 14 | struct monitor |
15 | { | |
16 | struct monitor *hnext; | |
17 | char name[NICKLEN]; | |
08d11e34 | 18 | rb_dlink_list users; |
212380e3 | 19 | }; |
20 | ||
b717a466 JT |
21 | extern struct monitor *monitorTable[]; |
22 | ||
23 | #define MONITOR_HASH_BITS 16 | |
f0a889b6 | 24 | #define MONITOR_HASH_SIZE (1<<MONITOR_HASH_BITS) |
212380e3 | 25 | |
f0a889b6 | 26 | void free_monitor(struct monitor *); |
212380e3 | 27 | |
28 | void init_monitor(void); | |
29 | struct monitor *find_monitor(const char *name, int add); | |
7118180f | 30 | void clear_monitor(struct Client *); |
212380e3 | 31 | |
32 | void monitor_signon(struct Client *); | |
33 | void monitor_signoff(struct Client *); | |
34 | ||
35 | #endif |