diff options
author | FearlessTobi <thm.frey@gmail.com> | 2024-02-19 16:36:24 +0100 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2024-02-19 16:36:24 +0100 |
commit | aa6532cf34a57830dd839d685691ae26e96e1bc5 (patch) | |
tree | 091f1826f28589f4eb2498e6ee268fec196b1082 /src/core/hle/service/aoc/purchase_event_manager.h | |
parent | Merge pull request #13006 from liamwhite/a-hat-in-vram (diff) | |
download | yuzu-aa6532cf34a57830dd839d685691ae26e96e1bc5.tar yuzu-aa6532cf34a57830dd839d685691ae26e96e1bc5.tar.gz yuzu-aa6532cf34a57830dd839d685691ae26e96e1bc5.tar.bz2 yuzu-aa6532cf34a57830dd839d685691ae26e96e1bc5.tar.lz yuzu-aa6532cf34a57830dd839d685691ae26e96e1bc5.tar.xz yuzu-aa6532cf34a57830dd839d685691ae26e96e1bc5.tar.zst yuzu-aa6532cf34a57830dd839d685691ae26e96e1bc5.zip |
Diffstat (limited to 'src/core/hle/service/aoc/purchase_event_manager.h')
-rw-r--r-- | src/core/hle/service/aoc/purchase_event_manager.h | 28 |
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 |