X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/212380e3f42f585dc1ea927402252eb943f91f7b..3ef1213be4da2d49c21f544cd6a3277b10b26399:/include/monitor.h diff --git a/include/monitor.h b/include/monitor.h index 5e0eb493..0e70653c 100644 --- a/include/monitor.h +++ b/include/monitor.h @@ -1,26 +1,27 @@ -/* +/* * ircd-ratbox: an advanced Internet Relay Chat Daemon(ircd). * monitor.h: Code for server-side notify lists. * * Copyright (C) 2005 Lee Hardy * 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; char name[NICKLEN]; - dlink_list users; + rb_dlink_list users; + rb_dlink_node node; + unsigned int hashv; }; -extern BlockHeap *monitor_heap; - -#define MONITOR_HASH_SIZE 65536 #define MONITOR_HASH_BITS 16 +#define MONITOR_HASH_SIZE (1<