aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/client_port.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2016-11-30 22:50:13 -0500
committerSubv <subv2112@gmail.com>2016-11-30 23:12:35 -0500
commit4f2326c8a9a47cb0ec43ccf129b35b1de35f9338 (patch)
tree060b6a82ad6c093b1832cd9e96a4fdacf29448b5 /src/core/hle/kernel/client_port.cpp
parentd2305d375f14fdbe83b54606c8f8599234ead29b (diff)
A bit of a redesign.
Sessions and Ports are now detached from each other. HLE services are handled by means of a SessionRequestHandler class, Interface now inherits from this class. The File and Directory classes are no longer kernel objects, but SessionRequestHandlers instead, bound to a ServerSession when requested. File::OpenLinkFile now creates a new session pair and binds the File instance to it.
Diffstat (limited to 'src/core/hle/kernel/client_port.cpp')
-rw-r--r--src/core/hle/kernel/client_port.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/core/hle/kernel/client_port.cpp b/src/core/hle/kernel/client_port.cpp
index 0ac36cd127..de67688c93 100644
--- a/src/core/hle/kernel/client_port.cpp
+++ b/src/core/hle/kernel/client_port.cpp
@@ -14,21 +14,7 @@ namespace Kernel {
ClientPort::ClientPort() {}
ClientPort::~ClientPort() {}
-Kernel::SharedPtr<ClientPort> ClientPort::CreateForHLE(u32 max_sessions, std::shared_ptr<Service::Interface> hle_interface) {
- SharedPtr<ClientPort> client_port(new ClientPort);
- client_port->max_sessions = max_sessions;
- client_port->active_sessions = 0;
- client_port->name = hle_interface->GetPortName();
- client_port->hle_interface = std::move(hle_interface);
-
- return client_port;
-}
-
void ClientPort::AddWaitingSession(SharedPtr<ServerSession> server_session) {
- // A port that has an associated HLE interface doesn't have a server port.
- if (hle_interface != nullptr)
- return;
-
server_port->pending_sessions.push_back(server_session);
// Wake the threads waiting on the ServerPort
server_port->WakeupAllWaitingThreads();