[LmsAPI] Fix build

This commit is contained in:
emeric
2015-07-29 18:07:23 +02:00
parent 1c62194935
commit 16defc4f46
6 changed files with 35 additions and 25 deletions
+9 -9
View File
@@ -23,7 +23,7 @@
namespace Service {
RemoteServerService::RemoteServerService(const Config& config)
LmsAPIService::LmsAPIService(const Config& config)
: _server(boost::asio::ip::tcp::endpoint(config.address, config.port),
config.sslCertificatePath,
config.sslPrivateKeyPath,
@@ -33,26 +33,26 @@ RemoteServerService::RemoteServerService(const Config& config)
}
void
RemoteServerService::start(void)
LmsAPIService::start(void)
{
LMS_LOG(MOD_SERVICE, SEV_DEBUG) << "RemoteServerService::start, starting...";
LMS_LOG(MOD_SERVICE, SEV_DEBUG) << "LmsAPIService::start, starting...";
_server.start();
LMS_LOG(MOD_SERVICE, SEV_DEBUG) << "RemoteServerService::start, started!";
LMS_LOG(MOD_SERVICE, SEV_DEBUG) << "LmsAPIService::start, started!";
}
void
RemoteServerService::stop(void)
LmsAPIService::stop(void)
{
LMS_LOG(MOD_SERVICE, SEV_DEBUG) << "RemoteServerService::stop, stopping...";
LMS_LOG(MOD_SERVICE, SEV_DEBUG) << "LmsAPIService::stop, stopping...";
_server.stop();
LMS_LOG(MOD_SERVICE, SEV_DEBUG) << "RemoteServerService::stop, stopped!";
LMS_LOG(MOD_SERVICE, SEV_DEBUG) << "LmsAPIService::stop, stopped!";
}
void
RemoteServerService::restart(void)
LmsAPIService::restart(void)
{
LMS_LOG(MOD_SERVICE, SEV_DEBUG) << "RemoteServerService::restart, not implemented!";
LMS_LOG(MOD_SERVICE, SEV_DEBUG) << "LmsAPIService::restart, not implemented!";
}
} // namespace Service
+4 -2
View File
@@ -23,13 +23,15 @@
#include <boost/filesystem.hpp>
#include <boost/asio/ip/address.hpp>
#include "config/config.h"
#include "Service.hpp"
#include "lms-api/server/Server.hpp"
namespace Service {
class RemoteServerService : public Service
class LmsAPIService : public Service
{
public:
@@ -43,7 +45,7 @@ class RemoteServerService : public Service
boost::filesystem::path dbPath;
};
RemoteServerService(const Config& config);
LmsAPIService(const Config& config);
void start(void);
void stop(void);