src/playlist_song.h File Reference
#include <stdbool.h>
Go to the source code of this file.
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 |