* Include reference to Peter Simons's Haskell bindings
in README.html.
- Fixes from Bernd Eckenfels, the Debian maintainer:
+ Fixes from or suggested by Bernd Eckenfels, the Debian maintainer:
* Correct type of various printf arguments: ptrdiff_t != int.
* Do not print size of leaked blocks of memory (this causes
- a spurious regression test failure).
+ a spurious regression test failure on some platforms)
+ * Provide adns_if_none and adns_qf_none (which will help with compilers
+ which complain about plain `0' being passed where an enum is wanted).
--
* Include reference to Peter Simons's Haskell bindings
in README.html.
* Include reference to Peter Simons's Haskell bindings
in README.html.
- Fixes from Bernd Eckenfels, the Debian maintainer:
+ Fixes from or suggested by Bernd Eckenfels, the Debian maintainer:
* Correct type of various printf arguments: ptrdiff_t != int.
* Do not print size of leaked blocks of memory (this causes
* Correct type of various printf arguments: ptrdiff_t != int.
* Do not print size of leaked blocks of memory (this causes
- a spurious regression test failure).
+ a spurious regression test failure on some platforms)
+ * Provide adns_if_none and adns_qf_none (which will help with compilers
+ which complain about plain `0' being passed where an enum is wanted).
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
- * $Id: adns.h,v 1.87 2006/01/07 17:08:04 ian Exp $
+ * $Id: adns.h,v 1.88 2006/04/03 22:49:32 ian Exp $
*/
#ifndef ADNS_H_INCLUDED
*/
#ifndef ADNS_H_INCLUDED
typedef struct adns__state *adns_state;
typedef struct adns__query *adns_query;
typedef struct adns__state *adns_state;
typedef struct adns__query *adns_query;
+typedef enum { /* In general, or together the desired flags: */
+ adns_if_none= 0x0000,/* no flags. nicer than 0 for some compilers */
adns_if_noenv= 0x0001,/* do not look at environment */
adns_if_noerrprint= 0x0002,/* never print to stderr (_debug overrides) */
adns_if_noserverwarn=0x0004,/* do not warn to stderr about duff servers etc */
adns_if_noenv= 0x0001,/* do not look at environment */
adns_if_noerrprint= 0x0002,/* never print to stderr (_debug overrides) */
adns_if_noserverwarn=0x0004,/* do not warn to stderr about duff servers etc */
adns_if_checkc_freq= 0x0300 /* consistency checks very frequently (slow!) */
} adns_initflags;
adns_if_checkc_freq= 0x0300 /* consistency checks very frequently (slow!) */
} adns_initflags;
+typedef enum { /* In general, or together the desired flags: */
+ adns_qf_none= 0x00000000,/* no flags */
adns_qf_search= 0x00000001,/* use the searchlist */
adns_qf_usevc= 0x00000002,/* use a virtual circuit (TCP conn) */
adns_qf_owner= 0x00000004,/* fill in the owner field in the answer */
adns_qf_search= 0x00000001,/* use the searchlist */
adns_qf_usevc= 0x00000002,/* use a virtual circuit (TCP conn) */
adns_qf_owner= 0x00000004,/* fill in the owner field in the answer */