[LmsAPI] Fix build
This commit is contained in:
@@ -77,8 +77,9 @@ ConfigReader::getUserInterfaceConfig(Service::UserInterfaceService::Config& conf
|
||||
config.dbPath = _config.lookup("main.database.path");
|
||||
}
|
||||
|
||||
#if defined HAVE_LMSAPI
|
||||
void
|
||||
ConfigReader::getRemoteServerConfig(Service::RemoteServerService::Config& config)
|
||||
ConfigReader::getLmsAPIConfig(Service::LmsAPIService::Config& config)
|
||||
{
|
||||
config.enable = _config.lookup("remote.enable");
|
||||
if (!config.enable)
|
||||
@@ -92,6 +93,7 @@ ConfigReader::getRemoteServerConfig(Service::RemoteServerService::Config& config
|
||||
|
||||
config.dbPath = _config.lookup("main.database.path");
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
ConfigReader::getDatabaseUpdateConfig(Service::DatabaseUpdateService::Config& config)
|
||||
|
||||
@@ -23,12 +23,16 @@
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <libconfig.h++>
|
||||
|
||||
#include "config/config.h"
|
||||
|
||||
#include "cover/CoverArtGrabber.hpp"
|
||||
#include "logger/Logger.hpp"
|
||||
|
||||
#include "service/UserInterfaceService.hpp"
|
||||
#include "service/LmsAPIServerService.hpp"
|
||||
#include "service/DatabaseUpdateService.hpp"
|
||||
#if defined HAVE_LMSAPI
|
||||
#include "service/LmsAPIServerService.hpp"
|
||||
#endif
|
||||
|
||||
class ConfigReader
|
||||
{
|
||||
@@ -44,9 +48,12 @@ class ConfigReader
|
||||
|
||||
// Service configurations
|
||||
void getUserInterfaceConfig(Service::UserInterfaceService::Config& config);
|
||||
void getRemoteServerConfig(Service::RemoteServerService::Config& config);
|
||||
void getDatabaseUpdateConfig(Service::DatabaseUpdateService::Config& config);
|
||||
|
||||
#if defined HAVE_LMSAPI
|
||||
void getLmsAPIConfig(Service::LmsAPIService::Config& config);
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
||||
libconfig::Config _config;
|
||||
|
||||
Reference in New Issue
Block a user