packetqueue.h File Reference

Header file for the packetqueue module. More...

#include "lib/list.h"
#include "lib/memb.h"
#include "sys/ctimer.h"
#include "net/packetbuf.h"
#include "net/queuebuf.h"

Go to the source code of this file.

Data Structures

struct  packetqueue
 Representation of a packet queue. More...
struct  packetqueue_item
 Representation of an item in a packet queue. More...

Defines

#define PACKETQUEUE(name, size)
 Define a packet queue.

Functions

Packet queue functions.



void packetqueue_init (struct packetqueue *q)
 Initialize a packet queue.
int packetqueue_enqueue_packetbuf (struct packetqueue *q, clock_time_t lifetime, void *ptr)
 Enqueue a packetbuf on a packet queue.
struct packetqueue_itempacketqueue_first (struct packetqueue *q)
 Access the first item on the packet buffer.
void packetqueue_dequeue (struct packetqueue *q)
 Remove the first item on the packet buffer.
int packetqueue_len (struct packetqueue *q)
 Get the length of the packet queue.
Packet queue item functions



struct queuebuf * packetqueue_queuebuf (struct packetqueue_item *i)
 Access the queuebuf in a packet queue item.
void * packetqueue_ptr (struct packetqueue_item *i)
 Access the user-defined pointer in a packet queue item.

Detailed Description

Header file for the packetqueue module.

Author:
Adam Dunkels <adam@sics.se>

Definition in file packetqueue.h.


Generated on Mon Apr 11 14:23:46 2011 for Contiki 2.5 by  doxygen 1.6.1