diff options
author | Max Kellermann <max@duempel.org> | 2008-09-06 15:28:31 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-06 15:28:31 +0200 |
commit | 35c0b84f0897508b1f2fb82d1fc096164621b2bb (patch) | |
tree | c9a129da91fca3808adb586de8eecf392defb486 /src/playlist.c | |
parent | d38d2bc3533dcfb661a3cbb8bd6cd9574c31ab69 (diff) | |
download | mpd-35c0b84f0897508b1f2fb82d1fc096164621b2bb.tar.gz mpd-35c0b84f0897508b1f2fb82d1fc096164621b2bb.tar.xz mpd-35c0b84f0897508b1f2fb82d1fc096164621b2bb.zip |
dbUtils, playlist, directory: pass constant pointers
The usual bunch of const pointer conversions.
Diffstat (limited to 'src/playlist.c')
-rw-r--r-- | src/playlist.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/playlist.c b/src/playlist.c index 3b7c9d664..f128af1b6 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -211,7 +211,7 @@ void clearPlaylist(void) incrPlaylistVersion(); } -int clearStoredPlaylist(int fd, char *utf8file) +int clearStoredPlaylist(int fd, const char *utf8file) { return removeAllFromStoredPlaylistByPath(fd, utf8file); } @@ -561,7 +561,7 @@ static void clearPlayerQueue(void) playerQueueUnlock(); } -int addToPlaylist(int fd, char *url, int *added_id) +int addToPlaylist(int fd, const char *url, int *added_id) { Song *song; @@ -579,7 +579,7 @@ int addToPlaylist(int fd, char *url, int *added_id) return addSongToPlaylist(fd, song, added_id); } -int addToStoredPlaylist(int fd, char *url, char *utf8file) +int addToStoredPlaylist(int fd, const char *url, const char *utf8file) { Song *song; @@ -1270,7 +1270,7 @@ int shufflePlaylist(mpd_unused int fd) return 0; } -int deletePlaylist(int fd, char *utf8file) +int deletePlaylist(int fd, const char *utf8file) { char path_max_tmp[MPD_PATH_MAX]; @@ -1291,7 +1291,7 @@ int deletePlaylist(int fd, char *utf8file) return 0; } -int savePlaylist(int fd, char *utf8file) +int savePlaylist(int fd, const char *utf8file) { FILE *fp; int i; @@ -1400,7 +1400,7 @@ int getPlaylistSongId(int song) return playlist.positionToId[song]; } -int PlaylistInfo(int fd, char *utf8file, int detail) +int PlaylistInfo(int fd, const char *utf8file, int detail) { ListNode *node; List *list; @@ -1432,7 +1432,7 @@ int PlaylistInfo(int fd, char *utf8file, int detail) return 0; } -int loadPlaylist(int fd, char *utf8file) +int loadPlaylist(int fd, const char *utf8file) { ListNode *node; List *list; |