]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - include/monitor.h
Branch Merge
[irc/rqf/shadowircd.git] / include / monitor.h
index f052cb34ea069a5f2c914b3402d1cd3b6ac9629c..102fe7e9dd87c127a9b850944c0c70e2cc2b1f27 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef INCLUDED_monitor_h
 #define INCLUDED_monitor_h
 
+struct rb_bh;
+
 struct monitor
 {
        struct monitor *hnext;
@@ -17,10 +19,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);