net: zoap: Remove unused helper function
Commit "net: zoap: Fix memory overflow issue" fixed and implemented ./well-known/core response in a different way, so this api is not needed anymore. Change-Id: I8f945fb5842028be50ecfdef95cbe5da3189a538 Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
This commit is contained in:
parent
79ff5ed5fa
commit
a8ac7af37a
2 changed files with 0 additions and 23 deletions
|
@ -494,16 +494,6 @@ bool zoap_request_is_observe(const struct zoap_packet *request);
|
|||
*/
|
||||
uint8_t *zoap_packet_get_payload(struct zoap_packet *pkt, uint16_t *len);
|
||||
|
||||
/**
|
||||
* @brief Returns the internal buffer of the CoAP packet, appending
|
||||
* the COAP_MARKER to the buffer if necessary.
|
||||
*
|
||||
* @param pkt Packet to get (or insert) the payload
|
||||
*
|
||||
* @return pointer to the net_buf storing the payload.
|
||||
*/
|
||||
struct net_buf *zoap_packet_get_buf(struct zoap_packet *pkt);
|
||||
|
||||
/**
|
||||
* @brief Sets how much space was used by the payload.
|
||||
*
|
||||
|
|
|
@ -834,19 +834,6 @@ int zoap_packet_set_used(struct zoap_packet *pkt, uint16_t len)
|
|||
return 0;
|
||||
}
|
||||
|
||||
struct net_buf *zoap_packet_get_buf(struct zoap_packet *pkt)
|
||||
{
|
||||
uint8_t *str;
|
||||
|
||||
if (!pkt->start) {
|
||||
str = net_buf_add(pkt->buf->frags, 1);
|
||||
*str = COAP_MARKER;
|
||||
pkt->start = str + 1;
|
||||
}
|
||||
|
||||
return pkt->buf->frags;
|
||||
}
|
||||
|
||||
int zoap_add_option(struct zoap_packet *pkt, uint16_t code,
|
||||
const void *value, uint16_t len)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue