Author: ZenShadow
[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 #ifndef INCLUDED_netinet_in_h
14 #include <netinet/in.h>         /* in_addr */
15 #define INCLUDED_netinet_in_h
16 #endif
17
18 struct Client;
19
20 /*----------------------------------------------------------------------------
21  * Prototypes
22  *--------------------------------------------------------------------------*/
23 extern int  ip_registry_check_local  (unsigned int   addr, 
24                                       time_t        *next_target_out);
25 extern void ip_registry_local_connect(struct Client *cptr);
26 extern void ip_registry_connect_fail (unsigned int   addr);
27 extern void ip_registry_expire       (void);
28 extern void ip_registry_disconnect   (struct Client *cptr);
29 extern int  ip_registry_count        (unsigned int   addr);
30 extern int  ip_registry_check_remote (struct Client *cptr,
31                                       int            is_burst);
32 extern void ip_registry_connect_succeeded(struct Client *cptr);
33
34 #endif /* INCLUDED_ipcheck_h */
35