diff options
author | Max Kellermann <max@duempel.org> | 2012-08-25 10:28:33 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-25 10:28:33 +0200 |
commit | def21cc87ef8eb1ee78be1235a2de73ed253fcaf (patch) | |
tree | 056616e05ab4d115c0415abe048a74bd6f6c857c /src/player_control.h | |
parent | 488c1eb87b1b484da67ea0ccbb360bf1a6968003 (diff) | |
parent | acaa725478ae5e6e4fff9e07cf8637d17d314c41 (diff) | |
download | mpd-def21cc87ef8eb1ee78be1235a2de73ed253fcaf.tar.gz mpd-def21cc87ef8eb1ee78be1235a2de73ed253fcaf.tar.xz mpd-def21cc87ef8eb1ee78be1235a2de73ed253fcaf.zip |
Merge branch 'v0.17.x'
Conflicts:
src/queue_save.c
Diffstat (limited to 'src/player_control.h')
-rw-r--r-- | src/player_control.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/player_control.h b/src/player_control.h index c16dbcb9f..3b536b8ba 100644 --- a/src/player_control.h +++ b/src/player_control.h @@ -137,6 +137,15 @@ struct player_control { float mixramp_db; float mixramp_delay_seconds; double total_play_time; + + /** + * If this flag is set, then the player will be auto-paused at + * the end of the song, before the next song starts to play. + * + * This is a copy of the queue's "single" flag most of the + * time. + */ + bool border_pause; }; struct player_control * @@ -225,6 +234,12 @@ pc_set_pause(struct player_control *pc, bool pause_flag); void pc_pause(struct player_control *pc); +/** + * Set the player's #border_pause flag. + */ +void +pc_set_border_pause(struct player_control *pc, bool border_pause); + void pc_kill(struct player_control *pc); |