mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-28 13:44:11 -04:00
tipc/sm: update more fully for 13.0.0 changes
This commit is contained in:
parent
ca25a884b5
commit
891fa32bf1
10 changed files with 357 additions and 309 deletions
|
@ -16,7 +16,7 @@
|
|||
#pragma once
|
||||
#include <vapours.hpp>
|
||||
#include <stratosphere/tipc/tipc_common.hpp>
|
||||
#include <stratosphere/tipc/tipc_service_object.hpp>
|
||||
#include <stratosphere/tipc/tipc_service_object_base.hpp>
|
||||
|
||||
namespace ams::tipc {
|
||||
|
||||
|
@ -26,6 +26,8 @@ namespace ams::tipc {
|
|||
ObjectType_Invalid = 0,
|
||||
ObjectType_Port = 1,
|
||||
ObjectType_Session = 2,
|
||||
|
||||
ObjectType_Deferral = ObjectType_Invalid,
|
||||
};
|
||||
private:
|
||||
os::NativeHandle m_handle;
|
||||
|
@ -57,6 +59,10 @@ namespace ams::tipc {
|
|||
this->InitializeImpl(ObjectType_Session, handle, managed, object);
|
||||
}
|
||||
|
||||
void InitializeForDeferralManager(os::NativeHandle handle, tipc::ServiceObjectBase *object) {
|
||||
this->InitializeImpl(ObjectType_Deferral, handle, false, object);
|
||||
}
|
||||
|
||||
void Destroy() {
|
||||
/* Validate that the object is constructed. */
|
||||
AMS_ASSERT(m_type != ObjectType_Invalid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue