58#ifdef QUEUEBUF_CONF_ENABLED
59#define QUEUEBUF_ENABLED QUEUEBUF_CONF_ENABLED
61#define QUEUEBUF_ENABLED 1
65#ifdef QUEUEBUF_CONF_NUM
66#define QUEUEBUF_NUM QUEUEBUF_CONF_NUM
76#ifdef QUEUEBUFRAM_CONF_NUM
77 #if QUEUEBUFRAM_CONF_NUM>QUEUEBUF_NUM
78 #error "QUEUEBUFRAM_CONF_NUM cannot be greater than QUEUEBUF_NUM"
80 #define QUEUEBUFRAM_NUM QUEUEBUFRAM_CONF_NUM
81 #define WITH_SWAP (QUEUEBUFRAM_NUM < QUEUEBUF_NUM)
84 #define QUEUEBUFRAM_NUM QUEUEBUF_NUM
88#ifdef QUEUEBUF_CONF_DEBUG
89#define QUEUEBUF_DEBUG QUEUEBUF_CONF_DEBUG
91#define QUEUEBUF_DEBUG 0
96void queuebuf_init(
void);
99struct queuebuf *queuebuf_new_from_packetbuf_debug(
const char *file,
int line);
100#define queuebuf_new_from_packetbuf() queuebuf_new_from_packetbuf_debug(__FILE__, __LINE__)
102struct queuebuf *queuebuf_new_from_packetbuf(
void);
104void queuebuf_update_attr_from_packetbuf(
struct queuebuf *b);
105void queuebuf_update_from_packetbuf(
struct queuebuf *b);
107void queuebuf_to_packetbuf(
struct queuebuf *b);
108void queuebuf_free(
struct queuebuf *b);
110void *queuebuf_dataptr(
struct queuebuf *b);
111int queuebuf_datalen(
struct queuebuf *b);
113linkaddr_t *queuebuf_addr(
struct queuebuf *b, uint8_t type);
114packetbuf_attr_t queuebuf_attr(
struct queuebuf *b, uint8_t type);
116void queuebuf_debug_print(
void);
118int queuebuf_numfree(
void);
Header file for the Packet buffer (packetbuf) management.