chiark / gitweb /
General improvements; add cancel routine.
[adns.git] / src / adns.h
index afcb6b4ba577047d04f1e59b58b4e8e21a0e321b..5b7aa037991aad716b1fa79b1cafd84a1daafc54 100644 (file)
@@ -39,6 +39,7 @@ typedef enum {
   adns_if_noserverwarn= 0x0004, /* do not warn to stderr about duff nameservers etc */
   adns_if_debug=        0x0008, /* enable all output to stderr plus debug msgs */
   adns_if_noautosys=    0x0010, /* do not make syscalls at every opportunity */
+  adns_if_eintr=        0x0020, /* allow _wait and _synchronous to return EINTR */
 } adns_initflags;
 
 typedef enum {
@@ -215,7 +216,6 @@ int adns_synchronous(adns_state ads,
                     adns_rrtype type,
                     adns_queryflags flags,
                     adns_answer **answer_r);
-/* Will not return EINTR. */
 
 /* NB: if you set adns_if_noautosys then _submit and _check do not
  * make any system calls; you must use adns_callback (possibly after
@@ -238,7 +238,6 @@ int adns_wait(adns_state ads,
              adns_query *query_io,
              adns_answer **answer_r,
              void **context_r);
-/* Might return EINTR - if so, try again */
 
 void adns_cancel(adns_query query);