summaryrefslogtreecommitdiff
path: root/libpiano/src/piano.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-23 15:47:28 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-23 15:47:28 +0200
commit5afcd41752602f8c76faab8042a46e6b8c66bbb6 (patch)
tree39870e8e903490896b3f617e28b321ac78b4c83a /libpiano/src/piano.h
parent95df994be69a49a6e40a105fa349a553dd03a766 (diff)
downloadpianobar-5afcd41752602f8c76faab8042a46e6b8c66bbb6.tar.gz
pianobar-5afcd41752602f8c76faab8042a46e6b8c66bbb6.tar.bz2
pianobar-5afcd41752602f8c76faab8042a46e6b8c66bbb6.zip
Be correct, use "const"
Diffstat (limited to 'libpiano/src/piano.h')
-rw-r--r--libpiano/src/piano.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/libpiano/src/piano.h b/libpiano/src/piano.h
index 172c13d..0850517 100644
--- a/libpiano/src/piano.h
+++ b/libpiano/src/piano.h
@@ -159,29 +159,30 @@ void PianoInit (PianoHandle_t *);
void PianoDestroy (PianoHandle_t *);
void PianoDestroyPlaylist (PianoHandle_t *ph);
void PianoDestroySearchResult (PianoSearchResult_t *searchResult);
-PianoReturn_t PianoConnect (PianoHandle_t *ph, char *user, char *password,
- char secureLogin);
+PianoReturn_t PianoConnect (PianoHandle_t *ph, const char *user,
+ const char *password, char secureLogin);
PianoReturn_t PianoGetStations (PianoHandle_t *ph);
-PianoReturn_t PianoGetPlaylist (PianoHandle_t *ph, char *stationId);
+PianoReturn_t PianoGetPlaylist (PianoHandle_t *ph, const char *stationId);
PianoReturn_t PianoRateTrack (PianoHandle_t *ph, PianoSong_t *song,
PianoSongRating_t rating);
-PianoReturn_t PianoMoveSong (PianoHandle_t *ph, PianoStation_t *stationFrom,
- PianoStation_t *stationTo, PianoSong_t *song);
+PianoReturn_t PianoMoveSong (PianoHandle_t *ph,
+ const PianoStation_t *stationFrom, const PianoStation_t *stationTo,
+ const PianoSong_t *song);
PianoReturn_t PianoRenameStation (PianoHandle_t *ph, PianoStation_t *station,
- char *newName);
+ const char *newName);
PianoReturn_t PianoDeleteStation (PianoHandle_t *ph, PianoStation_t *station);
-PianoReturn_t PianoSearchMusic (PianoHandle_t *ph, char *searchStr,
- PianoSearchResult_t *searchResult);
-PianoReturn_t PianoCreateStation (PianoHandle_t *ph, char *type,
- char *id);
+PianoReturn_t PianoSearchMusic (const PianoHandle_t *ph,
+ const char *searchStr, PianoSearchResult_t *searchResult);
+PianoReturn_t PianoCreateStation (PianoHandle_t *ph, const char *type,
+ const char *id);
PianoReturn_t PianoStationAddMusic (PianoHandle_t *ph,
- PianoStation_t *station, char *musicId);
-PianoReturn_t PianoSongTired (PianoHandle_t *ph, PianoSong_t *song);
+ PianoStation_t *station, const char *musicId);
+PianoReturn_t PianoSongTired (PianoHandle_t *ph, const PianoSong_t *song);
PianoReturn_t PianoSetQuickmix (PianoHandle_t *ph);
PianoStation_t *PianoFindStationById (PianoStation_t *stations,
- char *searchStation);
+ const char *searchStation);
PianoReturn_t PianoGetGenreStations (PianoHandle_t *ph);
PianoReturn_t PianoTransformShared (PianoHandle_t *ph,
PianoStation_t *station);