summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/pctl/parental_control_service_factory.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-23 17:34:29 +0100
committerGitHub <noreply@github.com>2024-02-23 17:34:29 +0100
commitfa4dec9fe9ff67b0a4f73953b18f0cd7e1698bd5 (patch)
tree04d960417c9c4aef9108b8640ebf4e82fc3f28a1 /src/core/hle/service/pctl/parental_control_service_factory.h
parentMerge pull request #13100 from liamwhite/audio-ipc (diff)
parentpctl: rewrite IParentalControlService (diff)
downloadyuzu-fa4dec9fe9ff67b0a4f73953b18f0cd7e1698bd5.tar
yuzu-fa4dec9fe9ff67b0a4f73953b18f0cd7e1698bd5.tar.gz
yuzu-fa4dec9fe9ff67b0a4f73953b18f0cd7e1698bd5.tar.bz2
yuzu-fa4dec9fe9ff67b0a4f73953b18f0cd7e1698bd5.tar.lz
yuzu-fa4dec9fe9ff67b0a4f73953b18f0cd7e1698bd5.tar.xz
yuzu-fa4dec9fe9ff67b0a4f73953b18f0cd7e1698bd5.tar.zst
yuzu-fa4dec9fe9ff67b0a4f73953b18f0cd7e1698bd5.zip
Diffstat (limited to 'src/core/hle/service/pctl/parental_control_service_factory.h')
-rw-r--r--src/core/hle/service/pctl/parental_control_service_factory.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/core/hle/service/pctl/parental_control_service_factory.h b/src/core/hle/service/pctl/parental_control_service_factory.h
new file mode 100644
index 000000000..362988add
--- /dev/null
+++ b/src/core/hle/service/pctl/parental_control_service_factory.h
@@ -0,0 +1,31 @@
+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "core/hle/service/cmif_types.h"
+#include "core/hle/service/pctl/pctl_types.h"
+#include "core/hle/service/service.h"
+
+namespace Service::PCTL {
+
+class IParentalControlService;
+
+class IParentalControlServiceFactory : public ServiceFramework<IParentalControlServiceFactory> {
+public:
+ explicit IParentalControlServiceFactory(Core::System& system_, const char* name_,
+ Capability capability_);
+ ~IParentalControlServiceFactory() override;
+
+ Result CreateService(Out<SharedPointer<IParentalControlService>> out_service,
+ ClientProcessId process_id);
+ Result CreateServiceWithoutInitialize(Out<SharedPointer<IParentalControlService>> out_service,
+ ClientProcessId process_id);
+
+private:
+ Capability capability{};
+};
+
+void LoopProcess(Core::System& system);
+
+} // namespace Service::PCTL