aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputAll.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-27 09:38:47 +0200
committerMax Kellermann <max@duempel.org>2013-09-27 09:38:47 +0200
commit939003c1f1a8ed9f6e3fe677a63e1686fe35d929 (patch)
treebc9dec311336c7f4d1807789f080487cbad81d00 /src/OutputAll.hxx
parenta10f3a8aeca0993a1d0c69ebfde9dbacbd16888c (diff)
downloadmpd-939003c1f1a8ed9f6e3fe677a63e1686fe35d929.tar.gz
mpd-939003c1f1a8ed9f6e3fe677a63e1686fe35d929.tar.xz
mpd-939003c1f1a8ed9f6e3fe677a63e1686fe35d929.zip
OutputAll: add pure/const attributes
Diffstat (limited to 'src/OutputAll.hxx')
-rw-r--r--src/OutputAll.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/OutputAll.hxx b/src/OutputAll.hxx
index 55bda383b..a01109e56 100644
--- a/src/OutputAll.hxx
+++ b/src/OutputAll.hxx
@@ -27,6 +27,7 @@
#define OUTPUT_ALL_H
#include "replay_gain_info.h"
+#include "gcc.h"
struct AudioFormat;
class MusicBuffer;
@@ -51,11 +52,13 @@ audio_output_all_finish(void);
* Returns the total number of audio output devices, including those
* who are disabled right now.
*/
+gcc_const
unsigned int audio_output_count(void);
/**
* Returns the "i"th audio output device.
*/
+gcc_const
struct audio_output *
audio_output_get(unsigned i);
@@ -63,6 +66,7 @@ audio_output_get(unsigned i);
* Returns the audio output device with the specified name. Returns
* NULL if the name does not exist.
*/
+gcc_pure
struct audio_output *
audio_output_find(const char *name);
@@ -163,6 +167,7 @@ audio_output_all_song_border(void);
* chunk. A negative value is returned when no chunk has been
* finished yet.
*/
+gcc_pure
float
audio_output_all_get_elapsed_time(void);