diff options
| author | Louis Burda <quent.burda@gmail.com> | 2021-12-16 17:11:12 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2021-12-20 15:31:31 +0100 |
| commit | 3eea7a245a7ed49127a222628543f9509a6ff2b6 (patch) | |
| tree | 345a923819b73bc88b551af5f708476239b6b7d9 /player.h | |
| parent | 15a8fe2cf2b16af8739a7ec2b64b5c5f184161b8 (diff) | |
| download | tmus-3eea7a245a7ed49127a222628543f9509a6ff2b6.tar.gz tmus-3eea7a245a7ed49127a222628543f9509a6ff2b6.zip | |
Switched most buffers to wide chars, added general ref class, now clear mpd errors, added track and command completion
Diffstat (limited to 'player.h')
| -rw-r--r-- | player.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |
