X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=include%2FIPcheck.h;h=493ef4367fe0812721d0136ac6bfb68d8e73f106;hb=a36ad5e29241b0c89379947b13887cb6930ef3e0;hp=f27499603406995ded7a84ac91e0e3d70734f4de;hpb=b70944c4b84fc2b707d0853ddf03975569dac2bd;p=ircu2.10.12-pk.git diff --git a/include/IPcheck.h b/include/IPcheck.h index f274996..493ef43 100644 --- a/include/IPcheck.h +++ b/include/IPcheck.h @@ -1,16 +1,27 @@ -#ifndef IPCHECK_H -#define IPCHECK_H - -/*============================================================================= - * Proto types +/** @file IPcheck.h + * @brief Interface to count users connected from particular IP addresses. + * @version $Id$ */ +#ifndef INCLUDED_ipcheck_h +#define INCLUDED_ipcheck_h + +#ifndef INCLUDED_sys_types_h +#include /* time_t, size_t */ +#define INCLUDED_sys_types_h +#endif -extern int IPcheck_local_connect(aClient *cptr); -extern void IPcheck_connect_fail(aClient *cptr); -extern void IPcheck_connect_succeeded(aClient *cptr); -extern int IPcheck_remote_connect(aClient *cptr, const char *hostname, - int is_burst); -extern void IPcheck_disconnect(aClient *cptr); -extern unsigned short IPcheck_nr(aClient *cptr); +struct Client; +struct irc_in_addr; + +/* + * Prototypes + */ +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); +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 /* IPCHECK_H */ +#endif /* INCLUDED_ipcheck_h */