Code

Added input_timeout.
authorKalle Wallin <kaw@linux.se>
Mon, 5 Apr 2004 08:58:48 +0000 (08:58 +0000)
committerKalle Wallin <kaw@linux.se>
Mon, 5 Apr 2004 08:58:48 +0000 (08:58 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@606 09075e82-0dd4-0310-85a5-a0d7c8717e4f

screen.h

index 60b253883c287e013761990484279c9fc2a8dc00..452490996fcb351990ea3a7b18a6a729661fc32a 100644 (file)
--- a/screen.h
+++ b/screen.h
@@ -27,6 +27,7 @@
 
 #define IS_PLAYING(s) (s==MPD_STATUS_STATE_PLAY)
 #define IS_PAUSED(s) (s==MPD_STATUS_STATE_PAUSE)
+#define IS_STOPPED(s) (!(IS_PLAYING(s) | IS_PAUSED(s)))
 
 typedef enum
 {
@@ -54,7 +55,9 @@ typedef struct
   window_t main_window;
   window_t progress_window;
   window_t status_window;
+
   time_t status_timestamp;
+  time_t input_timestamp;
 
   list_window_t *playlist;
   list_window_t *filelist;