db: add compile-time option to disable database
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user