X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/21c9d815d7293b2fa7e531e8f9f69db2e3399554..40d5d119e57ec78928f7f15a7bd2ac46c7b0b151:/include/hash.h diff --git a/include/hash.h b/include/hash.h index 9766022..6dc2d4e 100644 --- a/include/hash.h +++ b/include/hash.h @@ -45,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 */ @@ -98,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 */