summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/client_port.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-10-06Added forward define for ServerPortDavid Marcec1-4/+2
2018-10-06Ported #4296 from citraDavid Marcec1-1/+5
This will allow us to easily remove the use of "NFC" in "System"
2018-08-29kernel: Eliminate kernel global stateLioncash1-2/+3
As means to pave the way for getting rid of global state within core, This eliminates kernel global state by removing all globals. Instead this introduces a KernelCore class which acts as a kernel instance. This instance lives in the System class, which keeps its lifetime contained to the lifetime of the System class. This also forces the kernel types to actually interact with the main kernel instance itself instead of having transient kernel state placed all over several translation units, keeping everything together. It also has a nice consequence of making dependencies much more explicit. This also makes our initialization a tad bit more correct. Previously we were creating a kernel process before the actual kernel was initialized, which doesn't really make much sense. The KernelCore class itself follows the PImpl idiom, which allows keeping all the implementation details sealed away from everything else, which forces the use of the exposed API and allows us to avoid any unnecessary inclusions within the main kernel header.
2018-08-07client_port: Make all data members privateLioncash1-4/+10
These members don't need to be entirely exposed, we can instead expose an API to operate on them without directly needing to mutate them We can also guard against overflow/API misuse this way as well, given active_sessions is an unsigned value.
2018-08-02kernel: Move object class to its own source filesLioncash1-1/+1
General moving to keep kernel object types separate from the direct kernel code. Also essentially a preliminary cleanup before eliminating global kernel state in the kernel code.
2018-01-21Format: Run the new clang format on everythingJames Rowe1-1/+1
2017-05-30Kernel: Move HandleTable to a separate fileYuri Kunde Schlesner1-0/+1
2016-12-14Fixed the codestyle to match our clang-format rules.Subv1-2/+3
2016-12-05Return an error code when connecting to a saturated port.Subv1-2/+2
The error code was taken from the 3DS kernel.
2016-12-05KServerPorts now have an HLE handler "template", which is inherited by all ServerSessions created from it.Subv1-4/+6
2016-12-01Fixed the rebase mistakes.Subv1-17/+15
2016-12-01A bit of a redesign.Subv1-11/+1
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.
2016-12-01IPC/HLE: Associate the ClientSessions with their parent port's HLE interface if it exists.Subv1-9/+3
Pass the triggering ServerSession to the HLE command handler to differentiate which session caused the request.
2016-12-01Kernel/HLE: Service::Interface no longer inherits from any Kernel object, and is now its own standalone class.Subv1-8/+21
Interface is now used by aggregation in ClientPort, to forward service commands to their HLE implementation if needed.
2016-12-01 Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.Subv1-6/+17
All handles obtained via srv::GetServiceHandle or svcConnectToPort are references to ClientSessions. Service modules will wait on the counterpart of those ClientSessions (Called ServerSessions) using svcReplyAndReceive or svcWaitSynchronization[1|N], and will be awoken when a SyncRequest is performed. HLE Interfaces are now ClientPorts which override the HandleSyncRequest virtual member function to perform command handling immediately.
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-2/+0
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-8/+14
2016-06-11Kernel/SVC: Implemented svcCreatePort.Subv1-0/+2
2016-06-05Kernel: Added ClientPort and ServerPort classes.Subv1-0/+34
This is part of an ongoing effort to implement support for multiple processes.