diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-02-24 18:48:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-24 18:48:26 +0100 |
commit | dcf7698924867dbf1fffd0e0cf9f91dd1f7323a9 (patch) | |
tree | 2556d5d884e8928bb322220035b319ad4708acfb /src/core/hle/service/aoc/purchase_event_manager.h | |
parent | Merge pull request #13150 from liamwhite/region (diff) | |
parent | aoc: Rename AOC_U to IAddOnContentManager (diff) | |
download | yuzu-dcf7698924867dbf1fffd0e0cf9f91dd1f7323a9.tar yuzu-dcf7698924867dbf1fffd0e0cf9f91dd1f7323a9.tar.gz yuzu-dcf7698924867dbf1fffd0e0cf9f91dd1f7323a9.tar.bz2 yuzu-dcf7698924867dbf1fffd0e0cf9f91dd1f7323a9.tar.lz yuzu-dcf7698924867dbf1fffd0e0cf9f91dd1f7323a9.tar.xz yuzu-dcf7698924867dbf1fffd0e0cf9f91dd1f7323a9.tar.zst yuzu-dcf7698924867dbf1fffd0e0cf9f91dd1f7323a9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/aoc/purchase_event_manager.h | 30 |
1 files changed, 30 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..ea3836bc9 --- /dev/null +++ b/src/core/hle/service/aoc/purchase_event_manager.h @@ -0,0 +1,30 @@ +// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "core/hle/service/cmif_types.h" +#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; + + Result SetDefaultDeliveryTarget(ClientProcessId process_id, + InBuffer<BufferAttr_HipcMapAlias> in_buffer); + Result SetDeliveryTarget(u64 unknown, InBuffer<BufferAttr_HipcMapAlias> in_buffer); + Result GetPurchasedEvent(OutCopyHandle<Kernel::KReadableEvent> out_event); + Result PopPurchasedProductInfo(); + Result PopPurchasedProductInfoWithUid(); + +private: + KernelHelpers::ServiceContext service_context; + Kernel::KEvent* purchased_event; +}; + +} // namespace Service::AOC |