From 94c1eec169db66bb4ad9d633342aead3b0f35b9f Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 1 May 2012 12:12:37 +0200 Subject: Don’t hardcode passwords MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s a bad idea to hardcode these, although playback does not work with non-android login yet. --- src/libpiano/piano.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/libpiano/piano.h') diff --git a/src/libpiano/piano.h b/src/libpiano/piano.h index 6d20747..86dcce0 100644 --- a/src/libpiano/piano.h +++ b/src/libpiano/piano.h @@ -25,6 +25,7 @@ THE SOFTWARE. #define _PIANO_H #include +#include /* this is our public API; don't expect this api to be stable as long as * pandora does not provide a stable api @@ -106,14 +107,19 @@ typedef struct PianoGenreCategory { struct PianoGenreCategory *next; } PianoGenreCategory_t; +typedef struct PianoPartner { + gcry_cipher_hd_t in, out; + char *authToken, *device, *user, *password; + unsigned int id; +} PianoPartner_t; + typedef struct PianoHandle { PianoUserInfo_t user; /* linked lists */ PianoStation_t *stations; PianoGenreCategory_t *genreStations; + PianoPartner_t partner; int timeOffset; - char *partnerAuthToken; - unsigned int partnerId; } PianoHandle_t; typedef struct PianoSearchResult { @@ -291,7 +297,9 @@ typedef enum { } PianoReturn_t; -void PianoInit (PianoHandle_t *); +void PianoInit (PianoHandle_t *, const char *, + const char *, const char *, const char *, + const char *); void PianoDestroy (PianoHandle_t *); void PianoDestroyPlaylist (PianoSong_t *); void PianoDestroySearchResult (PianoSearchResult_t *); -- cgit v1.2.3