chiark / gitweb /
Mailbox quoting seems to work.
[adns.git] / src / adns.h
index 1b3e1d3bf507a5a706c489d28d0e66b59a26899d..32addba0bc25ac38443b16921d903e846c6325b0 100644 (file)
@@ -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
  *  
@@ -85,7 +89,7 @@ typedef enum {
   
 } adns_rrtype;
 
-/* In queries without qtf_anyquote, all domains must have standard
+/* In queries without qtf_quoteok_*, all domains must have standard
  * legal syntax.  In queries _with_ qtf_anyquote, domains in the query
  * or response may contain any characters, quoted according to
  * RFC1035 5.1.  On input to adns, the char* is a pointer to the
@@ -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 */
+  time_t expires; /* expiry time, defined only if _s_ok, nxdomain or nodata. NOT TTL! */
   int nrrs, rrsz;
   union {
     void *untyped;
@@ -264,10 +269,7 @@ int adns_wait(adns_state ads,
              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);