summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ns/pl_u.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-02-15 23:22:59 +0100
committerGitHub <noreply@github.com>2018-02-15 23:22:59 +0100
commit98ffad4303b39dcef7cbd0e7a2b2c3b61fc123a0 (patch)
tree840f1b480af1250ee50aaca5d30baa7a05f9313c /src/core/hle/service/ns/pl_u.h
parentMerge pull request #188 from bunnei/refactor-buffer-descriptor (diff)
parentshared_memory: Remove some checks. (diff)
downloadyuzu-98ffad4303b39dcef7cbd0e7a2b2c3b61fc123a0.tar
yuzu-98ffad4303b39dcef7cbd0e7a2b2c3b61fc123a0.tar.gz
yuzu-98ffad4303b39dcef7cbd0e7a2b2c3b61fc123a0.tar.bz2
yuzu-98ffad4303b39dcef7cbd0e7a2b2c3b61fc123a0.tar.lz
yuzu-98ffad4303b39dcef7cbd0e7a2b2c3b61fc123a0.tar.xz
yuzu-98ffad4303b39dcef7cbd0e7a2b2c3b61fc123a0.tar.zst
yuzu-98ffad4303b39dcef7cbd0e7a2b2c3b61fc123a0.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/ns/pl_u.h33
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