elemental-ircd/include/monitor.h

35 lines
758 B
C
Raw Permalink Normal View History

/*
* 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
*
*/
#ifndef INCLUDED_monitor_h
#define INCLUDED_monitor_h
struct rb_bh;
2008-04-01 22:55:34 +00:00
struct monitor {
struct monitor *hnext;
char name[NICKLEN];
rb_dlink_list users;
};
2008-04-13 15:54:23 +00:00
extern struct monitor *monitorTable[];
#define MONITOR_HASH_BITS 16
2008-04-01 22:55:34 +00:00
#define MONITOR_HASH_SIZE (1<<MONITOR_HASH_BITS)
2008-04-01 22:55:34 +00:00
void free_monitor(struct monitor *);
void init_monitor(void);
struct monitor *find_monitor(const char *name, int add);
void clear_monitor(struct Client *);
void monitor_signon(struct Client *);
void monitor_signoff(struct Client *);
#endif