]> jfr.im git - solanum.git/blob - include/monitor.h
Revert "remove MONITOR for now pending a complete rewrite"
[solanum.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 char name[NICKLEN];
18 rb_dlink_list users;
19 rb_dlink_node node;
20 unsigned int hashv;
21 };
22
23 #define MONITOR_HASH_BITS 16
24 #define MONITOR_HASH_SIZE (1<<MONITOR_HASH_BITS)
25
26 void free_monitor(struct monitor *);
27
28 void init_monitor(void);
29 struct monitor *find_monitor(const char *name, int add);
30 void clear_monitor(struct Client *);
31
32 void monitor_signon(struct Client *);
33 void monitor_signoff(struct Client *);
34
35 #endif