diff options
author | Max Kellermann <max@duempel.org> | 2008-04-12 04:12:47 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-04-12 04:12:47 +0000 |
commit | 50dc380f2385988047821fe15c5616f44019250f (patch) | |
tree | 347d7d3123252984493691f03ccec41419b48eb8 /src/outputBuffer.c | |
parent | e626028b41a957d969b93f2d3cb39813eebaac2b (diff) | |
download | mpd-50dc380f2385988047821fe15c5616f44019250f.tar.gz mpd-50dc380f2385988047821fe15c5616f44019250f.tar.xz mpd-50dc380f2385988047821fe15c5616f44019250f.zip |
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
Diffstat (limited to '')
-rw-r--r-- | src/outputBuffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c index b5fddd98d..f6fb38937 100644 --- a/src/outputBuffer.c +++ b/src/outputBuffer.c @@ -57,6 +57,11 @@ void flushOutputBuffer(OutputBuffer * cb) } } +int outputBufferEmpty(const OutputBuffer * cb) +{ + return cb->begin == cb->end; +} + unsigned availableOutputBuffer(const OutputBuffer * cb) { if (cb->end >= cb->begin) |