Skip to content
Snippets Groups Projects
Commit d9fc4be5 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Merge remote branch 'origin/dnslib-new' into zoneparser

parents b2c68157 2ed0a397
No related branches found
No related tags found
No related merge requests found
......@@ -188,7 +188,7 @@ static void dnslib_zone_adjust_node_in_tree(dnslib_node_t *node, void *data)
/* API functions */
/*----------------------------------------------------------------------------*/
dnslib_zone_t *dnslib_zone_new(dnslib_node_t *apex)
dnslib_zone_t *dnslib_zone_new(dnslib_node_t *apex, uint node_count)
{
if (apex == NULL) {
return NULL;
......@@ -215,6 +215,8 @@ dnslib_zone_t *dnslib_zone_new(dnslib_node_t *apex)
return NULL;
}
zone->node_count = node_count;
TREE_INIT(zone->tree, dnslib_node_compare);
TREE_INIT(zone->nsec3_nodes, dnslib_node_compare);
......
......@@ -42,10 +42,11 @@ typedef struct dnslib_zone dnslib_zone_t;
* \brief Creates new DNS zone.
*
* \param apex Node representing the zone apex.
* \param node_count Number of authorative nodes in the zone.
*
* \return The initialized zone structure or NULL if an error occured.
*/
dnslib_zone_t *dnslib_zone_new(dnslib_node_t *apex);
dnslib_zone_t *dnslib_zone_new(dnslib_node_t *apex, uint node_count);
/*!
* \brief Adds a node to the given zone.
......
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