]> sjero.net Git - wget/blobdiff - src/host.h
[svn] Move path_simplify to url.c.
[wget] / src / host.h
index 95566c583737cb0854af4a0e245025f99a2f15a0..f99c636c2ae788a3bf374eddcf7c068cfcd7060a 100644 (file)
@@ -1,5 +1,5 @@
 /* Declarations for host.c
-   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc.
 
 This file is part of GNU Wget.
 
@@ -21,17 +21,27 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define HOST_H
 
 struct url;
+struct address_list;
 
 /* Function declarations */
+struct address_list *lookup_host PARAMS ((const char *, int));
+char *herrmsg PARAMS ((int));
 
-struct hostent *ngethostbyname PARAMS ((const char *));
-int store_hostaddress PARAMS ((unsigned char *, const char *));
+void address_list_get_bounds PARAMS ((struct address_list *, int *, int *));
+void address_list_copy_one PARAMS ((struct address_list *, int,
+                                   unsigned char *));
+int address_list_match_all PARAMS ((struct address_list *,
+                                   struct address_list *));
+void address_list_set_faulty PARAMS ((struct address_list *, int));
+void address_list_release PARAMS ((struct address_list *));
 
-void host_cleanup PARAMS ((void));
+/* This was originally going to be a macro, but then every caller
+   would have to #include the netinet stuff.  */
+char *pretty_print_address PARAMS ((const void *));
 
 int accept_domain PARAMS ((struct url *));
 int sufmatch PARAMS ((const char **, const char *));
 
-char *herrmsg PARAMS ((int));
+void host_cleanup PARAMS ((void));
 
 #endif /* HOST_H */