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

Added function for non-const getting of next RDATA

parent 17b5780a
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,18 @@ dnslib_rdata_t *dnslib_rrset_get_rdata(dnslib_rrset_t *rrset)
/*----------------------------------------------------------------------------*/
dnslib_rdata_t *dnslib_rrset_rdata_get_next(dnslib_rrset_t *rrset,
dnslib_rdata_t *rdata)
{
if (rdata->next == rrset->rdata) {
return NULL;
} else {
return rdata->next;
}
}
/*----------------------------------------------------------------------------*/
const dnslib_rrset_t *dnslib_rrset_rrsigs(const dnslib_rrset_t *rrset)
{
if (rrset == NULL) {
......
......@@ -165,6 +165,9 @@ const dnslib_rdata_t *dnslib_rrset_rdata_next(const dnslib_rrset_t *rrset,
*/
dnslib_rdata_t *dnslib_rrset_get_rdata(dnslib_rrset_t *rrset);
dnslib_rdata_t *dnslib_rrset_rdata_get_next(dnslib_rrset_t *rrset,
dnslib_rdata_t *rdata);
/*!
* \brief Returns the set of RRSIGs covering the given RRSet.
*
......
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