12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef ZEPHYR_INCLUDE_MGMT_BUF_H_
- #define ZEPHYR_INCLUDE_MGMT_BUF_H_
- #include <inttypes.h>
- #include "tinycbor/cbor.h"
- #include "tinycbor/cbor_buf_writer.h"
- struct net_buf;
- struct cbor_nb_reader {
- struct cbor_decoder_reader r;
- struct net_buf *nb;
- };
- struct cbor_nb_writer {
- struct cbor_encoder_writer enc;
- struct net_buf *nb;
- };
- struct net_buf *mcumgr_buf_alloc(void);
- void mcumgr_buf_free(struct net_buf *nb);
- void cbor_nb_writer_init(struct cbor_nb_writer *cnw,
- struct net_buf *nb);
- void cbor_nb_reader_init(struct cbor_nb_reader *cnr,
- struct net_buf *nb);
- #endif
|