]> jfr.im git - irc/rqf/shadowircd.git/blob - include/monitor.h
[svn] - the new plan:
[irc/rqf/shadowircd.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 monitor
14 {
15 struct monitor *hnext;
16 char name[NICKLEN];
17 dlink_list users;
18 };
19
20 extern BlockHeap *monitor_heap;
21
22 #define MONITOR_HASH_SIZE 65536
23 #define MONITOR_HASH_BITS 16
24
25 void init_monitor(void);
26 struct monitor *find_monitor(const char *name, int add);
27 void clear_monitor(struct Client *);
28
29 void monitor_signon(struct Client *);
30 void monitor_signoff(struct Client *);
31
32 #endif