From 1c44f089383538a113fc46e49a842bb5b3cc66fc Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 25 Oct 2010 11:51:15 +0200 Subject: Use BarApp_t in BarUiPianoCall Required for automatic reauthentication --- src/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 40bd64a..d401e65 100644 --- a/src/main.c +++ b/src/main.c @@ -142,8 +142,8 @@ int main (int argc, char **argv) { reqData.step = 0; BarUiMsg (MSG_INFO, "Login... "); - if (!BarUiPianoCall (&app.ph, PIANO_REQUEST_LOGIN, &app.waith, - &reqData, &pRet, &wRet)) { + if (!BarUiPianoCall (&app, PIANO_REQUEST_LOGIN, &reqData, &pRet, + &wRet)) { BarTermRestore (&termOrig); return 0; } @@ -154,8 +154,8 @@ int main (int argc, char **argv) { WaitressReturn_t wRet; BarUiMsg (MSG_INFO, "Get stations... "); - if (!BarUiPianoCall (&app.ph, PIANO_REQUEST_GET_STATIONS, &app.waith, - NULL, &pRet, &wRet)) { + if (!BarUiPianoCall (&app, PIANO_REQUEST_GET_STATIONS, NULL, &pRet, + &wRet)) { BarTermRestore (&termOrig); return 0; } @@ -243,8 +243,8 @@ int main (int argc, char **argv) { reqData.format = app.settings.audioFormat; BarUiMsg (MSG_INFO, "Receiving new playlist... "); - if (!BarUiPianoCall (&app.ph, PIANO_REQUEST_GET_PLAYLIST, - &app.waith, &reqData, &pRet, &wRet)) { + if (!BarUiPianoCall (&app, PIANO_REQUEST_GET_PLAYLIST, + &reqData, &pRet, &wRet)) { app.curStation = NULL; } else { app.playlist = reqData.retPlaylist; -- cgit v1.2.3