]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - include/monitor.h
hunt_server: Disallow wildcarded nicknames.
[irc/rqf/shadowircd.git] / include / monitor.h
index f052cb34ea069a5f2c914b3402d1cd3b6ac9629c..00af663306c8f39dfe8d4f65541262eba5f3a9a1 100644 (file)
@@ -5,11 +5,12 @@
  * 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 rb_bh;
+
 struct monitor
 {
        struct monitor *hnext;
@@ -17,10 +18,12 @@ struct monitor
        rb_dlink_list users;
 };
 
-extern BlockHeap *monitor_heap;
+extern struct monitor *monitorTable[];
 
-#define MONITOR_HASH_SIZE 65536
 #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);