From a3fc2105e4dfe06f3f31360813787103a01ab069 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 14 Jun 2012 21:19:42 +0200 Subject: piano: Remove unused struct --- src/libpiano/request.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/libpiano/request.c') diff --git a/src/libpiano/request.c b/src/libpiano/request.c index 871620d..5619e1b 100644 --- a/src/libpiano/request.c +++ b/src/libpiano/request.c @@ -203,15 +203,13 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req, } case PIANO_REQUEST_CREATE_STATION: { - /* create new station from specified musicid (type=mi, get one by - * performing a search) or shared station id (type=sh) */ - PianoRequestDataCreateStation_t *reqData = req->data; + /* create new station from specified musicToken or station number */ + char *token = req->data; - assert (reqData != NULL); - assert (reqData->id != NULL); + assert (token != NULL); json_object_object_add (j, "musicToken", - json_object_new_string (reqData->id)); + json_object_new_string (token)); method = "station.createStation"; break; -- cgit v1.2.3