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

snapshot: dns_adb_done() partial implementation, handles mostly work, but

no fetches are started yet.
This commit is contained in:
Michael Graff
1999-10-14 00:50:00 +00:00
parent f182ffaba7
commit 6d14fe95e9
4 changed files with 148 additions and 115 deletions

View File

@@ -70,6 +70,7 @@ main(int argc, char **argv)
unsigned char namestorage2[512];
dns_view_t *view;
dns_adb_t *adb;
dns_adbhandle_t *handle;
(void)argc;
(void)argv;
@@ -163,6 +164,18 @@ main(int argc, char **argv)
dns_adb_dump(adb, stderr);
/*
* Try to look up a name or two.
*/
handle = NULL;
result = dns_adb_lookup(adb, NULL, NULL, NULL,
&name1, &name1, &handle);
check_result(result, "dns_adb_lookup name1");
check_result(handle->result, "handle->result");
/*
* delete the names, and kill the adb
*/
result = dns_adb_deletename(adb, &name1);
check_result(result, "dns_adb_deletename name1");
result = dns_adb_deletename(adb, &name2);
@@ -170,6 +183,8 @@ main(int argc, char **argv)
dns_adb_dump(adb, stderr);
dns_adb_done(adb, &handle);
isc_mem_stats(mctx, stdout);
dns_adb_destroy(&adb);