summaryrefslogtreecommitdiff
path: root/src/libpiano/request.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libpiano/request.c')
-rw-r--r--src/libpiano/request.c10
1 files changed, 4 insertions, 6 deletions
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;