mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-03 22:08:25 -04:00
add dns_db_class()
This commit is contained in:
parent
acab2c8094
commit
48481c9b6e
2 changed files with 25 additions and 0 deletions
11
lib/dns/db.c
11
lib/dns/db.c
|
|
@ -158,6 +158,17 @@ dns_db_origin(dns_db_t *db) {
|
|||
return (&db->origin);
|
||||
}
|
||||
|
||||
dns_rdataclass_t
|
||||
dns_db_class(dns_db_t *db) {
|
||||
/*
|
||||
* The class of the database.
|
||||
*/
|
||||
|
||||
REQUIRE(DNS_DB_VALID(db));
|
||||
|
||||
return (db->rdclass);
|
||||
}
|
||||
|
||||
dns_result_t
|
||||
dns_db_load(dns_db_t *db, char *filename) {
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -283,6 +283,20 @@ dns_db_origin(dns_db_t *db);
|
|||
* The origin of the database.
|
||||
*/
|
||||
|
||||
dns_rdataclass_t
|
||||
dns_db_class(dns_db_t *db);
|
||||
/*
|
||||
* The class of the database.
|
||||
*
|
||||
* Requires:
|
||||
*
|
||||
* 'db' is a valid database.
|
||||
*
|
||||
* Returns:
|
||||
*
|
||||
* The class of the database.
|
||||
*/
|
||||
|
||||
dns_result_t
|
||||
dns_db_load(dns_db_t *db, char *filename);
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue