Data Structures | |
struct | EnetQ_Node |
A generic node structure for a single link list. More... | |
struct | EnetQ |
Generic queue. More... | |
Functions | |
void | EnetQueue_initQ (EnetQ *queue) |
Init queue. More... | |
void | EnetQueue_copyQ (EnetQ *dstQueue, const EnetQ *srcQueue) |
Copy queues. More... | |
void | EnetQueue_enq (EnetQ *queue, EnetQ_Node *node) |
Enqueue a packet into the queue. More... | |
void | EnetQueue_enqHead (EnetQ *queue, EnetQ_Node *node) |
Enqueue a packet at head into the queue. More... | |
EnetQ_Node * | EnetQueue_deq (EnetQ *queue) |
Dequeue a packet from the queue. More... | |
void | EnetQueue_append (EnetQ *dstQueue, EnetQ *srcQueue) |
Append queue. More... | |
uint32_t | EnetQueue_getQCount (EnetQ *queue) |
Get queue count. More... | |
void | EnetQueue_verifyQCount (EnetQ *queue) |
Checks queue corruption. More... | |
void EnetQueue_initQ | ( | EnetQ * | queue | ) |
Init queue.
Initializes a queue.
queue | Queue pointer |
Copy queues.
Copies queues. The copied queue will have the same head/tail pointers and count as the source queue.
dstQueue | Destination queue pointer |
srcQueue | Source queue pointer |
void EnetQueue_enq | ( | EnetQ * | queue, |
EnetQ_Node * | node | ||
) |
Enqueue a packet into the queue.
Enqueues a packet into the queue.
queue | Queue pointer |
node | Queue node pointer |
void EnetQueue_enqHead | ( | EnetQ * | queue, |
EnetQ_Node * | node | ||
) |
Enqueue a packet at head into the queue.
Enqueues a packet into head of queue.
queue | Queue pointer |
node | Queue node pointer |
EnetQ_Node* EnetQueue_deq | ( | EnetQ * | queue | ) |
Dequeue a packet from the queue.
Dequeues a packet from the queue. A null pointer is returned if the queue was already empty.
queue | Queue pointer |
Append queue.
Appends a packet queue into another queue. The packets in the source queue are queued to the tail of the destination queue.
dstQueue | Destination queue node pointer |
srcQueue | Source queue pointer |
uint32_t EnetQueue_getQCount | ( | EnetQ * | queue | ) |
Get queue count.
Gets the number of packets in the queue.
queue | Queue pointer |
void EnetQueue_verifyQCount | ( | EnetQ * | queue | ) |
Checks queue corruption.
Debug API which verifies the queue memory corruption by checking queue count to actual elements in queue. Asserts if queue count doesn't match.
queue | Queue pointer |