Update header guards openqueue.h
-#ifndef __OPENQUEUE_H
-#define __OPENQUEUE_H
+#ifndef OPENWSN_OPENQUEUE_H
+#define OPENWSN_OPENQUEUE_H
/**
\addtogroup cross-layers
@@ -42,7 +42,9 @@ typedef struct {
// admin
void openqueue_init(void);
+
bool debugPrint_queue(void);
+
// called by any component
OpenQueueEntry_t* openqueue_getFreePacketBuffer(uint8_t creator);
@@ -51,24 +53,36 @@ OpenQueueEntry_t* openqueue_getFreeBigPacketBuffer(uint8_t creator);
#endif
owerror_t openqueue_freePacketBuffer(OpenQueueEntry_t *pkt);
+
void openqueue_removeAllCreatedBy(uint8_t creator);
+
bool openqueue_isHighPriorityEntryEnough(void);
+
// called by ICMPv6
void openqueue_updateNextHopPayload(open_addr_t *newNextHop);
+
// called by res
OpenQueueEntry_t* openqueue_sixtopGetSentPacket(void);
+
OpenQueueEntry_t* openqueue_sixtopGetReceivedPacket(void);
+
uint8_t openqueue_getNum6PResp(void);
+
uint8_t openqueue_getNum6PReq(open_addr_t *neighbor);
+
void openqueue_remove6PrequestToNeighbor(open_addr_t *neighbor);
+
// called by IEEE80215E
OpenQueueEntry_t* openqueue_macGetEBPacket(void);
+
OpenQueueEntry_t* openqueue_macGetKaPacket(open_addr_t *toNeighbor);
+
OpenQueueEntry_t* openqueue_macGetDIOPacket(void);
+
OpenQueueEntry_t* openqueue_macGetUnicastPakcet(open_addr_t *toNeighbor);
/**
\}
\}
*/
-#endif
+#endif /* OPENWSN_OPENQUEUE_H */
