summaryrefslogtreecommitdiffstats
path: root/src/core/hle/ipc_helpers.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Removed MakeBuilder as it's not needed anymoreDavid Marcec2018-09-191-7/+0
|
* Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi2018-09-151-6/+6
|
* kernel: Eliminate kernel global stateLioncash2018-08-291-1/+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-2/+5
| | | | | | 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.
* Merge pull request #800 from lioncash/setbunnei2018-07-251-0/+8
|\ | | | | set_sys: Implement SetColorSetId()
| * ipc_helper: Add helper member function for popping enum values to RequestParserLioncash2018-07-241-0/+8
| |
* | hle_ipc: Make constructors explicit where applicableLioncash2018-07-241-11/+12
| |
* | ipc_helpers: Make member variables of ResponseBuilder privateLioncash2018-07-241-5/+6
|/ | | | These aren't used externally at all, so they can be made private.
* ipc_helpers: Add PushEnum() member function to ResponseBuilderLioncash2018-07-201-0/+19
| | | | | | | | | | | | | | | | | | | | Allows pushing strongly-typed enum members without the need to always cast them at the call sites. Note that we *only* allow strongly-typed enums in this case. The reason for this is that strongly typed enums have a guaranteed defined size, so the size of the data being pushed is always deterministic. With regular enums this can be a little more error-prone, so we disallow them. This function simply uses the underlying type of the enum to determine the size of the data. For example, if an enum is defined as: enum class SomeEnum : u16 { SomeEntry }; if PushEnum(SomeEnum::SomeEntry); is called, then it will push a u16-size amount of data.
* ipc: Add support for PopIpcInterface() method.bunnei2018-05-021-0/+7
| | | | - This can be used for domain objects as inputs to service functions.
* Fix: change check for domain order and existance of domain message headermailwl2018-02-201-1/+2
|
* IPC: add domain header to response if only it exists in requestmailwl2018-02-201-1/+1
|
* ResponseBuilder: Use a bit field for customizing instead of always_move_handles.bunnei2018-01-251-9/+18
|
* hle: Rename RequestBuilder to ResponseBuilder.bunnei2018-01-251-20/+21
|
* ipc_helpers: Make interface domain agnostic and add header validation.bunnei2018-01-251-24/+46
|
* hle: Integrate Domain handling into ServerSession.bunnei2018-01-251-3/+3
|
* hle: Remove Domain and SyncObject kernel objects.bunnei2018-01-251-1/+0
|
* IPC: Don't create an unnecessary port when using PushIpcInterface outside of a domain.Subv2018-01-221-4/+5
|
* fsp_srv: Various improvements to IStorage:Read implementation.bunnei2018-01-211-0/+5
|
* Stub PopLaunchParameter and implement Buffer C Descriptors reading on hle_ipc (#96)gdkchan2018-01-181-0/+4
| | | | | | | | | | * Stub PopLaunchParameter and implement Buffer C Descriptors reading * Address PR feedback * Ensure we push a u64 not a size_t * Fix formatting
* IPC: Push domain objects as move handles when not in a domain.Subv2018-01-171-2/+20
|
* IPC: Allow passing arguments to the Interfaces when using PushIpcInterfaceSubv2018-01-111-3/+3
|
* IPC: Take the number of domain objects as a parameter in MakeBuilder.Subv2018-01-071-2/+4
|
* IPC: Fixed pushing ResultCodes into the command buffer.Subv2018-01-071-5/+7
| | | | They should have 32 bits of padding after the error code now.
* IPC: Add functions to read the input move/copy objects from an IPC request.Subv2018-01-071-0/+16
|
* IPC Cleanup: Remove 3DS-specific code and translate copy, move and domain objects in IPC requests.Subv2018-01-071-215/+25
| | | | Popping objects from the buffer is still not implemented.
* IPC: Use the correct size when pushing raw data to the command buffer and fixed pushing domain objects.Subv2018-01-071-5/+14
| | | | Domain object ids are always stored immediately after the raw data.
* kernel: Fix implementation of ConvertSessionToDomain.bunnei2017-12-291-0/+14
|
* ipc_helpers: Fix alignment (was wrong as a result of a dynarmic bug).bunnei2017-10-181-3/+4
|
* hle: Implement ConvertSessionToDomain, various cleanups.bunnei2017-10-151-1/+1
|
* hle: Initial implementation of NX service framework and IPC.bunnei2017-10-151-71/+51
|
* Fixed type conversion ambiguityHuw Pascoe2017-09-301-6/+6
|
* Kernel: Allow clearing request_objects to re-use buffer spaceYuri Kunde Schlesner2017-06-111-0/+3
| | | | | Reduces the necessary allocation to max(in_handles, out_handles) rather than (in_handles + out_handles).
* IPC: Add Pop/PushObjects methods to RequestParser/BuilderYuri Kunde Schlesner2017-06-111-10/+103
| | | | | These use the context functions to create and look-up handles for the user.
* IPC: Add basic HLERequestContext support to RequestParser/BuilderYuri Kunde Schlesner2017-06-111-1/+32
|
* Kernel: Move HandleTable to a separate fileYuri Kunde Schlesner2017-05-301-0/+2
|
* IPCHelper Skip method + address comments for aptLectem2017-03-181-1/+7
|
* fix #2560 and other commentsLectem2017-03-181-2/+2
|
* move push out of class body and add u8 u16 bool specializationsLectem2017-03-181-46/+106
|
* refactor APT service to use the new IPC helpersLectem2017-03-181-0/+12
|
* fix wwylele's comment and use typename in templatesLectem2017-02-051-4/+4
|
* move Pop methods out of class bodyLectem2016-12-261-72/+88
|
* IPC helpersLectem2016-12-261-0/+259