]> jfr.im git - irc/rqf/shadowircd.git/blob - include/monitor.h
Add explicit support for being installed into a system triggered with --enable-fhs...
[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 */
9 #ifndef INCLUDED_monitor_h
10 #define INCLUDED_monitor_h
11
12 struct rb_bh;
13
14 struct monitor
15 {
16 struct monitor *hnext;
17 char name[NICKLEN];
18 rb_dlink_list users;
19 };
20
21 extern struct monitor *monitorTable[];
22
23 #define MONITOR_HASH_BITS 16
24 #define MONITOR_HASH_SIZE (1<<MONITOR_HASH_BITS)
25
26 void free_monitor(struct monitor *);
27
28 void init_monitor(void);
29 struct monitor *find_monitor(const char *name, int add);
30 void clear_monitor(struct Client *);
31
32 void monitor_signon(struct Client *);
33 void monitor_signoff(struct Client *);
34
35 #endif