aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_control.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-05-06 18:35:22 +0200
committerMax Kellermann <max@duempel.org>2009-05-06 18:35:22 +0200
commit3083df5a5f0dc423d4b283917737b99e308081e9 (patch)
treed26d6701646726c83f3aeaf5288cef123bf70159 /src/player_control.h
parent0935d85c69eaa11d5f8daa8056fdf0f845871cc1 (diff)
downloadmpd-3083df5a5f0dc423d4b283917737b99e308081e9.tar.gz
mpd-3083df5a5f0dc423d4b283917737b99e308081e9.tar.xz
mpd-3083df5a5f0dc423d4b283917737b99e308081e9.zip
player_control: renamed playerSeek(), return bool
Renamed playerSeek() to pc_seek() to get rid of CamelCase. Convert the return value to bool.
Diffstat (limited to '')
-rw-r--r--src/player_control.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/player_control.h b/src/player_control.h
index c8bcf2462..b1f7481cd 100644
--- a/src/player_control.h
+++ b/src/player_control.h
@@ -132,8 +132,14 @@ void playerWait(void);
void
queueSong(struct song *song);
-int
-playerSeek(struct song *song, float seek_time);
+/**
+ * Makes the player thread seek the specified song to a position.
+ *
+ * @return true on success, false on failure (e.g. if MPD isn't
+ * playing currently)
+ */
+bool
+pc_seek(struct song *song, float seek_time);
void setPlayerCrossFade(float crossFadeInSeconds);