summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/bcat/service_creator.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-02-09 17:31:35 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2024-02-10 07:23:23 +0100
commit816d03f7d96278c5b3d2604f94901270b10d4167 (patch)
tree3ef3a65b365de1217d60b9aad6a6d063e800e07b /src/core/hle/service/bcat/service_creator.h
parentservice: bcat: Implement news interfaces (diff)
downloadyuzu-816d03f7d96278c5b3d2604f94901270b10d4167.tar
yuzu-816d03f7d96278c5b3d2604f94901270b10d4167.tar.gz
yuzu-816d03f7d96278c5b3d2604f94901270b10d4167.tar.bz2
yuzu-816d03f7d96278c5b3d2604f94901270b10d4167.tar.lz
yuzu-816d03f7d96278c5b3d2604f94901270b10d4167.tar.xz
yuzu-816d03f7d96278c5b3d2604f94901270b10d4167.tar.zst
yuzu-816d03f7d96278c5b3d2604f94901270b10d4167.zip
Diffstat (limited to 'src/core/hle/service/bcat/service_creator.h')
-rw-r--r--src/core/hle/service/bcat/service_creator.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/core/hle/service/bcat/service_creator.h b/src/core/hle/service/bcat/service_creator.h
new file mode 100644
index 000000000..50e663324
--- /dev/null
+++ b/src/core/hle/service/bcat/service_creator.h
@@ -0,0 +1,40 @@
+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include "core/hle/service/cmif_types.h"
+#include "core/hle/service/service.h"
+
+namespace Core {
+class System;
+}
+
+namespace Service::FileSystem {
+class FileSystemController;
+}
+
+namespace Service::BCAT {
+class BcatBackend;
+class IBcatService;
+class IDeliveryCacheStorageService;
+
+class IServiceCreator final : public ServiceFramework<IServiceCreator> {
+public:
+ explicit IServiceCreator(Core::System& system_, const char* name_);
+ ~IServiceCreator() override;
+
+private:
+ Result CreateBcatService(ClientProcessId process_id, OutInterface<IBcatService> out_interface);
+
+ Result CreateDeliveryCacheStorageService(
+ ClientProcessId process_id, OutInterface<IDeliveryCacheStorageService> out_interface);
+
+ Result CreateDeliveryCacheStorageServiceWithApplicationId(
+ u64 application_id, OutInterface<IDeliveryCacheStorageService> out_interface);
+
+ std::unique_ptr<BcatBackend> backend;
+ Service::FileSystem::FileSystemController& fsc;
+};
+
+} // namespace Service::BCAT