diff options
author | Max Kellermann <max@duempel.org> | 2011-12-24 11:20:02 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-12-24 11:20:02 +0100 |
commit | 99949c8f6fad1e2ef6aec5b742c8048d67b8280c (patch) | |
tree | 24449ca309778f02f29fb943765dc3b39d192904 /src/playlist.h | |
parent | 78c4351e04629d701a3652da9af98b080fd9f2b8 (diff) | |
download | mpd-99949c8f6fad1e2ef6aec5b742c8048d67b8280c.tar.gz mpd-99949c8f6fad1e2ef6aec5b742c8048d67b8280c.tar.xz mpd-99949c8f6fad1e2ef6aec5b742c8048d67b8280c.zip |
command: new command "seekcur"
For simpler seeking within current song.
Diffstat (limited to 'src/playlist.h')
-rw-r--r-- | src/playlist.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/playlist.h b/src/playlist.h index 4c5f29e5d..caed0a220 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -239,6 +239,18 @@ enum playlist_result playlist_seek_song_id(struct playlist *playlist, struct player_control *pc, unsigned id, float seek_time); +/** + * Seek within the current song. Fails if MPD is not currently + * playing. + * + * @param time the time in seconds + * @param relative if true, then the specified time is relative to the + * current position + */ +enum playlist_result +playlist_seek_current(struct playlist *playlist, struct player_control *pc, + float seek_time, bool relative); + void playlist_increment_version_all(struct playlist *playlist); |