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:
secure if true, then local files are only allowed if they are relative to base_uri

Generated on 17 Jul 2013 for MPD by  doxygen 1.6.1