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

@@ -39,6 +39,8 @@
#include <string.h>
#include <sys/stat.h>
#ifdef ENABLE_DATABASE
Song *
Song::LoadFile(const char *path_utf8, Directory &parent)
{
@@ -64,6 +66,8 @@ Song::LoadFile(const char *path_utf8, Directory &parent)
return song;
}
#endif
/**
* Attempts to load APE or ID3 tags from the specified file.
*/
@@ -75,6 +79,8 @@ tag_scan_fallback(Path path,
tag_id3_scan(path, handler, handler_ctx);
}
#ifdef ENABLE_DATABASE
bool
Song::UpdateFile()
{
@@ -125,6 +131,8 @@ Song::UpdateFileInArchive()
return true;
}
#endif
bool
DetachedSong::Update()
{