X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/f42e9cebeea0101a5193ca6ac0c5a7689d49f95b..4d17e288b419ed53a94b2d1daa6a139e42675a6c:/include/hash.h diff --git a/include/hash.h b/include/hash.h index 84d9f99..dbe1cca 100644 --- a/include/hash.h +++ b/include/hash.h @@ -29,31 +29,34 @@ #include "tools.h" +struct Dictionary; + extern dlink_list *clientTable; extern dlink_list *channelTable; extern dlink_list *idTable; extern dlink_list *resvTable; extern dlink_list *hostTable; extern dlink_list *helpTable; -extern dlink_list *ndTable; + +extern struct Dictionary *nd_dict; /* Magic value for FNV hash functions */ #define FNV1_32_INIT 0x811c9dc5UL /* Client hash table size, used in hash.c/s_debug.c */ -#define U_MAX_BITS (32-17) +#define U_MAX_BITS 17 #define U_MAX 131072 /* 2^17 */ /* Channel hash table size, hash.c/s_debug.c */ -#define CH_MAX_BITS (32-16) +#define CH_MAX_BITS 16 #define CH_MAX 65536 /* 2^16 */ /* hostname hash table size */ -#define HOST_MAX_BITS (32-17) +#define HOST_MAX_BITS 17 #define HOST_MAX 131072 /* 2^17 */ /* RESV/XLINE hash table size, used in hash.c */ -#define R_MAX_BITS (32-10) +#define R_MAX_BITS 10 #define R_MAX 1024 /* 2^10 */ @@ -97,13 +100,6 @@ extern void del_from_resv_hash(const char *name, struct ConfItem *aconf); extern struct ConfItem *hash_find_resv(const char *name); extern void clear_resv_hash(void); -extern void add_to_help_hash(const char *name, struct cachefile *hptr); -extern void clear_help_hash(void); -extern struct cachefile *hash_find_help(const char *name, int flags); - -extern void add_to_nd_hash(const char *name, struct nd_entry *nd); -extern struct nd_entry *hash_find_nd(const char *name); - extern void hash_stats(struct Client *); #endif /* INCLUDED_hash_h */