]> jfr.im git - solanum.git/blame - include/monitor.h
Revert "remove MONITOR for now pending a complete rewrite"
[solanum.git] / include / monitor.h
CommitLineData
5f8fb56d
AW
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
13struct rb_bh;
14
15struct 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
26void free_monitor(struct monitor *);
27
28void init_monitor(void);
29struct monitor *find_monitor(const char *name, int add);
30void clear_monitor(struct Client *);
31
32void monitor_signon(struct Client *);
33void monitor_signoff(struct Client *);
34
35#endif