From ba60fbc4274e85fb63d373207f525aa57bc75eb3 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 22 Oct 2011 16:34:48 +0200 Subject: Support seed stations Fixes #165 --- src/ui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index dc2acb3..1857170 100644 --- a/src/ui.c +++ b/src/ui.c @@ -333,13 +333,13 @@ static PianoStation_t **BarSortedStations (PianoStation_t *unsortedStations, * @param called if input was not a number * @return pointer to selected station or NULL */ -PianoStation_t *BarUiSelectStation (BarApp_t *app, const char *prompt, - BarUiSelectStationCallback_t callback) { +PianoStation_t *BarUiSelectStation (BarApp_t *app, PianoStation_t *stations, + const char *prompt, BarUiSelectStationCallback_t callback) { PianoStation_t **sortedStations = NULL, *retStation = NULL; size_t stationCount, i; char buf[100]; - if (app->ph.stations == NULL) { + if (stations == NULL) { BarUiMsg (&app->settings, MSG_ERR, "No station available.\n"); return NULL; } @@ -347,7 +347,7 @@ PianoStation_t *BarUiSelectStation (BarApp_t *app, const char *prompt, memset (buf, 0, sizeof (buf)); /* sort and print stations */ - sortedStations = BarSortedStations (app->ph.stations, &stationCount, + sortedStations = BarSortedStations (stations, &stationCount, app->settings.sortOrder); do { -- cgit v1.2.3