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

Added function for getting zone name.

parent 6971d36b
No related branches found
No related tags found
No related merge requests found
......@@ -63,11 +63,10 @@ knot_zone_t *knot_zone_new_empty(knot_dname_t *name)
/*----------------------------------------------------------------------------*/
knot_zone_t *knot_zone_new(knot_node_t *apex, uint node_count,
int use_domain_table)
{
knot_zone_t * zone = knot_zone_new_empty(
knot_zone_t *zone = knot_zone_new_empty(
knot_dname_deep_copy(knot_node_owner(apex)));
if (zone == NULL) {
return NULL;
......@@ -163,6 +162,13 @@ void knot_zone_set_data(knot_zone_t *zone, void *data)
/*----------------------------------------------------------------------------*/
const knot_dname_t *knot_zone_name(const knot_zone_t *zone)
{
return zone->name;
}
/*----------------------------------------------------------------------------*/
knot_zone_contents_t *knot_zone_switch_contents(knot_zone_t *zone,
knot_zone_contents_t *new_contents)
{
......
......@@ -126,6 +126,8 @@ const void *knot_zone_data(const knot_zone_t *zone);
void knot_zone_set_data(knot_zone_t *zone, void *data);
const knot_dname_t *knot_zone_name(const knot_zone_t *zone);
knot_zone_contents_t *knot_zone_switch_contents(knot_zone_t *zone,
knot_zone_contents_t *new_contents);
......
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