Commit 8259b7b1 authored by Bob Halley's avatar Bob Halley

API simplification

parent 95f78a20
...@@ -49,17 +49,18 @@ dns_dbtable_destroy(dns_dbtable_t **dbtablep); ...@@ -49,17 +49,18 @@ dns_dbtable_destroy(dns_dbtable_t **dbtablep);
*/ */
dns_result_t dns_result_t
dns_dbtable_add(dns_dbtable_t *dbtable, dns_name_t *name, dns_db_t *db); dns_dbtable_add(dns_dbtable_t *dbtable, dns_db_t *db);
/* /*
* Associate 'name' and 'db' in the dbtable. * Add 'db' to 'dbtable'.
*/ */
void void
dns_dbtable_remove(dns_dbtable_t *dbtable, dns_name_t *name, dns_db_t *db); dns_dbtable_remove(dns_dbtable_t *dbtable, dns_db_t *db);
/* /*
* Dissociate 'name' and 'db' in the dbtable. * Remove 'db' from 'dbtable'.
* *
* Requires: they are already associated * Requires:
* 'db' was previously added to 'dbtable'.
*/ */
void void
...@@ -77,10 +78,9 @@ dns_dbtable_getdefault(dns_dbtable_t *dbtable, dns_db_t **db); ...@@ -77,10 +78,9 @@ dns_dbtable_getdefault(dns_dbtable_t *dbtable, dns_db_t **db);
*/ */
void void
dns_dbtable_removedefault(dns_dbtable_t *dbtable, dns_db_t *db); dns_dbtable_removedefault(dns_dbtable_t *dbtable);
/* /*
* Stop using 'db' as the result of a dns_dbtable_find() if no better match is * Remove the default db from 'dbtable'.
* available.
*/ */
dns_result_t dns_result_t
......
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