summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index aa338eb..e4b8457 100644
--- a/src/main.c
+++ b/src/main.c
@@ -375,7 +375,8 @@ int main (int argc, char **argv) {
"q\tquit\n"
"r\trename current station\n"
"s\tchange station\n"
- "t\ttired (ban song for 1 month)\n");
+ "t\ttired (ban song for 1 month)\n"
+ "u\tupcoming songs\n");
break;
case 'a':
@@ -548,6 +549,20 @@ int main (int argc, char **argv) {
}
break;
+ case 'u':
+ if (curStation == NULL || curSong == NULL) {
+ BarUiMsg ("No song playing.\n");
+ break;
+ }
+ BarUiMsg ("Next songs:\n");
+ PianoSong_t *nextSong = curSong->next;
+ while (nextSong != NULL) {
+ printf ("%s -- %s\n", nextSong->artist,
+ nextSong->title);
+ nextSong = nextSong->next;
+ }
+ break;
+
} /* end case */
} /* end poll */