db: add compile-time option to disable database

This commit is contained in:
Max Kellermann
2014-01-30 20:29:48 +01:00
parent 34b309b99a
commit 4465e2c46b
25 changed files with 297 additions and 57 deletions

View File

@@ -79,10 +79,14 @@ struct Partition {
return playlist.DeleteRange(pc, start, end);
}
#ifdef ENABLE_DATABASE
void DeleteSong(const char *uri) {
playlist.DeleteSong(pc, uri);
}
#endif
void Shuffle(unsigned start, unsigned end) {
playlist.Shuffle(pc, start, end);
}