summaryrefslogtreecommitdiff
path: root/src/libpiano
diff options
context:
space:
mode:
Diffstat (limited to 'src/libpiano')
-rw-r--r--src/libpiano/piano.h5
-rw-r--r--src/libpiano/request.c10
2 files changed, 4 insertions, 11 deletions
diff --git a/src/libpiano/piano.h b/src/libpiano/piano.h
index 4ea164d..167f0f9 100644
--- a/src/libpiano/piano.h
+++ b/src/libpiano/piano.h
@@ -216,11 +216,6 @@ typedef struct {
} PianoRequestDataSearch_t;
typedef struct {
- char *type;
- char *id;
-} PianoRequestDataCreateStation_t;
-
-typedef struct {
PianoStation_t *station;
char *musicId;
} PianoRequestDataAddSeed_t;
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;