+ * Declare flags parameters as ints not enums because C++ is crap.
* Remove trailing , from some enums in adns.h.
* Dynamically linked clients now made with -l, so as to avoid rpath.
* Do not use $^ in make rules (should help with non-GNU make).
* Remove trailing , from some enums in adns.h.
* Dynamically linked clients now made with -l, so as to avoid rpath.
* Do not use $^ in make rules (should help with non-GNU make).
+ * Declare flags parameters as ints not enums because C++ is crap.
* 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.69 1999/10/13 00:57:36 ian Exp $
+ * $Id: adns.h,v 1.70 1999/10/13 01:23:56 ian Exp $
*/
#ifndef ADNS_H_INCLUDED
*/
#ifndef ADNS_H_INCLUDED
-int adns_init(adns_state *newstate_r, adns_initflags flags,
+int adns_init(adns_state *newstate_r, int flags /*adns_initflags*/,
FILE *diagfile /*0=>stderr*/);
FILE *diagfile /*0=>stderr*/);
-int adns_init_strcfg(adns_state *newstate_r, adns_initflags flags,
+int adns_init_strcfg(adns_state *newstate_r, int flags /*adns_initflags*/,
FILE *diagfile /*0=>discard*/, const char *configtext);
/* Configuration:
FILE *diagfile /*0=>discard*/, const char *configtext);
/* Configuration:
int adns_synchronous(adns_state ads,
const char *owner,
adns_rrtype type,
int adns_synchronous(adns_state ads,
const char *owner,
adns_rrtype type,
+ int flags /*adns_queryflags*/,
adns_answer **answer_r);
/* NB: if you set adns_if_noautosys then _submit and _check do not
adns_answer **answer_r);
/* NB: if you set adns_if_noautosys then _submit and _check do not
int adns_submit(adns_state ads,
const char *owner,
adns_rrtype type,
int adns_submit(adns_state ads,
const char *owner,
adns_rrtype type,
+ int flags /*adns_queryflags*/,
void *context,
adns_query *query_r);
void *context,
adns_query *query_r);
int adns_submit_reverse(adns_state ads,
const struct sockaddr *addr,
adns_rrtype type,
int adns_submit_reverse(adns_state ads,
const struct sockaddr *addr,
adns_rrtype type,
+ int flags /*adns_queryflags*/,
void *context,
adns_query *query_r);
/* type must be _r_ptr or _r_ptr_raw. _qf_search is ignored.
void *context,
adns_query *query_r);
/* type must be _r_ptr or _r_ptr_raw. _qf_search is ignored.
int adns_submit(adns_state ads,
const char *owner,
adns_rrtype type,
int adns_submit(adns_state ads,
const char *owner,
adns_rrtype type,
void *context,
adns_query *query_r) {
int r, ol, ndots;
void *context,
adns_query *query_r) {
int r, ol, ndots;
int adns_submit_reverse(adns_state ads,
const struct sockaddr *addr,
adns_rrtype type,
int adns_submit_reverse(adns_state ads,
const struct sockaddr *addr,
adns_rrtype type,
void *context,
adns_query *query_r) {
const unsigned char *iaddr;
void *context,
adns_query *query_r) {
const unsigned char *iaddr;
int adns_synchronous(adns_state ads,
const char *owner,
adns_rrtype type,
int adns_synchronous(adns_state ads,
const char *owner,
adns_rrtype type,
adns_answer **answer_r) {
adns_query qu;
int r;
adns_answer **answer_r) {
adns_query qu;
int r;
-int adns_init(adns_state *ads_r, adns_initflags flags, FILE *diagfile) {
+int adns_init(adns_state *ads_r, int flags, FILE *diagfile) {
adns_state ads;
const char *res_options, *adns_res_options;
int r;
adns_state ads;
const char *res_options, *adns_res_options;
int r;
-int adns_init_strcfg(adns_state *ads_r, adns_initflags flags,
+int adns_init_strcfg(adns_state *ads_r, int flags,
FILE *diagfile, const char *configtext) {
adns_state ads;
int r;
FILE *diagfile, const char *configtext) {
adns_state ads;
int r;