static isc_result_t
builtin_find(dns_db_t *db, const dns_name_t *name, dns_dbversion_t *version,
dns_rdatatype_t type, unsigned int options, isc_stdtime_t now,
- dns_dbnode_t **nodep ISC_ATTR_UNUSED, dns_name_t *foundname,
+ dns_name_t *foundname,
dns_clientinfomethods_t *methods ISC_ATTR_UNUSED,
dns_clientinfo_t *clientinfo ISC_ATTR_UNUSED,
dns_rdataset_t *rdataset,
static isc_result_t
find(dns_db_t *db, const dns_name_t *name, dns_dbversion_t *version,
dns_rdatatype_t type, unsigned int options, isc_stdtime_t now,
- dns_dbnode_t **nodep, dns_name_t *foundname,
- dns_clientinfomethods_t *methods, dns_clientinfo_t *clientinfo,
- dns_rdataset_t *rdataset, dns_rdataset_t *sigrdataset DNS__DB_FLARG) {
+ dns_name_t *foundname, dns_clientinfomethods_t *methods,
+ dns_clientinfo_t *clientinfo, dns_rdataset_t *rdataset,
+ dns_rdataset_t *sigrdataset DNS__DB_FLARG) {
sampledb_t *sampledb = (sampledb_t *)db;
REQUIRE(VALID_SAMPLEDB(sampledb));
- if (sampledb->db->methods->find == NULL) {
- return ISC_R_NOTIMPLEMENTED;
- }
-
- return (sampledb->db->methods->find)(sampledb->db, name, version, type,
- options, now, nodep, foundname,
- methods, clientinfo, rdataset,
- sigrdataset DNS__DB_FLARG_PASS);
+ return dns__db_find(sampledb->db, name, version, type, options, now,
+ foundname, methods, clientinfo, rdataset,
+ sigrdataset DNS__DB_FLARG_PASS);
}
static isc_result_t
if (db->methods->find != NULL) {
return (db->methods->find)(db, name, version, type, options,
- now, NULL, foundname, methods,
- clientinfo, rdataset,
+ now, foundname, methods, clientinfo,
+ rdataset,
sigrdataset DNS__DB_FLARG_PASS);
}
return ISC_R_NOTIMPLEMENTED;
isc_result_t (*find)(dns_db_t *db, const dns_name_t *name,
dns_dbversion_t *version, dns_rdatatype_t type,
unsigned int options, isc_stdtime_t now,
- dns_dbnode_t **nodep, dns_name_t *foundname,
+ dns_name_t *foundname,
dns_clientinfomethods_t *methods,
dns_clientinfo_t *clientinfo,
dns_rdataset_t *rdataset,
static isc_result_t
qpcache_find(dns_db_t *db, const dns_name_t *name, dns_dbversion_t *version,
dns_rdatatype_t type, unsigned int options, isc_stdtime_t __now,
- dns_dbnode_t **nodep ISC_ATTR_UNUSED, dns_name_t *foundname,
+ dns_name_t *foundname,
dns_clientinfomethods_t *methods ISC_ATTR_UNUSED,
dns_clientinfo_t *clientinfo ISC_ATTR_UNUSED,
dns_rdataset_t *rdataset,
static isc_result_t
qpzone_find(dns_db_t *db, const dns_name_t *name, dns_dbversion_t *version,
dns_rdatatype_t type, unsigned int options,
- isc_stdtime_t now ISC_ATTR_UNUSED,
- dns_dbnode_t **nodep ISC_ATTR_UNUSED, dns_name_t *foundname,
+ isc_stdtime_t now ISC_ATTR_UNUSED, dns_name_t *foundname,
dns_clientinfomethods_t *methods ISC_ATTR_UNUSED,
dns_clientinfo_t *clientinfo ISC_ATTR_UNUSED,
dns_rdataset_t *rdataset,
dns_rdataset_init(&sigrdataset_aaaa);
result = qpzone_find(ctx->db, name, ctx->version, dns_rdatatype_a,
- DNS_DBFIND_GLUEOK, 0, NULL, name_a, NULL, NULL,
+ DNS_DBFIND_GLUEOK, 0, name_a, NULL, NULL,
&rdataset_a, &sigrdataset_a DNS__DB_FLARG_PASS);
if (result == DNS_R_GLUE) {
glue = new_glue(ctx->db->mctx, name_a);
}
result = qpzone_find(ctx->db, name, ctx->version, dns_rdatatype_aaaa,
- DNS_DBFIND_GLUEOK, 0, NULL, name_aaaa, NULL, NULL,
+ DNS_DBFIND_GLUEOK, 0, name_aaaa, NULL, NULL,
&rdataset_aaaa,
&sigrdataset_aaaa DNS__DB_FLARG_PASS);
if (result == DNS_R_GLUE) {
static isc_result_t
sdlz_find(dns_db_t *db, const dns_name_t *name, dns_dbversion_t *version,
dns_rdatatype_t type, unsigned int options, isc_stdtime_t now,
- dns_dbnode_t **nodep ISC_ATTR_UNUSED, dns_name_t *foundname,
- dns_clientinfomethods_t *methods, dns_clientinfo_t *clientinfo,
- dns_rdataset_t *rdataset,
+ dns_name_t *foundname, dns_clientinfomethods_t *methods,
+ dns_clientinfo_t *clientinfo, dns_rdataset_t *rdataset,
dns_rdataset_t *sigrdataset DNS__DB_FLARG) {
dns_sdlz_db_t *sdlz = (dns_sdlz_db_t *)db;
dns_dbnode_t *node = NULL;