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

API for getting dname ID

parent f8ca637a
No related branches found
No related tags found
No related merge requests found
......@@ -604,6 +604,13 @@ uint dnslib_dname_size(const dnslib_dname_t *dname)
/*----------------------------------------------------------------------------*/
unsigned int dnslib_dname_id(const dnslib_dname_t *dname)
{
return dname->id;
}
/*----------------------------------------------------------------------------*/
uint8_t dnslib_dname_size_part(const dnslib_dname_t *dname, int labels)
{
assert(labels < dname->label_count);
......
......@@ -162,6 +162,8 @@ const uint8_t *dnslib_dname_name(const dnslib_dname_t *dname);
*/
unsigned int dnslib_dname_size(const dnslib_dname_t *dname);
unsigned int dnslib_dname_id(const dnslib_dname_t *dname);
/*!
* \brief Returns size of a part of domain name.
*
......
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