]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - include/hash.h
Rerun autoconf.
[irc/rqf/shadowircd.git] / include / hash.h
index d732a964069b4fbd0fd48a636a6e3b765c3a9dc3..6dc2d4e91aefb011d152f80211ac94d9881cd67f 100644 (file)
@@ -27,8 +27,6 @@
 #ifndef INCLUDED_hash_h
 #define INCLUDED_hash_h
 
-#include "tools.h"
-
 struct Dictionary;
 
 extern rb_dlink_list *clientTable;
@@ -47,6 +45,9 @@ extern struct Dictionary *nd_dict;
 #define U_MAX_BITS 17
 #define U_MAX 131072 /* 2^17 */
 
+/* Client fd hash table size, used in hash.c */
+#define CLI_FD_MAX 4096
+
 /* Channel hash table size, hash.c/s_debug.c */
 #define CH_MAX_BITS 16
 #define CH_MAX 65536 /* 2^16 */
@@ -100,6 +101,10 @@ 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);
 
+void add_to_cli_fd_hash(struct Client *client_p);
+void del_from_cli_fd_hash(struct Client *client_p);
+struct Client *find_cli_fd_hash(int fd);
+
 extern void hash_stats(struct Client *);
 
 #endif /* INCLUDED_hash_h */