2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

add dns_db_find

This commit is contained in:
Bob Halley
1999-04-01 04:03:22 +00:00
parent d176cbca5b
commit ced5499494
2 changed files with 42 additions and 7 deletions

View File

@@ -232,8 +232,6 @@ dns_db_findnode(dns_db_t *db, dns_name_t *name,
* Find the node with name 'name'.
*
* WARNING: THIS API WILL BE CHANGING IN THE NEAR FUTURE.
*
* XXX Add options parameter (e.g. so we can say "longest match").
*/
REQUIRE(DNS_DB_VALID(db));
@@ -243,6 +241,18 @@ dns_db_findnode(dns_db_t *db, dns_name_t *name,
return ((db->methods->findnode)(db, name, create, nodep));
}
dns_result_t
dns_db_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
dns_rdatatype_t type, unsigned int options,
dns_dbnode_t **nodep, dns_name_t *foundname,
dns_rdataset_t *rdataset) {
/* XXX TBS */
return ((db->methods->find)(db, name, version, type, options,
nodep, foundname, rdataset));
}
void
dns_db_attachnode(dns_db_t *db, dns_dbnode_t *source, dns_dbnode_t **targetp) {