summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/event.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-01-03 01:22:02 +0100
committerLiam <byteslice@airmail.cc>2024-01-30 00:43:45 +0100
commita7e9d7842dc78e09bfe50ba3bc471b8a75d29b96 (patch)
tree075bbdbcf1d3afa6404220b14490be77fdacc32c /src/core/hle/service/event.h
parentservice: split am into components (diff)
downloadyuzu-a7e9d7842dc78e09bfe50ba3bc471b8a75d29b96.tar
yuzu-a7e9d7842dc78e09bfe50ba3bc471b8a75d29b96.tar.gz
yuzu-a7e9d7842dc78e09bfe50ba3bc471b8a75d29b96.tar.bz2
yuzu-a7e9d7842dc78e09bfe50ba3bc471b8a75d29b96.tar.lz
yuzu-a7e9d7842dc78e09bfe50ba3bc471b8a75d29b96.tar.xz
yuzu-a7e9d7842dc78e09bfe50ba3bc471b8a75d29b96.tar.zst
yuzu-a7e9d7842dc78e09bfe50ba3bc471b8a75d29b96.zip
Diffstat (limited to 'src/core/hle/service/event.h')
-rw-r--r--src/core/hle/service/event.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/core/hle/service/event.h b/src/core/hle/service/event.h
new file mode 100644
index 000000000..cdbc4635a
--- /dev/null
+++ b/src/core/hle/service/event.h
@@ -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