diff options
author | Kalle Wallin <kaw@linux.se> | 2004-04-21 08:35:30 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-04-21 08:35:30 +0000 |
commit | 5f6bc7fa9fc8fd7f4ae9a44c03434a457f090585 (patch) | |
tree | 04d918231d29f10c6af775874907a803b9a50982 | |
parent | 52ebe1c5594b30cd9b740275a35956f90be06f01 (diff) | |
download | mpd-5f6bc7fa9fc8fd7f4ae9a44c03434a457f090585.tar.gz mpd-5f6bc7fa9fc8fd7f4ae9a44c03434a457f090585.tar.xz mpd-5f6bc7fa9fc8fd7f4ae9a44c03434a457f090585.zip |
Added screen_idle() function.
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@863 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | screen.h | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -179,6 +179,8 @@ main(int argc, const char *argv[]) /* make shure we dont update the volume yet */ g_timer_start(timer); } + else + screen_idle(mpc); } else if( options->reconnect ) { @@ -23,7 +23,7 @@ #define SCREEN_MIN_ROWS 5 /* timeout for non blocking read [ms] */ -#define SCREEN_TIMEOUT 250 +#define SCREEN_TIMEOUT 500 /* welcome message time [s] */ #define SCREEN_WELCOME_TIME 10 @@ -61,6 +61,7 @@ typedef struct GList *screen_list; + time_t start_timestamp; time_t status_timestamp; time_t input_timestamp; command_t last_cmd; @@ -112,6 +113,7 @@ void screen_status_printf(char *format, ...); char *screen_error(void); void screen_paint(mpd_client_t *c); void screen_update(mpd_client_t *c); +void screen_idle(mpd_client_t *c); void screen_cmd(mpd_client_t *c, command_t cmd); #endif |