mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2025-08-09 11:42:33 -07:00
Merge pull request #2249 from Subv/sessions_v3
Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.
This commit is contained in:
@@ -14,6 +14,9 @@ class Interface;
|
||||
|
||||
namespace APT {
|
||||
|
||||
/// Each APT service can only have up to 2 sessions connected at the same time.
|
||||
static const u32 MaxAPTSessions = 2;
|
||||
|
||||
/// Holds information about the parameters used in Send/Glance/ReceiveParameter
|
||||
struct MessageParameter {
|
||||
u32 sender_id = 0;
|
||||
|
@@ -102,7 +102,7 @@ const Interface::FunctionInfo FunctionTable[] = {
|
||||
{0x01050100, nullptr, "IsTitleAllowed"},
|
||||
};
|
||||
|
||||
APT_A_Interface::APT_A_Interface() {
|
||||
APT_A_Interface::APT_A_Interface() : Interface(MaxAPTSessions) {
|
||||
Register(FunctionTable);
|
||||
}
|
||||
|
||||
|
@@ -102,7 +102,7 @@ const Interface::FunctionInfo FunctionTable[] = {
|
||||
{0x01050100, nullptr, "IsTitleAllowed"},
|
||||
};
|
||||
|
||||
APT_S_Interface::APT_S_Interface() {
|
||||
APT_S_Interface::APT_S_Interface() : Interface(MaxAPTSessions) {
|
||||
Register(FunctionTable);
|
||||
}
|
||||
|
||||
|
@@ -99,7 +99,7 @@ const Interface::FunctionInfo FunctionTable[] = {
|
||||
{0x01020000, CheckNew3DS, "CheckNew3DS"},
|
||||
};
|
||||
|
||||
APT_U_Interface::APT_U_Interface() {
|
||||
APT_U_Interface::APT_U_Interface() : Interface(MaxAPTSessions) {
|
||||
Register(FunctionTable);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user