1 /* Declarations for host.c
2 Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc.
4 This file is part of GNU Wget.
6 GNU Wget is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 GNU Wget is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Wget; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
26 /* Function declarations */
27 struct address_list *lookup_host PARAMS ((const char *, int));
28 char *herrmsg PARAMS ((int));
30 void address_list_get_bounds PARAMS ((struct address_list *, int *, int *));
31 void address_list_copy_one PARAMS ((struct address_list *, int,
33 int address_list_match_all PARAMS ((struct address_list *,
34 struct address_list *));
35 void address_list_set_faulty PARAMS ((struct address_list *, int));
36 void address_list_release PARAMS ((struct address_list *));
38 /* This was originally going to be a macro, but then every caller
39 would have to #include the netinet stuff. */
40 char *pretty_print_address PARAMS ((const unsigned char *));
42 int accept_domain PARAMS ((struct url *));
43 int sufmatch PARAMS ((const char **, const char *));
45 void host_cleanup PARAMS ((void));