Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / include / IPcheck.h
1 /*
2  * IPcheck.h
3  *
4  * $Id$
5  */
6 #ifndef INCLUDED_ipcheck_h
7 #define INCLUDED_ipcheck_h
8
9 #ifndef INCLUDED_sys_types_h
10 #include <sys/types.h>          /* time_t, size_t */
11 #define INCLUDED_sys_types_h
12 #endif
13
14 struct Client;
15
16 /*----------------------------------------------------------------------------
17  * Prototypes
18  *--------------------------------------------------------------------------*/
19 extern void ip_registry_expire(void);
20 extern int  ip_registry_check_local(unsigned int addr, time_t* next_target_out);
21 extern int  ip_registry_remote_connect(struct Client *cptr);
22 extern void ip_registry_connect_succeeded(struct Client *cptr);
23 extern void ip_registry_local_disconnect(struct Client *cptr);
24 extern void ip_registry_remote_disconnect(struct Client *cptr);
25 extern void ip_registry_connect_succeeded(struct Client *cptr);
26 extern int ip_registry_count(unsigned int addr);
27
28 #endif /* INCLUDED_ipcheck_h */