diff options
author | Max Kellermann <max@duempel.org> | 2009-05-06 18:35:22 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-05-06 18:35:22 +0200 |
commit | 3083df5a5f0dc423d4b283917737b99e308081e9 (patch) | |
tree | d26d6701646726c83f3aeaf5288cef123bf70159 /src/player_control.h | |
parent | 0935d85c69eaa11d5f8daa8056fdf0f845871cc1 (diff) | |
download | mpd-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 'src/player_control.h')
-rw-r--r-- | src/player_control.h | 10 |
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); |