]> jfr.im git - solanum.git/blob - include/monitor.h
ircd/authproc.c: avoid crash on lack of any configured DNSBLs
[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 #ifndef INCLUDED_monitor_h
9 #define INCLUDED_monitor_h
10
11 struct rb_bh;
12
13 struct monitor
14 {
15 char name[NICKLEN];
16 rb_dlink_list users;
17 rb_dlink_node node;
18 unsigned int hashv;
19 };
20
21 #define MONITOR_HASH_BITS 16
22 #define MONITOR_HASH_SIZE (1<<MONITOR_HASH_BITS)
23
24 void free_monitor(struct monitor *);
25
26 void init_monitor(void);
27 struct monitor *find_monitor(const char *name, int add);
28 void clear_monitor(struct Client *);
29
30 void monitor_signon(struct Client *);
31 void monitor_signoff(struct Client *);
32
33 #endif