am: add new datatypes for per-applet state
This commit is contained in:
parent
7de6b41030
commit
a7e9d7842d
19 changed files with 1496 additions and 1 deletions
31
src/core/hle/service/event.h
Normal file
31
src/core/hle/service/event.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Kernel {
|
||||
class KEvent;
|
||||
class KReadableEvent;
|
||||
} // namespace Kernel
|
||||
|
||||
namespace Service {
|
||||
|
||||
namespace KernelHelpers {
|
||||
class ServiceContext;
|
||||
}
|
||||
|
||||
class Event {
|
||||
public:
|
||||
explicit Event(KernelHelpers::ServiceContext& ctx);
|
||||
~Event();
|
||||
|
||||
void Signal();
|
||||
void Clear();
|
||||
|
||||
Kernel::KReadableEvent* GetHandle();
|
||||
|
||||
private:
|
||||
Kernel::KEvent* m_event;
|
||||
};
|
||||
|
||||
} // namespace Service
|
||||
Reference in a new issue