add bqRemoveAll

This commit is contained in:
ehouse 2009-09-19 21:28:07 +00:00
parent ffacbcb36a
commit 250e223a20
2 changed files with 7 additions and 0 deletions

View file

@ -120,6 +120,12 @@ bqRemoveOne( BufQueue* bq )
}
}
void
bqRemoveAll( BufQueue* bq )
{
bq->head = bq->tail = 0;
}
#ifdef CPLUS
}
#endif

View file

@ -37,6 +37,7 @@ void bqInit( BufQueue* bq, XP_U8* buf, XP_U16 buflen );
XP_Bool bqAdd( BufQueue* bq, const XP_U8* buf, XP_U16 len );
XP_Bool bqGet( BufQueue* bq, const XP_U8** buf, XP_U16* len );
void bqRemoveOne( BufQueue* bq );
void bqRemoveAll( BufQueue* bq );
#ifdef CPLUS
}