mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
Merge pull request #13333 from miri64/gnrc_pktbuf/cleanup/replace
gnrc_pktbuf: deprecate gnrc_pktbuf_replace_snip()
This commit is contained in:
commit
4af8a79041
@ -203,13 +203,19 @@ gnrc_pktsnip_t *gnrc_pktbuf_remove_snip(gnrc_pktsnip_t *pkt, gnrc_pktsnip_t *sni
|
||||
/**
|
||||
* @brief Replace a snip from a packet and the packet buffer by another snip.
|
||||
*
|
||||
* @deprecated Function is not used by anyone (not even tested, see
|
||||
* https://github.com/RIOT-OS/RIOT/issues/5089). Will be removed
|
||||
* after 2020.10 release.
|
||||
*
|
||||
* @param[in] pkt A packet
|
||||
* @param[in] old snip currently in the packet
|
||||
* @param[in] add snip which will replace old
|
||||
*
|
||||
* @return The new reference to @p pkt
|
||||
*/
|
||||
gnrc_pktsnip_t *gnrc_pktbuf_replace_snip(gnrc_pktsnip_t *pkt, gnrc_pktsnip_t *old, gnrc_pktsnip_t *add);
|
||||
gnrc_pktsnip_t *gnrc_pktbuf_replace_snip(gnrc_pktsnip_t *pkt,
|
||||
gnrc_pktsnip_t *old,
|
||||
gnrc_pktsnip_t *add);
|
||||
|
||||
/**
|
||||
* @brief Reverses snip order of a packet in a write-protected manner.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user