monitor.{c,h} stuff for libratbox3.
This commit is contained in:
parent
637c4932f6
commit
423f18a073
2 changed files with 66 additions and 93 deletions
|
@ -10,6 +10,8 @@
|
|||
#ifndef INCLUDED_monitor_h
|
||||
#define INCLUDED_monitor_h
|
||||
|
||||
struct BlockHeap;
|
||||
|
||||
struct monitor
|
||||
{
|
||||
struct monitor *hnext;
|
||||
|
@ -17,14 +19,15 @@ struct monitor
|
|||
rb_dlink_list users;
|
||||
};
|
||||
|
||||
extern BlockHeap *monitor_heap;
|
||||
extern struct monitor *monitorTable[];
|
||||
|
||||
#define MONITOR_HASH_BITS 16
|
||||
#define MONITOR_HASH_SIZE (1<<MONITOR_HASH_BITS)
|
||||
|
||||
#define MONITOR_HASH_SIZE 65536
|
||||
#define MONITOR_HASH_BITS 16
|
||||
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 *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue