aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_control.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-10-08 20:45:38 +0200
committerMax Kellermann <max@duempel.org>2009-10-08 20:45:38 +0200
commit128a5fa4a599b72e6cb9c9f3954aec62dd3b3181 (patch)
tree5364277b05b9e98e636e76513e00dcf4015c2c3b /src/player_control.h
parenta5960c20cc679132e049fc6da0f3d7d6fa34e361 (diff)
downloadmpd-128a5fa4a599b72e6cb9c9f3954aec62dd3b3181.tar.gz
mpd-128a5fa4a599b72e6cb9c9f3954aec62dd3b3181.tar.xz
mpd-128a5fa4a599b72e6cb9c9f3954aec62dd3b3181.zip
player_control: allocate getPlayerErrorStr() result
This lets us eliminate the static fixed-size buffer.
Diffstat (limited to 'src/player_control.h')
-rw-r--r--src/player_control.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/player_control.h b/src/player_control.h
index 0cc3c73a8..9cf5b1377 100644
--- a/src/player_control.h
+++ b/src/player_control.h
@@ -122,6 +122,11 @@ enum player_state getPlayerState(void);
void clearPlayerError(void);
+/**
+ * Returns the human-readable message describing the last error during
+ * playback, NULL if no error occurred. The caller has to free the
+ * returned string.
+ */
char *getPlayerErrorStr(void);
enum player_error getPlayerError(void);