kernel: Add basic support for Domain object.

This commit is contained in:
bunnei 2017-12-28 23:30:21 -05:00
parent 834fa5db65
commit e17c0019c5
5 changed files with 112 additions and 4 deletions

View file

@ -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;