aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-06 22:16:56 +0100
committerMax Kellermann <max@duempel.org>2014-01-06 22:16:56 +0100
commit4c95a4d7c67cb161fe42f8cd3a62c90208b515cc (patch)
tree3bfec9547a35669e79ccd0470a0a8595697e9c7e /src
parenteac9fabd4835cfde118ed402154952810450018c (diff)
downloadmpd-4c95a4d7c67cb161fe42f8cd3a62c90208b515cc.tar.gz
mpd-4c95a4d7c67cb161fe42f8cd3a62c90208b515cc.tar.xz
mpd-4c95a4d7c67cb161fe42f8cd3a62c90208b515cc.zip
DecoderBuffer: add "pure" attributes
Diffstat (limited to '')
-rw-r--r--src/DecoderBuffer.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DecoderBuffer.hxx b/src/DecoderBuffer.hxx
index 70cf63faa..d09416b06 100644
--- a/src/DecoderBuffer.hxx
+++ b/src/DecoderBuffer.hxx
@@ -20,6 +20,8 @@
#ifndef MPD_DECODER_BUFFER_HXX
#define MPD_DECODER_BUFFER_HXX
+#include "Compiler.h"
+
#include <stddef.h>
/**
@@ -50,9 +52,11 @@ decoder_buffer_new(Decoder *decoder, InputStream &is,
void
decoder_buffer_free(DecoderBuffer *buffer);
+gcc_pure
bool
decoder_buffer_is_empty(const DecoderBuffer *buffer);
+gcc_pure
bool
decoder_buffer_is_full(const DecoderBuffer *buffer);