diff options
author | Max Kellermann <max@duempel.org> | 2009-03-14 11:10:21 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-14 11:10:21 +0100 |
commit | f15d879e37985224aa4780a9de6b81d2df781ed6 (patch) | |
tree | ee5d242add0bd917077df92f5e6ee0d5cfc08cad /src/volume.h | |
parent | f31c371fbd95d1999b18c6b35596d8f3b71b620c (diff) | |
download | mpd-f15d879e37985224aa4780a9de6b81d2df781ed6.tar.gz mpd-f15d879e37985224aa4780a9de6b81d2df781ed6.tar.xz mpd-f15d879e37985224aa4780a9de6b81d2df781ed6.zip |
volume: use bool instead of int
Return true/false on success/failure, instead of 0/-1. Pass
true/false instead of 1/0 for the "rel" boolean parameter.
Diffstat (limited to '')
-rw-r--r-- | src/volume.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/volume.h b/src/volume.h index 435e32711..99d31da4e 100644 --- a/src/volume.h +++ b/src/volume.h @@ -20,6 +20,7 @@ #ifndef MPD_VOLUME_H #define MPD_VOLUME_H +#include <stdbool.h> #include <stdio.h> #define VOLUME_MIXER_OSS "oss" @@ -34,7 +35,7 @@ void volume_finish(void); int volume_level_get(void); -int volume_level_change(int change, int rel); +bool volume_level_change(int change, bool rel); void read_sw_volume_state(FILE *fp); |