diff options
Diffstat (limited to 'src/ui_act.c')
-rw-r--r-- | src/ui_act.c | 12 |
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) { |