]> sjero.net Git - wget/blobdiff - src/host.h
[svn] Split passive host lookups to a separate function.
[wget] / src / host.h
index 24e980147f8d1a6fcf2dcfa48691be5c9b8b5157..8666c08c7e05112c6dd024c284a66f888230774e 100644 (file)
@@ -90,16 +90,9 @@ typedef struct {
 #define ADDRESS_IPV6_DATA(x) ((void *)&(x)->u.ipv6.addr)
 #define ADDRESS_IPV6_SCOPE(x) ((x)->u.ipv6.scope_id)
 
-
-/* Flags for lookup_host */
-#define LH_SILENT    0x0001
-#define LH_PASSIVE   0x0002
-#define LH_IPV4_ONLY 0x0004
-#define LH_IPV6_ONLY 0x0008
-
 /* Function declarations */
 struct address_list *lookup_host PARAMS ((const char *, int));
-char *herrmsg PARAMS ((int));
+struct address_list *lookup_host_passive PARAMS ((const char *));
 
 void forget_host_lookup PARAMS ((const char *));
 
@@ -108,8 +101,7 @@ void address_list_get_bounds PARAMS ((const struct address_list *,
 int address_list_cached_p PARAMS ((const struct address_list *));
 const ip_address *address_list_address_at PARAMS ((const struct address_list *,
                                                   int));
-int address_list_match_all PARAMS ((const struct address_list *,
-                                   const struct address_list *));
+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_release PARAMS ((struct address_list *));