Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
BIND
Commits
48481c9b
Commit
48481c9b
authored
Apr 20, 1999
by
Bob Halley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add dns_db_class()
parent
acab2c80
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
lib/dns/db.c
lib/dns/db.c
+11
-0
lib/dns/include/dns/db.h
lib/dns/include/dns/db.h
+14
-0
No files found.
lib/dns/db.c
View file @
48481c9b
...
...
@@ -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
)
{
/*
...
...
lib/dns/include/dns/db.h
View file @
48481c9b
...
...
@@ -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
);
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment