diff options
author | Zephyron <zephyron@citron-emu.org> | 2025-01-25 15:20:01 +1000 |
---|---|---|
committer | Zephyron <zephyron@citron-emu.org> | 2025-01-25 15:20:01 +1000 |
commit | 5ba970b574f6df377b57716781ec966a3c8feff1 (patch) | |
tree | fcc9a636db0c8277ef491dd4ecd1aad169b7ffc9 /src/core/constants.cpp | |
parent | 58ed33dd9fe06b7a30238f5404deade11a927f9d (diff) |
service: sm: Update to match official IPC interface
Updates the SM service implementation to better match the official
"nn::sm::detail::IUserInterface" interface. Key changes include:
- Replace Initialize with RegisterClient command (cmd 0)
- Add DetachClient command implementation (cmd 4)
- Update service name handling to use u64-encoded names
- Add proper PID descriptor handling for RegisterClient/DetachClient
- Add ResultNotAllowed error code
- Update handler registration for both CMIF and TIPC
This brings the implementation closer to the official documentation while
maintaining compatibility with existing code.
Refs: switchbrew.org/wiki/Services_API#sm:
Diffstat (limited to 'src/core/constants.cpp')
0 files changed, 0 insertions, 0 deletions