]> jfr.im git - solanum.git/blame - include/monitor.h
monitor: additional cleanup pointed out by mr_flea
[solanum.git] / include / monitor.h
CommitLineData
55abcbb2 1/*
212380e3
AC
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
398b6a73 13struct rb_bh;
423f18a0 14
212380e3
AC
15struct monitor
16{
212380e3 17 char name[NICKLEN];
5b96d9a6 18 rb_dlink_list users;
d5f856c6
AC
19 rb_dlink_node node;
20 unsigned int hashv;
212380e3
AC
21};
22
8bd5767b 23#define MONITOR_HASH_BITS 16
423f18a0 24#define MONITOR_HASH_SIZE (1<<MONITOR_HASH_BITS)
212380e3 25
423f18a0 26void free_monitor(struct monitor *);
212380e3
AC
27
28void init_monitor(void);
29struct monitor *find_monitor(const char *name, int add);
a1f535de 30void clear_monitor(struct Client *);
212380e3
AC
31
32void monitor_signon(struct Client *);
33void monitor_signoff(struct Client *);
34
35#endif