From 3eea7a245a7ed49127a222628543f9509a6ff2b6 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Thu, 16 Dec 2021 17:11:12 +0100 Subject: Switched most buffers to wide chars, added general ref class, now clear mpd errors, added track and command completion --- player.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'player.h') diff --git a/player.h b/player.h index f182cd7..f29e2e5 100644 --- a/player.h +++ b/player.h @@ -1,6 +1,7 @@ #pragma once #include "track.h" +#include "list.h" #include "util.h" #include "mpd/client.h" @@ -20,7 +21,8 @@ enum { enum { PLAYER_STATE_PAUSED, - PLAYER_STATE_PLAYING + PLAYER_STATE_PLAYING, + PLAYER_STATE_STOPPED }; struct player { @@ -30,6 +32,7 @@ struct player { struct track *track; int state; + int loaded; int volume; unsigned int time_pos, time_end; @@ -53,6 +56,7 @@ int player_resume(void); int player_prev(void); int player_next(void); int player_seek(int sec); +int player_stop(void); int player_set_volume(unsigned int vol); -- cgit v1.2.3-71-gd317