X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=blobdiff_plain;f=src%2Finternal.h;h=cd58d7a2d46135f9069919ed70f9cda76df65948;hp=bf6d3ac3aa44fa5518238fc5d67bae46e20be097;hb=0ba0614a998909d8b4f51988d7a8af3ba369a5d9;hpb=b9de380c1e587b6c5828cb9de796746024946880 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;