+/*
+ * adns.h
+ * - adns user-visible API (single-threaded, without any locking)
+ */
/*
* This file is part of adns, which is Copyright (C) 1997-1999 Ian Jackson
*
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;
adns_query *query_io,
adns_answer **answer_r,
void **context_r);
-/* fixme: merge _check and _wait into one func with flags wait and `remove'(?) */
-/* fixme: include TTL in answer somehow */
-/* fixme: multithreading/locking */
/* fixme: easy way to get lists of fd's */
+/* fixme: minor cache */
void adns_cancel(adns_query query);