chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include TTL (well, actually, expiry time) in answers.
[adns]
/
src
/
adns.h
diff --git
a/src/adns.h
b/src/adns.h
index 1b3e1d3bf507a5a706c489d28d0e66b59a26899d..a234cda45951c4770bb0355704939b1a0f6d0972 100644
(file)
--- a/
src/adns.h
+++ b/
src/adns.h
@@
-1,3
+1,7
@@
+/*
+ * 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
*
/*
* This file is part of adns, which is Copyright (C) 1997-1999 Ian Jackson
*
@@
-191,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 */
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;
int nrrs, rrsz;
union {
void *untyped;
@@
-264,10
+269,8
@@
int adns_wait(adns_state ads,
adns_query *query_io,
adns_answer **answer_r,
void **context_r);
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: easy way to get lists of fd's */
+/* fixme: minor cache */
void adns_cancel(adns_query query);
void adns_cancel(adns_query query);