From 50dc380f2385988047821fe15c5616f44019250f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 12 Apr 2008 04:12:47 +0000 Subject: added outputBufferEmpty() Another "don't use OutputBuffer internals" patch. This ignores the copied "end" value, but I do not think that has ever been a real issue. git-svn-id: https://svn.musicpd.org/mpd/trunk@7263 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/outputBuffer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/outputBuffer.h') diff --git a/src/outputBuffer.h b/src/outputBuffer.h index 06ec60d19..252a0a905 100644 --- a/src/outputBuffer.h +++ b/src/outputBuffer.h @@ -55,6 +55,9 @@ void clearOutputBuffer(OutputBuffer * cb); void flushOutputBuffer(OutputBuffer * cb); +/** is the buffer empty? */ +int outputBufferEmpty(const OutputBuffer * cb); + /** determine the number of decoded chunks */ unsigned availableOutputBuffer(const OutputBuffer * cb); -- cgit v1.2.3