X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/blobdiff_plain/c5fd1fbbe4976af30ac18f600b275036dbbe688f..e1d3be7eb6f703e8cf9b8104497f010c0298637a:/src/internal.h diff --git a/src/internal.h b/src/internal.h index f459a24..fed8466 100644 --- a/src/internal.h +++ b/src/internal.h @@ -124,6 +124,20 @@ typedef struct { struct timeval now; } parseinfo; +typedef struct { + void *ext; + void (*callback)(adns_query parent, adns_query child); + + union { + adns_rr_addr ptr_addr; + } tinfo; /* type-specific state for the query itself: zero-init if you + * don't know better. */ + + union { + adns_rr_hostaddr *hostaddr; + } pinfo; /* state for use by parent's callback function */ +} qcontext; + typedef struct typeinfo { adns_rrtype typekey; const char *rrtname; @@ -199,20 +213,6 @@ union maxalign { union maxalign *up; } data; -typedef struct { - void *ext; - void (*callback)(adns_query parent, adns_query child); - - union { - adns_rr_addr ptr_addr; - } tinfo; /* type-specific state for the query itself: zero-init if you - * don't know better. */ - - union { - adns_rr_hostaddr *hostaddr; - } pinfo; /* state for use by parent's callback function */ -} qcontext; - struct adns__query { adns_state ads; enum { query_tosend, query_tcpw, query_childw, query_done } state;