Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / include / IPcheck.h
index f27499603406995ded7a84ac91e0e3d70734f4de..0c7f23fe50d9258246383cbfdc31db37c1ecfc50 100644 (file)
@@ -1,16 +1,29 @@
-#ifndef IPCHECK_H
-#define IPCHECK_H
-
-/*=============================================================================
- * Proto types
+/*
+ * IPcheck.h
+ *
+ * $Id$
  */
+#ifndef INCLUDED_ipcheck_h
+#define INCLUDED_ipcheck_h
+
+#ifndef INCLUDED_sys_types_h
+#include <sys/types.h>          /* time_t, size_t */
+#define INCLUDED_sys_types_h
+#endif
+
+struct Client;
 
-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);
+/*----------------------------------------------------------------------------
+ * Prototypes
+ *--------------------------------------------------------------------------*/
+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 /* IPCHECK_H */
+#endif /* INCLUDED_ipcheck_h */