diff options
author | bunnei <bunneidev@gmail.com> | 2018-02-15 04:22:41 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-02-15 04:22:41 +0100 |
commit | 42c062c620b8aff1bee000691f997b0cf0388d15 (patch) | |
tree | 243e3377a9cec540c6747cc1b9cc830c732c0661 /src/core/hle/service/ns/pl_u.h | |
parent | log: Add logging category for NS services. (diff) | |
download | yuzu-42c062c620b8aff1bee000691f997b0cf0388d15.tar yuzu-42c062c620b8aff1bee000691f997b0cf0388d15.tar.gz yuzu-42c062c620b8aff1bee000691f997b0cf0388d15.tar.bz2 yuzu-42c062c620b8aff1bee000691f997b0cf0388d15.tar.lz yuzu-42c062c620b8aff1bee000691f997b0cf0388d15.tar.xz yuzu-42c062c620b8aff1bee000691f997b0cf0388d15.tar.zst yuzu-42c062c620b8aff1bee000691f997b0cf0388d15.zip |
Diffstat (limited to 'src/core/hle/service/ns/pl_u.h')
-rw-r--r-- | src/core/hle/service/ns/pl_u.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/core/hle/service/ns/pl_u.h b/src/core/hle/service/ns/pl_u.h new file mode 100644 index 000000000..7a4766338 --- /dev/null +++ b/src/core/hle/service/ns/pl_u.h @@ -0,0 +1,33 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include <memory> +#include "core/hle/kernel/shared_memory.h" +#include "core/hle/service/service.h" + +namespace Service { +namespace NS { + +class PL_U final : public ServiceFramework<PL_U> { +public: + PL_U(); + ~PL_U() = default; + +private: + void GetLoadState(Kernel::HLERequestContext& ctx); + void GetSize(Kernel::HLERequestContext& ctx); + void GetSharedMemoryAddressOffset(Kernel::HLERequestContext& ctx); + void GetSharedMemoryNativeHandle(Kernel::HLERequestContext& ctx); + + /// Handle to shared memory region designated for a shared font + Kernel::SharedPtr<Kernel::SharedMemory> shared_font_mem; + + /// Backing memory for the shared font data + std::shared_ptr<std::vector<u8>> shared_font; +}; + +} // namespace NS +} // namespace Service |