54 #ifndef __QUEUEBUF_H__
55 #define __QUEUEBUF_H__
59 #ifdef QUEUEBUF_CONF_NUM
60 #define QUEUEBUF_NUM QUEUEBUF_CONF_NUM
62 #define QUEUEBUF_NUM 8
65 #ifdef QUEUEBUF_CONF_DEBUG
66 #define QUEUEBUF_DEBUG QUEUEBUF_CONF_DEBUG
68 #define QUEUEBUF_DEBUG 0
73 void queuebuf_init(
void);
76 struct queuebuf *queuebuf_new_from_packetbuf_debug(
const char *file,
int line);
77 #define queuebuf_new_from_packetbuf() queuebuf_new_from_packetbuf_debug(__FILE__, __LINE__)
79 struct queuebuf *queuebuf_new_from_packetbuf(
void);
81 void queuebuf_update_attr_from_packetbuf(
struct queuebuf *b);
83 void queuebuf_to_packetbuf(
struct queuebuf *b);
84 void queuebuf_free(
struct queuebuf *b);
86 void *queuebuf_dataptr(
struct queuebuf *b);
87 int queuebuf_datalen(
struct queuebuf *b);
89 rimeaddr_t *queuebuf_addr(
struct queuebuf *b, uint8_t type);
90 packetbuf_attr_t queuebuf_attr(
struct queuebuf *b, uint8_t type);
92 void queuebuf_debug_print(
void);