summaryrefslogtreecommitdiff
path: root/src/ui_act.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-02-12 16:42:03 +0100
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-02-12 16:44:09 +0100
commitbfef5030e9d52e055b2ecbc71866f0d8346b0e0a (patch)
tree4d3f0c440d6458a4e6307fb558a862c317cd3bfd /src/ui_act.c
parent9c767e7ef973e6f75818f80b8e42f96ce13c4979 (diff)
downloadpianobar-windows-bfef5030e9d52e055b2ecbc71866f0d8346b0e0a.tar.gz
pianobar-windows-bfef5030e9d52e055b2ecbc71866f0d8346b0e0a.tar.bz2
pianobar-windows-bfef5030e9d52e055b2ecbc71866f0d8346b0e0a.zip
Shared stations can be added
Diffstat (limited to 'src/ui_act.c')
-rw-r--r--src/ui_act.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui_act.c b/src/ui_act.c
index 2ecc9c2..1f73b0e 100644
--- a/src/ui_act.c
+++ b/src/ui_act.c
@@ -126,6 +126,18 @@ void BarUiActCreateStation (BAR_KS_ARGS) {
}
}
+/* add shared station by id
+ */
+void BarUiActAddSharedStation (BAR_KS_ARGS) {
+ char *stationId = NULL;
+
+ if ((stationId = readline ("Station id: ")) != NULL) {
+ BarUiMsg ("Adding shared station... ");
+ BarUiPrintPianoStatus (PianoCreateStation (ph, "sh", stationId));
+ free (stationId);
+ }
+}
+
/* delete current station
*/
void BarUiActDeleteStation (BAR_KS_ARGS) {