Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / include / IPcheck.h
index ee17ac39f6feec1c1ee20ed3f1fef69373ed9253..0c7f23fe50d9258246383cbfdc31db37c1ecfc50 100644 (file)
 #include <sys/types.h>          /* time_t, size_t */
 #define INCLUDED_sys_types_h
 #endif
-#ifndef INCLUDED_netinet_in_h
-#include <netinet/in.h>         /* in_addr */
-#define INCLUDED_netinet_in_h
-#endif
 
 struct Client;
 
-/*
+/*----------------------------------------------------------------------------
  * Prototypes
- */
-extern int IPcheck_local_connect(struct in_addr ip, time_t* next_target_out);
-extern void IPcheck_connect_fail(struct in_addr ip);
-extern void IPcheck_connect_succeeded(struct Client *cptr);
-extern int IPcheck_remote_connect(struct Client *cptr, const char *hostname,
-    int is_burst);
-extern void IPcheck_disconnect(struct Client *cptr);
-extern unsigned short IPcheck_nr(struct Client *cptr);
+ *--------------------------------------------------------------------------*/
+extern void ip_registry_expire(void);
+extern int  ip_registry_check_local(unsigned int addr, time_t* next_target_out);
+extern void ip_registry_add_local(unsigned int addr);
+extern int  ip_registry_remote_connect(struct Client *cptr);
+extern void ip_registry_connect_succeeded(struct Client *cptr);
+extern void ip_registry_local_disconnect(struct Client *cptr);
+extern void ip_registry_remote_disconnect(struct Client *cptr);
+extern void ip_registry_connect_succeeded(struct Client *cptr);
+extern int ip_registry_count(unsigned int addr);
 
 #endif /* INCLUDED_ipcheck_h */