mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-06 11:01:38 +12:00
Hopefully we're good to start sending commands to services now
This commit is contained in:
parent
208c18356b
commit
6154a360c6
10 changed files with 110 additions and 32 deletions
|
@ -2,11 +2,14 @@
|
|||
#include <array>
|
||||
#include "helpers.hpp"
|
||||
#include "memory.hpp"
|
||||
#include "services/apt.hpp"
|
||||
|
||||
class ServiceManager {
|
||||
std::array<u32, 16>& regs;
|
||||
Memory& mem;
|
||||
|
||||
APTService apt;
|
||||
|
||||
// "srv:" commands
|
||||
void getServiceHandle(u32 messagePointer);
|
||||
void registerClient(u32 messagePointer);
|
||||
|
@ -14,5 +17,8 @@ class ServiceManager {
|
|||
public:
|
||||
ServiceManager(std::array<u32, 16>& regs, Memory& mem);
|
||||
void reset();
|
||||
void handleSyncRequest(u32 TLSPointer);
|
||||
void handleSyncRequest(u32 messagePointer);
|
||||
|
||||
// Forward a SendSyncRequest IPC message to the service with the respective handle
|
||||
void sendCommandToService(u32 messagePointer, Handle handle);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue