]> jfr.im git - solanum.git/blame - include/monitor.h
monitor.{c,h} stuff for libratbox3.
[solanum.git] / include / monitor.h
CommitLineData
212380e3
AC
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
423f18a0
VY
13struct BlockHeap;
14
212380e3
AC
15struct monitor
16{
17 struct monitor *hnext;
18 char name[NICKLEN];
5b96d9a6 19 rb_dlink_list users;
212380e3
AC
20};
21
423f18a0
VY
22extern struct monitor *monitorTable[];\r
23\r
24#define MONITOR_HASH_BITS 16\r
25#define MONITOR_HASH_SIZE (1<<MONITOR_HASH_BITS)
212380e3 26
423f18a0 27void free_monitor(struct monitor *);
212380e3
AC
28
29void init_monitor(void);
30struct monitor *find_monitor(const char *name, int add);
212380e3
AC
31
32void monitor_signon(struct Client *);
33void monitor_signoff(struct Client *);
34
35#endif