7#ifndef ZEPHYR_INCLUDE_MGMT_BUF_H_
8#define ZEPHYR_INCLUDE_MGMT_BUF_H_
11#include "tinycbor/cbor.h"
12#include "tinycbor/cbor_buf_writer.h"
16 struct cbor_decoder_reader
r;
21 struct cbor_encoder_writer
enc;
void cbor_nb_writer_init(struct cbor_nb_writer *cnw, struct net_buf *nb)
Initializes a CBOR writer with the specified net_buf.
void mcumgr_buf_free(struct net_buf *nb)
Frees an mcumgr net_buf.
struct net_buf * mcumgr_buf_alloc(void)
Allocates a net_buf for holding an mcumgr request or response.
void cbor_nb_reader_init(struct cbor_nb_reader *cnr, struct net_buf *nb)
Initializes a CBOR reader with the specified net_buf.
struct net_buf * nb
Definition: buf.h:17
struct cbor_decoder_reader r
Definition: buf.h:16
struct cbor_encoder_writer enc
Definition: buf.h:21
struct net_buf * nb
Definition: buf.h:22
Network buffer representation.
Definition: buf.h:919