summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/server_port.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* kernel/server_port: Make data members privateLioncash2019-03-111-9/+26
| | | | | | | With this, all kernel objects finally have all of their data members behind an interface, making it nicer to reason about interactions with other code (as external code no longer has the freedom to totally alter internals and potentially messing up invariants).
* Ported #4296 from citraDavid Marcec2018-10-061-0/+1
| | | | This will allow us to easily remove the use of "NFC" in "System"
* kernel: Eliminate kernel global stateLioncash2018-08-291-2/+4
| | | | | | | | | | | | | | | | | | | | | | 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.
* kernel: Move object class to its own source filesLioncash2018-08-021-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.
* kernel: Remove unnecessary includesLioncash2018-07-311-0/+1
| | | | | Removes unnecessary direct dependencies in some headers and also gets rid of indirect dependencies that were being relied on to be included.
* Format: Run the new clang format on everythingJames Rowe2018-01-211-1/+1
|
* Kernel: Implement AcceptSession SVCYuri Kunde Schlesner2017-06-231-2/+9
|
* Kernel: Add a dedicated SetHleHandler method to ServerPort/ServerSessionYuri Kunde Schlesner2017-06-061-4/+10
| | | | | | This allows attaching a HLE handle to a ServerPort at any point after it is created, allowing port/session creation to be generic between HLE and regular services.
* HLE: Move SessionRequestHandler from Service:: to Kernel::Yuri Kunde Schlesner2017-06-061-6/+3
| | | | | Most of the code that works with this is or will be in the kernel, so it's a more appropriate place for it to be.
* Kernel: Move WaitObject to a separate fileYuri Kunde Schlesner2017-05-301-0/+1
| | | | | Now that HandleTable doesn't directly depend on WaitObject anymore, this can be separated from the main kernel.h header.
* Kernel: Object ShouldWait and Acquire calls now take a thread as a parameter.Subv2017-01-041-2/+2
| | | | This will be useful when implementing mutex priority inheritance.
* Split SessionRequestHandler::HandleSyncRequest into HandleSyncRequest, TranslateRequest and HandleSyncRequestImpl.Subv2016-12-051-0/+1
| | | | HandleSyncRequest now takes care of calling the command buffer translate function before actually invoking the command handler for HLE services.
* KServerPorts now have an HLE handler "template", which is inherited by all ServerSessions created from it.Subv2016-12-051-1/+12
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-211-2/+0
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner2016-09-191-2/+2
|
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-181-6/+14
|
* Kernel/SVC: Implemented svcCreatePort.Subv2016-06-111-1/+4
|
* Kernel: Added ClientPort and ServerPort classes.Subv2016-06-051-0/+43
This is part of an ongoing effort to implement support for multiple processes.