X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=include%2FIPcheck.h;h=91693ac09a18b6c52cc9d2b6977cbfcfc6e80e34;hb=refs%2Fheads%2Fupstream-ssl;hp=c17769432548e3b77eebb32563bed3f00fc13e2a;hpb=8444e8a9c7078391970af5fc50f55dbaf9691ed4;p=ircu2.10.12-pk.git diff --git a/include/IPcheck.h b/include/IPcheck.h index c177694..91693ac 100644 --- a/include/IPcheck.h +++ b/include/IPcheck.h @@ -1,7 +1,6 @@ -/* - * IPcheck.h - * - * $Id$ +/** @file IPcheck.h + * @brief Interface to count users connected from particular IP addresses. + * @version $Id$ */ #ifndef INCLUDED_ipcheck_h #define INCLUDED_ipcheck_h @@ -12,18 +11,17 @@ #endif struct Client; +struct irc_in_addr; -/*---------------------------------------------------------------------------- +/* * Prototypes - *--------------------------------------------------------------------------*/ -extern int ip_registry_check_local(unsigned int addr, time_t* next_target_out); -extern void ip_registry_local_connect(struct Client *cptr); -extern void ip_registry_connect_fail(unsigned int addr); -extern void ip_registry_expire(void); -extern void ip_registry_disconnect(struct Client *cptr); -extern int ip_registry_count(unsigned int addr); -extern int ip_registry_check_remote(struct Client *cptr, int is_burst); -extern void ip_registry_connect_succeeded(struct Client *cptr); + */ +extern void IPcheck_init(void); +extern int IPcheck_local_connect(const struct irc_in_addr *ip, time_t *next_target_out); +extern void IPcheck_connect_fail(const struct Client *cptr, int disconnect); +extern void IPcheck_connect_succeeded(struct Client *cptr); +extern int IPcheck_remote_connect(struct Client *cptr, int is_burst); +extern void IPcheck_disconnect(struct Client *cptr); +extern unsigned short IPcheck_nr(struct Client* cptr); #endif /* INCLUDED_ipcheck_h */ -