Skip to content
Snippets Groups Projects
Commit 423f77b5 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

libknot/pkt: make knot_rrset_to_wire static inline again

parent dcc57613
No related branches found
No related tags found
No related merge requests found
Pipeline #39098 passed with warnings
......@@ -509,13 +509,6 @@ int knot_rrset_to_wire_extra(const knot_rrset_t *rrset, uint8_t *wire,
return write - wire;
}
_public_
int knot_rrset_to_wire(const knot_rrset_t *rrset, uint8_t *wire,
uint16_t max_size, knot_compr_t *compr)
{
return knot_rrset_to_wire_extra(rrset, wire, max_size, 0, compr, 0);
}
_public_
int knot_rrset_to_wire_rotate(const knot_rrset_t *rrset, uint8_t *wire,
uint16_t max_size, uint16_t rotate,
......
......@@ -48,10 +48,12 @@ int knot_rrset_to_wire_rotate(const knot_rrset_t *rrset, uint8_t *wire,
uint16_t max_size, uint16_t rotate,
knot_compr_t *compr);
/* TODO: change to static inline in next major version. */
/*! \brief Same as knot_rrset_to_wire_extra but without rrset rotation and flags. */
int knot_rrset_to_wire(const knot_rrset_t *rrset, uint8_t *wire,
uint16_t max_size, knot_compr_t *compr);
static inline int knot_rrset_to_wire(const knot_rrset_t *rrset, uint8_t *wire,
uint16_t max_size, knot_compr_t *compr)
{
return knot_rrset_to_wire_extra(rrset, wire, max_size, 0, compr, 0);
}
/*!
* \brief Creates one RR from wire, stores it into \a 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