diff options
author | Ondřej Surý <ondrej@sury.org> | 2013-07-29 17:14:20 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2013-07-29 17:14:20 +0200 |
commit | adbc92de0cd2832e84dc5d684c31d5a25bf13b5d (patch) | |
tree | df03690388d4c9acb870a9ce02e9592c827e378f /src/libknot/zone/zone-contents.h | |
parent | 93f582ba0ad3d1f69b796b70660ccfd1530303f1 (diff) | |
download | knot-upstream/1.3.0_rc5.tar.gz |
New upstream version 1.3.0~rc5upstream/1.3.0_rc5
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, |