aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_control.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-03 21:49:40 +0100
committerMax Kellermann <max@duempel.org>2008-11-03 21:49:40 +0100
commitfdf0d46e3d0e14fe0ad0ff112b738f4b5cdf04a4 (patch)
treecc07125631e995c7c9481a94a8c3f3a3e77dcb52 /src/player_control.c
parenteca0e6db3b1e0aef07971706964190afe38cf82c (diff)
downloadmpd-fdf0d46e3d0e14fe0ad0ff112b738f4b5cdf04a4.tar.gz
mpd-fdf0d46e3d0e14fe0ad0ff112b738f4b5cdf04a4.tar.xz
mpd-fdf0d46e3d0e14fe0ad0ff112b738f4b5cdf04a4.zip
player: converted PLAYER_ERROR_* to enum
Diffstat (limited to 'src/player_control.c')
-rw-r--r--src/player_control.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/player_control.c b/src/player_control.c
index b35a8c5dc..f65ba7c08 100644
--- a/src/player_control.c
+++ b/src/player_control.c
@@ -135,7 +135,7 @@ void clearPlayerError(void)
pc.error = 0;
}
-int getPlayerError(void)
+enum player_error getPlayerError(void)
{
return pc.error;
}
@@ -149,6 +149,9 @@ char *getPlayerErrorStr(void)
*error = '\0'; /* likely */
switch (pc.error) {
+ case PLAYER_ERROR_NOERROR:
+ break;
+
case PLAYER_ERROR_FILENOTFOUND:
snprintf(error, errorlen,
"file \"%s\" does not exist or is inaccessible",