mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-14 08:01:38 +01:00
add bqRemoveAll
This commit is contained in:
parent
ffacbcb36a
commit
250e223a20
2 changed files with 7 additions and 0 deletions
|
@ -120,6 +120,12 @@ bqRemoveOne( BufQueue* bq )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
bqRemoveAll( BufQueue* bq )
|
||||||
|
{
|
||||||
|
bq->head = bq->tail = 0;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef CPLUS
|
#ifdef CPLUS
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -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 bqAdd( BufQueue* bq, const XP_U8* buf, XP_U16 len );
|
||||||
XP_Bool bqGet( 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 bqRemoveOne( BufQueue* bq );
|
||||||
|
void bqRemoveAll( BufQueue* bq );
|
||||||
|
|
||||||
#ifdef CPLUS
|
#ifdef CPLUS
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue