MPD 0.17~git
Functions
src/playlist_song.h File Reference
#include <stdbool.h>

Go to the source code of this file.

Functions

struct songplaylist_check_translate_song (struct song *song, const char *base_uri, bool secure)
 Verifies the song, returns NULL if it is unsafe.

Function Documentation

struct song* playlist_check_translate_song ( struct song song,
const char *  base_uri,
bool  secure 
) [read]

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.

Parameters:
secureif true, then local files are only allowed if they are relative to base_uri