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:
14
lib/dns/db.c
14
lib/dns/db.c
@@ -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) {
|
||||
|
||||
|
Reference in New Issue
Block a user