diff options
Diffstat (limited to 'src/libknot/zone/zone-contents.h')
-rw-r--r-- | src/libknot/zone/zone-contents.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/libknot/zone/zone-contents.h b/src/libknot/zone/zone-contents.h index 19ba512..ab33d5f 100644 --- a/src/libknot/zone/zone-contents.h +++ b/src/libknot/zone/zone-contents.h @@ -110,7 +110,7 @@ uint16_t knot_zone_contents_class(const knot_zone_contents_t *contents); * * \retval KNOT_EOK * \retval KNOT_EINVAL - * \retval KNOT_EBADZONE + * \retval KNOT_EOUTOFZONE * \retval KNOT_EHASH */ int knot_zone_contents_add_node(knot_zone_contents_t *contents, @@ -118,6 +118,18 @@ int knot_zone_contents_add_node(knot_zone_contents_t *contents, uint8_t flags); /*! + * \brief Create new node in the zone contents for given RRSet. + * + * \param contents Zone to add the node into. + * \param rr Given RRSet. + * \param node Returns created node. + * \return + */ +int knot_zone_contents_create_node(knot_zone_contents_t *contents, + const knot_rrset_t *rr, + knot_node_t **node); + +/*! * \brief Adds a RRSet to the given zone. * * Checks if the RRSet belongs to the zone, i.e. if its owner is a subdomain of @@ -137,7 +149,7 @@ int knot_zone_contents_add_node(knot_zone_contents_t *contents, * * \retval KNOT_EOK * \retval KNOT_EINVAL - * \retval KNOT_EBADZONE + * \retval KNOT_EOUTOFZONE */ int knot_zone_contents_add_rrset(knot_zone_contents_t *contents, knot_rrset_t *rrset, @@ -162,7 +174,7 @@ int knot_zone_contents_add_rrsigs(knot_zone_contents_t *contents, * * \retval KNOT_EOK * \retval KNOT_EINVAL - * \retval KNOT_EBADZONE + * \retval KNOT_EOUTOFZONE */ int knot_zone_contents_add_nsec3_node(knot_zone_contents_t *contents, knot_node_t *node, int create_parents, @@ -229,7 +241,7 @@ const knot_node_t *knot_zone_contents_find_node( * \retval KNOT_ZONE_NAME_FOUND if node with owner \a name was found. * \retval KNOT_ZONE_NAME_NOT_FOUND if it was not found. * \retval KNOT_EINVAL - * \retval KNOT_EBADZONE + * \retval KNOT_EOUTOFZONE */ int knot_zone_contents_find_dname(const knot_zone_contents_t *contents, const knot_dname_t *name, |