diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2012-06-14 21:19:42 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2012-06-14 21:19:42 +0200 |
commit | a3fc2105e4dfe06f3f31360813787103a01ab069 (patch) | |
tree | 3d66a15cfc2f73312b68d45832e9e2faaa618cd9 /src/libpiano | |
parent | 02bedadab6505c10dda52c716e797d1065a57a7b (diff) | |
download | pianobar-windows-a3fc2105e4dfe06f3f31360813787103a01ab069.tar.gz pianobar-windows-a3fc2105e4dfe06f3f31360813787103a01ab069.tar.bz2 pianobar-windows-a3fc2105e4dfe06f3f31360813787103a01ab069.zip |
piano: Remove unused struct
Diffstat (limited to 'src/libpiano')
-rw-r--r-- | src/libpiano/piano.h | 5 | ||||
-rw-r--r-- | src/libpiano/request.c | 10 |
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; |