]> jfr.im git - irc/rqf/shadowircd.git/blob - include/monitor.h
Update help snomask with snomasks provided by extensions.
[irc/rqf/shadowircd.git] / include / monitor.h
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 *
8 * $Id: monitor.h 6 2005-09-10 01:02:21Z nenolod $
9 */
10 #ifndef INCLUDED_monitor_h
11 #define INCLUDED_monitor_h
12
13 struct rb_bh;
14
15 struct monitor
16 {
17 struct monitor *hnext;
18 char name[NICKLEN];
19 rb_dlink_list users;
20 };
21
22 extern struct monitor *monitorTable[];
23
24 #define MONITOR_HASH_BITS 16
25 #define MONITOR_HASH_SIZE (1<<MONITOR_HASH_BITS)
26
27 void free_monitor(struct monitor *);
28
29 void init_monitor(void);
30 struct monitor *find_monitor(const char *name, int add);
31 void clear_monitor(struct Client *);
32
33 void monitor_signon(struct Client *);
34 void monitor_signoff(struct Client *);
35
36 #endif