X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=include%2FIPcheck.h;h=91693ac09a18b6c52cc9d2b6977cbfcfc6e80e34;hb=894ccd3b8d5acb0067562d26bf72228d3e617203;hp=4062a90edd62ab2eed0c4e06e98b764765a08ff5;hpb=fda30451cac5936729c683d38a700f4928812c6f;p=ircu2.10.12-pk.git diff --git a/include/IPcheck.h b/include/IPcheck.h index 4062a90..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 @@ -10,19 +9,16 @@ #include /* time_t, size_t */ #define INCLUDED_sys_types_h #endif -#ifndef INCLUDED_netinet_in_h -#include /* in_addr */ -#define INCLUDED_netinet_in_h -#endif struct Client; +struct irc_in_addr; /* * Prototypes */ extern void IPcheck_init(void); -extern int IPcheck_local_connect(struct in_addr ip, time_t* next_target_out); -extern void IPcheck_connect_fail(struct in_addr ip); +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);