diff options
author | Max Kellermann <max@duempel.org> | 2010-12-22 19:46:41 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-12-23 16:24:00 +0100 |
commit | 5274fee8a71cc5901649b984bc4488c9677feadf (patch) | |
tree | e15bcc3fe1df966fc855ec1dbd22087b7a856a2b /src/playlist_song.h | |
parent | 5462f34ed037111d2d57638352b2f1a65a322579 (diff) | |
download | mpd-5274fee8a71cc5901649b984bc4488c9677feadf.tar.gz mpd-5274fee8a71cc5901649b984bc4488c9677feadf.tar.xz mpd-5274fee8a71cc5901649b984bc4488c9677feadf.zip |
playlist_song: add flag "secure"
Optionally allow all local files.
"Insecure" mode is used for printing playlists.
Diffstat (limited to 'src/playlist_song.h')
-rw-r--r-- | src/playlist_song.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/playlist_song.h b/src/playlist_song.h index 5a2e4c2b0..29335e5ac 100644 --- a/src/playlist_song.h +++ b/src/playlist_song.h @@ -20,12 +20,18 @@ #ifndef MPD_PLAYLIST_SONG_H #define MPD_PLAYLIST_SONG_H +#include <stdbool.h> + /** * Verifies the song, returns NULL if it is unsafe. Translate the * song to a new song object within the database, if it is a local * file. The old song object is freed. + * + * @param secure if true, then local files are only allowed if they + * are relative to base_uri */ struct song * -playlist_check_translate_song(struct song *song, const char *base_uri); +playlist_check_translate_song(struct song *song, const char *base_uri, + bool secure); #endif |