]> jfr.im git - solanum.git/blobdiff - include/monitor.h
Clean up duplication in ChannelModeFunc prototypes (#52)
[solanum.git] / include / monitor.h
index 56974e071a16ec9ee6547c13667b5c3680df93e7..0e70653ca15a4f2bba8077a1e4d09063545c53e4 100644 (file)
@@ -1,33 +1,31 @@
-/* 
+/*
  * 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
 
-struct BlockHeap;
+struct rb_bh;
 
 struct monitor
 {
-       struct monitor *hnext;
        char name[NICKLEN];
        rb_dlink_list users;
+       rb_dlink_node node;
+       unsigned int hashv;
 };
 
-extern struct monitor *monitorTable[];\r
-\r
-#define MONITOR_HASH_BITS 16\r
+#define MONITOR_HASH_BITS 16
 #define MONITOR_HASH_SIZE (1<<MONITOR_HASH_BITS)
 
 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 *);