]> sjero.net Git - wget/blobdiff - src/host.h
[svn] Update FSF's address and copyright years.
[wget] / src / host.h
index 4f37d2fe7d08d95162fc8ee75e973cf3dd720751..6d0c553f83fb391066a920df406415a8bde07854 100644 (file)
@@ -1,5 +1,5 @@
 /* Declarations for host.c
-   Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1996-2005 Free Software Foundation, Inc.
 
 This file is part of GNU Wget.
 
@@ -14,8 +14,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
-along with Wget; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+along with Wget; if not, write to the Free Software Foundation, Inc.,
+51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 
 In addition, as a special exception, the Free Software Foundation
 gives permission to link the code of its release of Wget with the
@@ -49,9 +49,9 @@ struct address_list;
 typedef struct {
   /* Address type. */
   enum { 
-    IPV4_ADDRESS
+    IPV4_ADDRESS
 #ifdef ENABLE_IPV6
-    IPV6_ADDRESS 
+    IPV6_ADDRESS 
 #endif /* ENABLE_IPV6 */
   } type;
 
@@ -95,23 +95,24 @@ enum {
   LH_BIND    = 2,
   LH_REFRESH = 4
 };
-struct address_list *lookup_host PARAMS ((const char *, int));
+struct address_list *lookup_host (const char *, int);
 
-void address_list_get_bounds PARAMS ((const struct address_list *,
-                                     int *, int *));
-const ip_address *address_list_address_at PARAMS ((const struct address_list *,
-                                                  int));
-int address_list_find PARAMS ((const struct address_list *, const ip_address *));
-void address_list_set_faulty PARAMS ((struct address_list *, int));
-void address_list_set_connected PARAMS ((struct address_list *));
-int address_list_connected_p PARAMS ((const struct address_list *));
-void address_list_release PARAMS ((struct address_list *));
+void address_list_get_bounds (const struct address_list *, int *, int *);
+const ip_address *address_list_address_at (const struct address_list *, int);
+bool address_list_contains (const struct address_list *, const ip_address *);
+void address_list_set_faulty (struct address_list *, int);
+void address_list_set_connected (struct address_list *);
+bool address_list_connected_p (const struct address_list *);
+void address_list_release (struct address_list *);
 
-const char *pretty_print_address PARAMS ((const ip_address *));
+const char *print_address (const ip_address *);
+#ifdef ENABLE_IPV6
+bool is_valid_ipv6_address (const char *, const char *);
+#endif
 
-int accept_domain PARAMS ((struct url *));
-int sufmatch PARAMS ((const char **, const char *));
+bool accept_domain (struct url *);
+bool sufmatch (const char **, const char *);
 
-void host_cleanup PARAMS ((void));
+void host_cleanup (void);
 
 #endif /* HOST_H */