Commit 48481c9b authored by Bob Halley's avatar Bob Halley

add dns_db_class()

parent acab2c80
...@@ -158,6 +158,17 @@ dns_db_origin(dns_db_t *db) { ...@@ -158,6 +158,17 @@ dns_db_origin(dns_db_t *db) {
return (&db->origin); 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_result_t
dns_db_load(dns_db_t *db, char *filename) { dns_db_load(dns_db_t *db, char *filename) {
/* /*
......
...@@ -283,6 +283,20 @@ dns_db_origin(dns_db_t *db); ...@@ -283,6 +283,20 @@ dns_db_origin(dns_db_t *db);
* The origin of the database. * 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_result_t
dns_db_load(dns_db_t *db, char *filename); dns_db_load(dns_db_t *db, char *filename);
/* /*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment