diff options
author | Liam <byteslice@airmail.cc> | 2023-03-07 02:34:25 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-03-13 03:06:53 +0100 |
commit | 097c25b164ba830b8d4a89926a3e90d297d06d8f (patch) | |
tree | 646caab83e97e60249ed102596a968be10acfec8 /src/core/hle/kernel/k_port.h | |
parent | kernel: convert GlobalSchedulerContext, KAddressArbiter, KScopedSchedulerLockAndSleep, KThreadQueue to new style (diff) | |
download | yuzu-097c25b164ba830b8d4a89926a3e90d297d06d8f.tar yuzu-097c25b164ba830b8d4a89926a3e90d297d06d8f.tar.gz yuzu-097c25b164ba830b8d4a89926a3e90d297d06d8f.tar.bz2 yuzu-097c25b164ba830b8d4a89926a3e90d297d06d8f.tar.lz yuzu-097c25b164ba830b8d4a89926a3e90d297d06d8f.tar.xz yuzu-097c25b164ba830b8d4a89926a3e90d297d06d8f.tar.zst yuzu-097c25b164ba830b8d4a89926a3e90d297d06d8f.zip |
Diffstat (limited to 'src/core/hle/kernel/k_port.h')
-rw-r--r-- | src/core/hle/kernel/k_port.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/core/hle/kernel/k_port.h b/src/core/hle/kernel/k_port.h index 0cfc16dab..f2a08547c 100644 --- a/src/core/hle/kernel/k_port.h +++ b/src/core/hle/kernel/k_port.h @@ -22,14 +22,17 @@ public: explicit KPort(KernelCore& kernel_); ~KPort() override; - static void PostDestroy([[maybe_unused]] uintptr_t arg) {} + static void PostDestroy(uintptr_t arg) {} - void Initialize(s32 max_sessions_, bool is_light_, const std::string& name_); + void Initialize(s32 max_sessions, bool is_light, uintptr_t name); void OnClientClosed(); void OnServerClosed(); + uintptr_t GetName() const { + return m_name; + } bool IsLight() const { - return is_light; + return m_is_light; } bool IsServerClosed() const; @@ -37,16 +40,16 @@ public: Result EnqueueSession(KServerSession* session); KClientPort& GetClientPort() { - return client; + return m_client; } KServerPort& GetServerPort() { - return server; + return m_server; } const KClientPort& GetClientPort() const { - return client; + return m_client; } const KServerPort& GetServerPort() const { - return server; + return m_server; } private: @@ -57,10 +60,11 @@ private: ServerClosed = 3, }; - KServerPort server; - KClientPort client; - State state{State::Invalid}; - bool is_light{}; + KServerPort m_server; + KClientPort m_client; + uintptr_t m_name; + State m_state{State::Invalid}; + bool m_is_light{}; }; } // namespace Kernel |