From fa702798cbc63fe042b444ae8923ab58d5ef4937 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 19 Jul 2016 22:31:27 +0200 Subject: [PATCH] [DEBUG] build back gateway --- tools/system-gateway/appl/ClientInterface.cpp | 4 ++-- tools/system-gateway/appl/ClientInterface.h | 4 ++-- tools/system-gateway/appl/ServiceInterface.cpp | 4 ++-- tools/system-gateway/appl/ServiceInterface.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/system-gateway/appl/ClientInterface.cpp b/tools/system-gateway/appl/ClientInterface.cpp index 1d9ca9d..bfb9336 100644 --- a/tools/system-gateway/appl/ClientInterface.cpp +++ b/tools/system-gateway/appl/ClientInterface.cpp @@ -67,7 +67,7 @@ void appl::ClientInterface::answerProtocolError(uint32_t _transactionId, const s } -void appl::ClientInterface::onClientData(const ememory::SharedPtr& _value) { +void appl::ClientInterface::onClientData(ememory::SharedPtr _value) { if (_value == nullptr) { return; } @@ -346,6 +346,6 @@ void appl::ClientInterface::onClientData(const ememory::SharedPtr& } } -void appl::ClientInterface::returnMessage(const ememory::SharedPtr& _data) { +void appl::ClientInterface::returnMessage(ememory::SharedPtr _data) { ZEUS_ERROR("Get call from the Service to the user ..."); } \ No newline at end of file diff --git a/tools/system-gateway/appl/ClientInterface.h b/tools/system-gateway/appl/ClientInterface.h index 32cb113..26cd4b3 100644 --- a/tools/system-gateway/appl/ClientInterface.h +++ b/tools/system-gateway/appl/ClientInterface.h @@ -38,8 +38,8 @@ namespace appl { virtual ~ClientInterface(); void start(uint64_t _uid, uint64_t _uid2); void stop(); - void onClientData(const ememory::SharedPtr& _value); - void returnMessage(const ememory::SharedPtr& _data); + void onClientData(ememory::SharedPtr _value); + void returnMessage(ememory::SharedPtr _data); bool checkId(uint64_t _id) const { return m_uid == _id || m_uid2 == _id; diff --git a/tools/system-gateway/appl/ServiceInterface.cpp b/tools/system-gateway/appl/ServiceInterface.cpp index 6bebeb9..93a9841 100644 --- a/tools/system-gateway/appl/ServiceInterface.cpp +++ b/tools/system-gateway/appl/ServiceInterface.cpp @@ -44,12 +44,12 @@ void appl::ServiceInterface::stop() { } -void appl::ServiceInterface::SendData(uint64_t _userSessionId, const ememory::SharedPtr& _data) { +void appl::ServiceInterface::SendData(uint64_t _userSessionId, ememory::SharedPtr _data) { _data->setClientId(_userSessionId); m_interfaceClient.writeBinary(_data); } -void appl::ServiceInterface::onServiceData(const ememory::SharedPtr& _value) { +void appl::ServiceInterface::onServiceData(ememory::SharedPtr _value) { if (_value == nullptr) { return; } diff --git a/tools/system-gateway/appl/ServiceInterface.h b/tools/system-gateway/appl/ServiceInterface.h index 45a7f85..aa68402 100644 --- a/tools/system-gateway/appl/ServiceInterface.h +++ b/tools/system-gateway/appl/ServiceInterface.h @@ -22,9 +22,9 @@ namespace appl { virtual ~ServiceInterface(); void start(); void stop(); - void onServiceData(const ememory::SharedPtr& _value); + void onServiceData(ememory::SharedPtr _value); public: - void SendData(uint64_t _userSessionId, const ememory::SharedPtr& _data); + void SendData(uint64_t _userSessionId, ememory::SharedPtr _data); const std::string& getName() { return m_name; }