]> git.ipfire.org Git - thirdparty/bind9.git/commit
simplify dns_sdb API
authorEvan Hunt <each@isc.org>
Fri, 17 Feb 2023 20:04:32 +0000 (12:04 -0800)
committerEvan Hunt <each@isc.org>
Tue, 21 Feb 2023 18:13:10 +0000 (10:13 -0800)
commit8da43bb7f5dffae56bb0f96deb68fd9a08ce2f57
treeb200543c73e804f32db3f1f4b01d8dbb7ef860e8
parentffa4757c792579e3bc8316df6ce4f47093e0bde3
simplify dns_sdb API

SDB is currently (and foreseeably) only used by the named
builtin databases, so it only needs as much of its API as
those databases use.

- removed three flags defined for the SDB API that were always
  set the same by builtin databases.

- there were two different types of lookup functions defined for
  SDB, using slightly different function signatures. since backward
  compatibility is no longer a concern, we can eliminate the 'lookup'
  entry point and rename 'lookup2' to 'lookup'.

- removed the 'allnodes' entry point and all database iterator
  implementation code

- removed dns_sdb_putnamedrr() and dns_sdb_putnamedrdata() since
  they were never used.
bin/named/builtin.c
lib/dns/db.c
lib/dns/include/dns/sdb.h
lib/dns/sdb.c