From c1ba47beee9c084e2a592e54dcda3f470e26ec47 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 25 Oct 2013 00:15:55 +0200 Subject: MixerAll, Volume: add "pure" attributes --- src/Volume.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Volume.hxx') 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 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); -- cgit v1.2.3