X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/18d49d5654fd77be6e3d4e60377db2019f6162b4..44895c1bc9a7b214f5691df4d1c160810e356051:/src/adns.h diff --git a/src/adns.h b/src/adns.h index ce12fc2..9c011e5 100644 --- a/src/adns.h +++ b/src/adns.h @@ -195,6 +195,7 @@ typedef struct { adns_status status; char *cname; /* always NULL if query was for CNAME records */ adns_rrtype type; /* guaranteed to be same as in query */ + time_t expires; /* expiry time, defined only if _s_ok, nxdomain or nodata. NOT TTL! */ int nrrs, rrsz; union { void *untyped; @@ -268,10 +269,7 @@ int adns_wait(adns_state ads, adns_query *query_io, adns_answer **answer_r, void **context_r); -/* fixme: include TTL in answer somehow */ -/* fixme: multithreading/locking */ -/* fixme: easy way to get lists of fd's */ -/* fixme: IPv6 */ +/* fixme: minor cache */ void adns_cancel(adns_query query);