db.c revision 1ccbfca64ae86ace521053773001cb995352f96f
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 1999 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * copyright notice and this permission notice appear in all copies.
e45d0508c3460db87afb1f743bc5210522721bb3Evan Hunt * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
e45d0508c3460db87afb1f743bc5210522721bb3Evan Hunt * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
e45d0508c3460db87afb1f743bc5210522721bb3Evan Hunt * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
e45d0508c3460db87afb1f743bc5210522721bb3Evan Hunt * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
aa7b16ec2a5dacda1d65b64e0f7af434d02cbba4Tinderbox User * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
e45d0508c3460db87afb1f743bc5210522721bb3Evan Hunt * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
e45d0508c3460db87afb1f743bc5210522721bb3Evan Hunt * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
aa7b16ec2a5dacda1d65b64e0f7af434d02cbba4Tinderbox Userdns_db_create(isc_mem_t *mctx, char *db_type, isc_boolean_t cache,
e45d0508c3460db87afb1f743bc5210522721bb3Evan Hunt /* find the create method for 'db_type', and call it. */
e45d0508c3460db87afb1f743bc5210522721bb3Evan Hunt /* Temporary minor hack... */
e45d0508c3460db87afb1f743bc5210522721bb3Evan Hunt return (dns_rbtdb_create(mctx, cache, class, argc, argv,
e45d0508c3460db87afb1f743bc5210522721bb3Evan Huntdns_db_attach(dns_db_t *source, dns_db_t **targetp) {
e45d0508c3460db87afb1f743bc5210522721bb3Evan Hunt * db will go away when there are no open versions, no direct external
aa7b16ec2a5dacda1d65b64e0f7af434d02cbba4Tinderbox User * references, and no in-use nodes (i.e. indirect external references).
rdataset));