Skip to content
Snippets Groups Projects
Commit 0d3ecc6a authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Added node_is_auth()

parent aa09b665
No related branches found
No related tags found
No related merge requests found
......@@ -292,6 +292,13 @@ int dnslib_node_is_non_auth(const dnslib_node_t *node)
/*----------------------------------------------------------------------------*/
int dnslib_node_is_auth(const dnslib_node_t *node)
{
return (node->flags == 0);
}
/*----------------------------------------------------------------------------*/
void dnslib_node_free_rrsets(dnslib_node_t *node, int free_rdata_dnames)
{
const skip_node_t *skip_node =
......
......@@ -263,6 +263,8 @@ void dnslib_node_set_non_auth(dnslib_node_t *node);
*/
int dnslib_node_is_non_auth(const dnslib_node_t *node);
int dnslib_node_is_auth(const dnslib_node_t *node);
/*!
* \brief Destroys the RRSets within the node structure.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment