X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/08d11e34cc17e3045231729d87025a0cfa598f54..3fa27fe787e1d1c108c204999513bc77469f89b0:/include/hash.h diff --git a/include/hash.h b/include/hash.h index d732a96..cc4e480 100644 --- a/include/hash.h +++ b/include/hash.h @@ -21,14 +21,11 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: hash.h 3177 2007-02-01 00:19:14Z jilles $ */ #ifndef INCLUDED_hash_h #define INCLUDED_hash_h -#include "tools.h" - struct Dictionary; extern rb_dlink_list *clientTable; @@ -47,6 +44,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 +100,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 */