2014-03-03 05:25:47 +01:00
|
|
|
/*
|
2007-01-25 07:40:21 +01:00
|
|
|
* ircd-ratbox: an advanced Internet Relay Chat Daemon(ircd).
|
|
|
|
* monitor.h: Code for server-side notify lists.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005 Lee Hardy <lee -at- leeh.co.uk>
|
|
|
|
* Copyright (C) 2005 ircd-ratbox development team
|
|
|
|
*
|
|
|
|
* $Id: monitor.h 6 2005-09-10 01:02:21Z nenolod $
|
|
|
|
*/
|
|
|
|
#ifndef INCLUDED_monitor_h
|
|
|
|
#define INCLUDED_monitor_h
|
|
|
|
|
2008-04-02 02:28:05 +02:00
|
|
|
struct rb_bh;
|
2008-04-02 00:55:34 +02:00
|
|
|
|
2007-01-25 07:40:21 +01:00
|
|
|
struct monitor
|
|
|
|
{
|
|
|
|
struct monitor *hnext;
|
|
|
|
char name[NICKLEN];
|
2008-04-01 22:18:48 +02:00
|
|
|
rb_dlink_list users;
|
2007-01-25 07:40:21 +01:00
|
|
|
};
|
|
|
|
|
2008-04-13 17:54:23 +02:00
|
|
|
extern struct monitor *monitorTable[];
|
|
|
|
|
|
|
|
#define MONITOR_HASH_BITS 16
|
2008-04-02 00:55:34 +02:00
|
|
|
#define MONITOR_HASH_SIZE (1<<MONITOR_HASH_BITS)
|
2007-01-25 07:40:21 +01:00
|
|
|
|
2008-04-02 00:55:34 +02:00
|
|
|
void free_monitor(struct monitor *);
|
2007-01-25 07:40:21 +01:00
|
|
|
|
|
|
|
void init_monitor(void);
|
|
|
|
struct monitor *find_monitor(const char *name, int add);
|
2008-04-02 01:28:15 +02:00
|
|
|
void clear_monitor(struct Client *);
|
2007-01-25 07:40:21 +01:00
|
|
|
|
|
|
|
void monitor_signon(struct Client *);
|
|
|
|
void monitor_signoff(struct Client *);
|
|
|
|
|
|
|
|
#endif
|