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 68 #define QUEUEBUF_NUM 8 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 96 void queuebuf_init(
void);
99 struct queuebuf *queuebuf_new_from_packetbuf_debug(
const char *file,
int line);
100 #define queuebuf_new_from_packetbuf() queuebuf_new_from_packetbuf_debug(__FILE__, __LINE__) 102 struct queuebuf *queuebuf_new_from_packetbuf(
void);
104 void queuebuf_update_attr_from_packetbuf(
struct queuebuf *b);
105 void queuebuf_update_from_packetbuf(
struct queuebuf *b);
107 void queuebuf_to_packetbuf(
struct queuebuf *b);
108 void queuebuf_free(
struct queuebuf *b);
110 void *queuebuf_dataptr(
struct queuebuf *b);
111 int queuebuf_datalen(
struct queuebuf *b);
113 linkaddr_t *queuebuf_addr(
struct queuebuf *b, uint8_t type);
114 packetbuf_attr_t queuebuf_attr(
struct queuebuf *b, uint8_t type);
116 void queuebuf_debug_print(
void);
118 int queuebuf_numfree(
void);
Header file for the Packet buffer (packetbuf) management