aboutsummaryrefslogtreecommitdiffstats
path: root/src/Volume.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-25 00:15:55 +0200
committerMax Kellermann <max@duempel.org>2013-10-25 00:15:55 +0200
commitc1ba47beee9c084e2a592e54dcda3f470e26ec47 (patch)
tree510b67b6dd3420037d3872387e55695975439fde /src/Volume.hxx
parentac8e5be9f4342ec6b746dfb12d21700d7409a07d (diff)
downloadmpd-c1ba47beee9c084e2a592e54dcda3f470e26ec47.tar.gz
mpd-c1ba47beee9c084e2a592e54dcda3f470e26ec47.tar.xz
mpd-c1ba47beee9c084e2a592e54dcda3f470e26ec47.zip
MixerAll, Volume: add "pure" attributes
Diffstat (limited to 'src/Volume.hxx')
-rw-r--r--src/Volume.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Volume.hxx b/src/Volume.hxx
index 024b2840a..6b937aca3 100644
--- a/src/Volume.hxx
+++ b/src/Volume.hxx
@@ -20,12 +20,15 @@
#ifndef MPD_VOLUME_HXX
#define MPD_VOLUME_HXX
+#include "Compiler.h"
+
#include <stdio.h>
void volume_init(void);
void volume_finish(void);
+gcc_pure
int volume_level_get(void);
bool volume_level_change(unsigned volume);
@@ -41,6 +44,7 @@ void save_sw_volume_state(FILE *fp);
* determine whether the state has changed and the state file should
* be saved.
*/
+gcc_pure
unsigned
sw_volume_state_get_hash(void);