Author: Bleep <tomh@inxpress.net>
[ircu2.10.12-pk.git] / include / IPcheck.h
index f27499603406995ded7a84ac91e0e3d70734f4de..ee17ac39f6feec1c1ee20ed3f1fef69373ed9253 100644 (file)
@@ -1,16 +1,31 @@
-#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
+#ifndef INCLUDED_netinet_in_h
+#include <netinet/in.h>         /* in_addr */
+#define INCLUDED_netinet_in_h
+#endif
 
-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,
+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(aClient *cptr);
-extern unsigned short IPcheck_nr(aClient *cptr);
+extern void IPcheck_disconnect(struct Client *cptr);
+extern unsigned short IPcheck_nr(struct Client *cptr);
 
-#endif /* IPCHECK_H */
+#endif /* INCLUDED_ipcheck_h */