X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/54ed1d64dc7b6a4cbfea47d3a14e63d48d852de8..8312a1c218393182c63ca6996b56d7d33f6c48b3:/src/internal.h diff --git a/src/internal.h b/src/internal.h index bf6d3ac..cd58d7a 100644 --- a/src/internal.h +++ b/src/internal.h @@ -49,13 +49,19 @@ typedef union { int dmaddr_index; } qcontext; +typedef struct { + unsigned long searchkey; /* flags and typecode swapped */ + adns_rrtype type; +} typeinfo; + struct adns__query { /* FIXME: make sure this is all init'd properly */ enum { query_udp, query_tcpwait, query_tcpsent, query_child, query_done } state; adns_query back, next, parent; struct { adns_query head, tail; } children; struct { adns_query back, next; } siblings; - adns_rrtype type; + + const typeinfo *typei; vbuf ans; int id, flags, udpretries; int udpnextserver;