X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/1dfe95d8d1f8f2abaef02f9b0817c720bd955f7b..a6536d8becc65c37fbeab7bc0793c6dd55bea977:/src/adns.h?ds=inline diff --git a/src/adns.h b/src/adns.h index 8067a79..a87767a 100644 --- a/src/adns.h +++ b/src/adns.h @@ -133,13 +133,13 @@ typedef struct { struct sockaddr sa; struct sockaddr_in inet; } addr; -} adns_addr; +} adns_rr_addr; typedef struct { char *host; adns_status astatus; int naddrs; /* temp fail => -1, perm fail => 0, s_ok => >0 */ - adns_addr *addrs; + adns_rr_addr *addrs; } adns_rr_hostaddr; typedef struct { @@ -176,7 +176,7 @@ typedef struct { unsigned char *bytes; char *(*str); /* ns_raw, cname, ptr, ptr_raw */ adns_rr_intstr *(*manyistr); /* txt (list of strings ends with i=-1, str=0) */ - adns_addr *addr; /* addr */ + adns_rr_addr *addr; /* addr */ struct in_addr *inaddr; /* a */ adns_rr_hostaddr *hostaddr; /* ns */ adns_rr_strpair *strpair; /* hinfo ??fixme, rp, rp_raw */ @@ -209,6 +209,7 @@ typedef struct { * If no (appropriate) requests are outstanding adns_query and adns_wait return ESRCH; */ +/* fixme: separate parsing from instantiation */ int adns_init(adns_state *newstate_r, adns_initflags flags, FILE *diagfile/*0=>stderr*/); int adns_synchronous(adns_state ads,