Commit cb6fff74 authored by smorlat's avatar smorlat

add ms_bufferizer_flush()

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@752 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 5058e0dd
......@@ -103,6 +103,9 @@ static inline int ms_bufferizer_get_avail(MSBufferizer *obj){
return obj->size;
}
/* purge all data pending in the bufferizer */
void ms_bufferizer_flush(MSBufferizer *obj);
void ms_bufferizer_uninit(MSBufferizer *obj);
void ms_bufferizer_destroy(MSBufferizer *obj);
......
......@@ -102,6 +102,10 @@ int ms_bufferizer_read(MSBufferizer *obj, uint8_t *data, int datalen){
return 0;
}
void ms_bufferizer_flush(MSBufferizer *obj){
flushq(&obj->q,0);
}
void ms_bufferizer_uninit(MSBufferizer *obj){
flushq(&obj->q,0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment