mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 07:08:16 -05:00
kernel: Add basic support for Domain object.
This commit is contained in:
@ -31,6 +31,7 @@ enum class HandleType : u32 {
|
||||
ServerPort,
|
||||
ClientSession,
|
||||
ServerSession,
|
||||
Domain,
|
||||
};
|
||||
|
||||
enum {
|
||||
@ -83,12 +84,28 @@ public:
|
||||
case HandleType::CodeSet:
|
||||
case HandleType::ClientPort:
|
||||
case HandleType::ClientSession:
|
||||
case HandleType::Domain:
|
||||
return false;
|
||||
}
|
||||
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if svcSendSyncRequest can be called on the object
|
||||
* @return True svcSendSyncRequest can be called on the object, otherwise false
|
||||
*/
|
||||
bool IsSyncable() const {
|
||||
switch (GetHandleType()) {
|
||||
case HandleType::ClientSession:
|
||||
case HandleType::Domain:
|
||||
return true;
|
||||
}
|
||||
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
|
||||
public:
|
||||
static unsigned int next_object_id;
|
||||
|
||||
|
Reference in New Issue
Block a user