diff options
author | Subv <subv2112@gmail.com> | 2016-12-08 21:01:10 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2016-12-08 21:01:10 +0100 |
commit | 386112da3265d111595329508b860800e5cf14e8 (patch) | |
tree | 7cb27e289abd255ff7f371eff0f9d1ddd07b5d11 /src/core/hle/service/service.cpp | |
parent | Use std::move where appropriate. (diff) | |
download | yuzu-386112da3265d111595329508b860800e5cf14e8.tar yuzu-386112da3265d111595329508b860800e5cf14e8.tar.gz yuzu-386112da3265d111595329508b860800e5cf14e8.tar.bz2 yuzu-386112da3265d111595329508b860800e5cf14e8.tar.lz yuzu-386112da3265d111595329508b860800e5cf14e8.tar.xz yuzu-386112da3265d111595329508b860800e5cf14e8.tar.zst yuzu-386112da3265d111595329508b860800e5cf14e8.zip |
Diffstat (limited to 'src/core/hle/service/service.cpp')
-rw-r--r-- | src/core/hle/service/service.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 6ea5cf745..167cb09a8 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp @@ -2,6 +2,8 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include <boost/range/algorithm_ext/erase.hpp> + #include "common/logging/log.h" #include "common/string_util.h" @@ -79,6 +81,14 @@ ResultCode SessionRequestHandler::HandleSyncRequest(Kernel::SharedPtr<Kernel::Se return RESULT_SUCCESS; } +void SessionRequestHandler::ClientConnected(Kernel::SharedPtr<Kernel::ServerSession> server_session) { + connected_sessions.push_back(server_session); +} + +void SessionRequestHandler::ClientDisconnected(Kernel::SharedPtr<Kernel::ServerSession> server_session) { + boost::range::remove_erase(connected_sessions, server_session); +} + ResultCode SessionRequestHandler::TranslateRequest(Kernel::SharedPtr<Kernel::ServerSession> server_session) { // TODO(Subv): Implement this function once multiple concurrent processes are supported. return RESULT_SUCCESS; |