summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 52ebe1c)
raw | patch | inline | side by side (parent: 52ebe1c)
author | Kalle Wallin <kaw@linux.se> | |
Wed, 21 Apr 2004 08:35:30 +0000 (08:35 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Wed, 21 Apr 2004 08:35:30 +0000 (08:35 +0000) |
main.c | patch | blob | history | |
screen.h | patch | blob | history |
index 07a623b8da2549ee124d6a2e38dfeca686e0ec5f..21fd5ac42f3e3aea0e42ba9d16d7d67f33b4814b 100644 (file)
--- a/main.c
+++ b/main.c
/* make shure we dont update the volume yet */
g_timer_start(timer);
}
+ else
+ screen_idle(mpc);
}
else if( options->reconnect )
{
diff --git a/screen.h b/screen.h
index f367d855d888f14b778e1b65afab1156d125bdf6..d770aba0f902aaac706d8d90431dac3a7ca0c6a4 100644 (file)
--- a/screen.h
+++ b/screen.h
#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
GList *screen_list;
+ time_t start_timestamp;
time_t status_timestamp;
time_t input_timestamp;
command_t last_cmd;
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