gnrc_pktsnip_t queue More...

Detailed Description

gnrc_pktsnip_t queue

Files

file  pktqueue.h
 Packet queue definitions.
 

Data Structures

struct  gnrc_pktqueue
 data type for packet queue nodes More...
 

Typedefs

typedef struct gnrc_pktqueue gnrc_pktqueue_t
 data type for packet queue nodes
 

Functions

static void gnrc_pktqueue_add (gnrc_pktqueue_t **queue, gnrc_pktqueue_t *node)
 add node into queue. More...
 
static gnrc_pktqueue_tgnrc_pktqueue_remove (gnrc_pktqueue_t **queue, gnrc_pktqueue_t *node)
 remove node from queue More...
 
static gnrc_pktqueue_tgnrc_pktqueue_remove_head (gnrc_pktqueue_t **queue)
 remove the packet queue's head More...
 

Function Documentation

◆ gnrc_pktqueue_add()

static void gnrc_pktqueue_add ( gnrc_pktqueue_t **  queue,
gnrc_pktqueue_t node 
)
inlinestatic

add node into queue.

Parameters
[in,out]queuethe queue. Must not be NULL
[in]nodethe node to add.

Definition at line 48 of file pktqueue.h.

◆ gnrc_pktqueue_remove()

static gnrc_pktqueue_t* gnrc_pktqueue_remove ( gnrc_pktqueue_t **  queue,
gnrc_pktqueue_t node 
)
inlinestatic

remove node from queue

Parameters
[in]queuethe queue. Must not be NULL
[in]nodethe node to remove
Returns
node.

Definition at line 61 of file pktqueue.h.

◆ gnrc_pktqueue_remove_head()

static gnrc_pktqueue_t* gnrc_pktqueue_remove_head ( gnrc_pktqueue_t **  queue)
inlinestatic

remove the packet queue's head

Parameters
[in]queuethe queue. Must not be NULL
Returns
the old head

Definition at line 78 of file pktqueue.h.