diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-04-19 15:02:18 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-09-27 11:25:32 +0200 |
commit | fbfc5f1d5508533454187171024625ec05daa88d (patch) | |
tree | f8590ebc25f8317e9dc2f72a98867bef81d26c0b /src/libpiano/piano.h | |
parent | 9dbd0f308b10f6a2982e72f25b0d26c951f5e87f (diff) | |
download | pianobar-fbfc5f1d5508533454187171024625ec05daa88d.tar.gz pianobar-fbfc5f1d5508533454187171024625ec05daa88d.tar.bz2 pianobar-fbfc5f1d5508533454187171024625ec05daa88d.zip |
dirty: Adsads
Diffstat (limited to 'src/libpiano/piano.h')
-rw-r--r-- | src/libpiano/piano.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libpiano/piano.h b/src/libpiano/piano.h index 1a84d4a..f7b215f 100644 --- a/src/libpiano/piano.h +++ b/src/libpiano/piano.h @@ -96,6 +96,7 @@ typedef struct PianoSong { char *feedbackId; char *detailUrl; char *trackToken; + char *adToken; float fileGain; unsigned int length; /* song length in seconds */ PianoSongRating_t rating; @@ -179,6 +180,8 @@ typedef enum { PIANO_REQUEST_DELETE_SEED = 22, PIANO_REQUEST_GET_SETTINGS = 23, PIANO_REQUEST_CHANGE_SETTINGS = 24, + PIANO_REQUEST_GET_AD_METADATA = 25, + PIANO_REQUEST_REGISTER_AD = 26, } PianoRequestType_t; typedef struct PianoRequest { @@ -266,6 +269,20 @@ typedef struct { PianoTristate_t explicitContentFilter; } PianoRequestDataChangeSettings_t; +typedef struct { + char *token; + PianoSong_t *song; + PianoAudioQuality_t quality; + char **retToken; + size_t retTokenCount; +} PianoRequestDataGetAdMetadata_t; + +typedef struct { + char **token; + size_t tokenCount; + PianoStation_t *station; +} PianoRequestDataRegisterAd_t; + /* pandora error code offset */ #define PIANO_RET_OFFSET 1024 typedef enum { |