Added function for obtaining packet queue length
This commit is contained in:
parent
8fe15f7b45
commit
f95a6cce85
2 changed files with 19 additions and 2 deletions
|
@ -32,7 +32,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: packetqueue.c,v 1.1 2009/04/29 20:47:30 adamdunkels Exp $
|
||||
* $Id: packetqueue.c,v 1.2 2010/02/28 09:20:32 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -123,6 +123,12 @@ packetqueue_dequeue(struct packetqueue *q)
|
|||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int
|
||||
packetqueue_len(struct packetqueue *q)
|
||||
{
|
||||
return list_length(*q->list);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
struct queuebuf *
|
||||
packetqueue_queuebuf(struct packetqueue_item *i)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue