aboutsummaryrefslogtreecommitdiffstats
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
parentac8e5be9f4342ec6b746dfb12d21700d7409a07d (diff)
downloadmpd-c1ba47beee9c084e2a592e54dcda3f470e26ec47.tar.gz
mpd-c1ba47beee9c084e2a592e54dcda3f470e26ec47.tar.xz
mpd-c1ba47beee9c084e2a592e54dcda3f470e26ec47.zip
MixerAll, Volume: add "pure" attributes
-rw-r--r--src/MixerAll.hxx4
-rw-r--r--src/Volume.hxx4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/MixerAll.hxx b/src/MixerAll.hxx
index 23350a843..fa7c89801 100644
--- a/src/MixerAll.hxx
+++ b/src/MixerAll.hxx
@@ -25,10 +25,13 @@
#ifndef MPD_MIXER_ALL_HXX
#define MPD_MIXER_ALL_HXX
+#include "Compiler.h"
+
/**
* Returns the average volume of all available mixers (range 0..100).
* Returns -1 if no mixer can be queried.
*/
+gcc_pure
int
mixer_all_get_volume(void);
@@ -46,6 +49,7 @@ mixer_all_set_volume(unsigned volume);
* software mixers. See #software_mixer_plugin. This function fails
* if no software mixer is configured.
*/
+gcc_pure
int
mixer_all_get_software_volume(void);
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);