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

[master] unify internal and export libraries

3550.	[func]		Unified the internal and export versions of the
			BIND libraries, allowing external clients to use
			the same libraries as BIND. [RT #33131]
This commit is contained in:
Evan Hunt
2013-04-10 13:49:57 -07:00
parent cc444c73d5
commit b99bfa184b
89 changed files with 2023 additions and 3503 deletions

View File

@@ -509,7 +509,6 @@ dns_cache_setfilename(dns_cache_t *cache, const char *filename) {
return (ISC_R_SUCCESS);
}
#ifdef BIND9
isc_result_t
dns_cache_load(dns_cache_t *cache) {
isc_result_t result;
@@ -525,28 +524,21 @@ dns_cache_load(dns_cache_t *cache) {
return (result);
}
#endif /* BIND9 */
isc_result_t
dns_cache_dump(dns_cache_t *cache) {
#ifdef BIND9
isc_result_t result;
#endif
REQUIRE(VALID_CACHE(cache));
if (cache->filename == NULL)
return (ISC_R_SUCCESS);
#ifdef BIND9
LOCK(&cache->filelock);
result = dns_master_dump(cache->mctx, cache->db, NULL,
&dns_master_style_cache, cache->filename);
UNLOCK(&cache->filelock);
return (result);
#else
return (ISC_R_NOTIMPLEMENTED);
#endif
}