summaryrefslogtreecommitdiffstats
path: root/contrib/bind/lib/irs/dns_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bind/lib/irs/dns_p.h')
-rw-r--r--contrib/bind/lib/irs/dns_p.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/contrib/bind/lib/irs/dns_p.h b/contrib/bind/lib/irs/dns_p.h
index 5a4ef84..6b5fe11 100644
--- a/contrib/bind/lib/irs/dns_p.h
+++ b/contrib/bind/lib/irs/dns_p.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996 by Internet Software Consortium.
+ * Copyright (c) 1996-1999 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,17 +16,24 @@
*/
/*
- * $Id: dns_p.h,v 1.7 1996/10/25 07:22:59 vixie Exp $
+ * $Id: dns_p.h,v 1.11 1999/06/03 20:50:36 vixie Exp $
*/
#ifndef _DNS_P_H_INCLUDED
#define _DNS_P_H_INCLUDED
+#define maybe_ok(res, nm, ok) (((res)->options & RES_NOCHECKNAME) != 0 || \
+ (ok)(nm) != 0)
+#define maybe_hnok(res, hn) maybe_ok((res), (hn), res_hnok)
+#define maybe_dnok(res, dn) maybe_ok((res), (dn), res_dnok)
+
/*
* Object state.
*/
struct dns_p {
- void *hes_ctx;
+ void *hes_ctx;
+ struct __res_state *res;
+ void (*free_res) __P((void *));
};
/*
OpenPOWER on IntegriCloud