summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/aoc/purchase_event_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/service/aoc/purchase_event_manager.h')
-rw-r--r--src/core/hle/service/aoc/purchase_event_manager.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/core/hle/service/aoc/purchase_event_manager.h b/src/core/hle/service/aoc/purchase_event_manager.h
new file mode 100644
index 000000000..efde3c8f3
--- /dev/null
+++ b/src/core/hle/service/aoc/purchase_event_manager.h
@@ -0,0 +1,28 @@
+// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "core/hle/service/kernel_helpers.h"
+#include "core/hle/service/os/event.h"
+#include "core/hle/service/service.h"
+
+namespace Service::AOC {
+
+class IPurchaseEventManager final : public ServiceFramework<IPurchaseEventManager> {
+public:
+ explicit IPurchaseEventManager(Core::System& system_);
+ ~IPurchaseEventManager() override;
+
+ void SetDefaultDeliveryTarget(HLERequestContext& ctx);
+ void SetDeliveryTarget(HLERequestContext& ctx);
+ void GetPurchasedEventReadableHandle(HLERequestContext& ctx);
+ void PopPurchasedProductInfo(HLERequestContext& ctx);
+ void PopPurchasedProductInfoWithUid(HLERequestContext& ctx);
+
+private:
+ KernelHelpers::ServiceContext service_context;
+ Kernel::KEvent* purchased_event;
+};
+
+} // namespace Service::AOC