Commit f8424fc7 authored by David Lawrence's avatar David Lawrence
Browse files

Fixed a couple of names for ISC coding conventions.

parent 59be3f4a
...@@ -46,10 +46,7 @@ typedef struct dns_rbt_node { ...@@ -46,10 +46,7 @@ typedef struct dns_rbt_node {
unsigned int name_length; unsigned int name_length;
} dns_rbtnode_t; } dns_rbtnode_t;
isc_result_t dns_rbt_create(isc_mem_t *mctx, dns_rbt_t **rbtp); dns_result_t dns_rbt_addname(dns_rbt_t *rbt, dns_name_t *name, void *data);
void dns_rbt_destroy(dns_rbt_t **rbtp);
/* /*
* Add 'name' to the tree of trees, associated with 'data'. * Add 'name' to the tree of trees, associated with 'data'.
* *
...@@ -72,8 +69,8 @@ void dns_rbt_destroy(dns_rbt_t **rbtp); ...@@ -72,8 +69,8 @@ void dns_rbt_destroy(dns_rbt_t **rbtp);
* Success * Success
* Resource Limit: Out of Memory * Resource Limit: Out of Memory
*/ */
isc_result_t dns_rbt_add_name(dns_rbt_t *rbt, dns_name_t *name, void *data);
dns_result_t dns_rbt_deletename(dns_rbt_t *rbt, dns_name_t *name);
/* /*
* Delete 'name' from the tree of trees. * Delete 'name' from the tree of trees.
* *
...@@ -93,8 +90,8 @@ isc_result_t dns_rbt_add_name(dns_rbt_t *rbt, dns_name_t *name, void *data); ...@@ -93,8 +90,8 @@ isc_result_t dns_rbt_add_name(dns_rbt_t *rbt, dns_name_t *name, void *data);
* Success * Success
* Bad Form: Not Found * Bad Form: Not Found
*/ */
isc_result_t dns_rbt_delete_name(dns_rbt_t *rbt, dns_name_t *name);
void dns_rbt_namefromnode(dns_rbtnode_t *node, dns_name_t *name);
/* /*
* Convert the sequence of labels stored at 'node' into a 'name'. * Convert the sequence of labels stored at 'node' into a 'name'.
* *
...@@ -104,8 +101,9 @@ isc_result_t dns_rbt_delete_name(dns_rbt_t *rbt, dns_name_t *name); ...@@ -104,8 +101,9 @@ isc_result_t dns_rbt_delete_name(dns_rbt_t *rbt, dns_name_t *name);
* will likely cause grief. * will likely cause grief.
* *
*/ */
void dns_rbt_namefromnode(dns_rbtnode_t *node, dns_name_t *name);
dns_rbtnode_t *dns_rbt_findnode(dns_rbt_t *rbt,
dns_name_t *name, dns_rbtnode_t **up);
/* /*
* Find the node for 'name'. * Find the node for 'name'.
* *
...@@ -119,9 +117,8 @@ void dns_rbt_namefromnode(dns_rbtnode_t *node, dns_name_t *name); ...@@ -119,9 +117,8 @@ void dns_rbt_namefromnode(dns_rbtnode_t *node, dns_name_t *name);
* It is _not_ required that the node associated with 'name' * It is _not_ required that the node associated with 'name'
* has a non-NULL data pointer. * has a non-NULL data pointer.
*/ */
dns_rbtnode_t *dns_rbt_find_node(dns_rbt_t *rbt,
dns_name_t *name, dns_rbtnode_t **up);
void *dns_rbt_findname(dns_rbt_t *rbt, dns_name_t *name);
/* /*
* Return the data pointer associated with 'name'. * Return the data pointer associated with 'name'.
* *
...@@ -129,9 +126,11 @@ dns_rbtnode_t *dns_rbt_find_node(dns_rbt_t *rbt, ...@@ -129,9 +126,11 @@ dns_rbtnode_t *dns_rbt_find_node(dns_rbt_t *rbt,
* Returns NULL if either the name could not be found, or * Returns NULL if either the name could not be found, or
* if the name is found but has a NULL data pointer. * if the name is found but has a NULL data pointer.
*/ */
void *dns_rbt_find_name(dns_rbt_t *rbt, dns_name_t *name);
void dns_rbt_indent(int depth); void dns_rbt_indent(int depth);
void dns_rbt_printnodename(dns_rbtnode_t *node); void dns_rbt_printnodename(dns_rbtnode_t *node);
void dns_rbt_printtree(dns_rbtnode_t *root, dns_rbtnode_t *parent, int depth); void dns_rbt_printtree(dns_rbtnode_t *root, dns_rbtnode_t *parent, int depth);
void dns_rbt_printall(dns_rbt_t *rbt); void dns_rbt_printall(dns_rbt_t *rbt);
dns_result_t dns_rbt_create(isc_mem_t *mctx, dns_rbt_t **rbtp);
void dns_rbt_destroy(dns_rbt_t **rbtp);
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