X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/d3eea6424e9ba051c0e72b3c39cd826fda168762..8e5b0abb4e5416f4bd244500d9ba8dd45788093e:/src/adns.h diff --git a/src/adns.h b/src/adns.h index 2ec1f39..ea4c680 100644 --- a/src/adns.h +++ b/src/adns.h @@ -146,8 +146,10 @@ typedef struct { adns_status status; char *cname; /* always NULL if query was for CNAME records */ adns_rrtype type; - int nrrs; + int nrrs, rrsz; union { + void *untyped; + unsigned char *bytes; char *(*str); /* ns_raw, cname, ptr, ptr_raw, txt, _mf */ struct in_addr *inaddr; /* a */ adns_rr_dmaddr *dmaddr; /* ns */ @@ -265,4 +267,6 @@ void adns_interest(adns_state, int *maxfd_io, fd_set *readfds_io, * } */ +const char *adns_strerror(adns_status st); + #endif