From bfef5030e9d52e055b2ecbc71866f0d8346b0e0a Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 12 Feb 2009 16:42:03 +0100 Subject: Shared stations can be added --- src/ui_act.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/ui_act.c') 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) { -- cgit v1.2.3