mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-02 05:16:19 +12:00
Stub srv:PublishToSubscriber (#766)
Some checks are pending
Android Build / x64 (release) (push) Waiting to run
Android Build / arm64 (release) (push) Waiting to run
HTTP Server Build / build (push) Waiting to run
Hydra Core Build / Windows (push) Waiting to run
Hydra Core Build / MacOS (push) Waiting to run
Hydra Core Build / Linux (push) Waiting to run
Hydra Core Build / Android-x64 (push) Waiting to run
Hydra Core Build / ARM-Libretro (push) Waiting to run
Linux AppImage Build / build (push) Waiting to run
Linux Build / build (push) Waiting to run
MacOS Build / MacOS-arm64 (push) Waiting to run
MacOS Build / MacOS-x86_64 (push) Waiting to run
MacOS Build / MacOS-Universal (push) Blocked by required conditions
Qt Build / Windows (push) Waiting to run
Qt Build / MacOS-arm64 (push) Waiting to run
Qt Build / MacOS-x86_64 (push) Waiting to run
Qt Build / MacOS-Universal (push) Blocked by required conditions
Qt Build / Linux (push) Waiting to run
Windows Build / build (push) Waiting to run
iOS Simulator Build / build (push) Waiting to run
Some checks are pending
Android Build / x64 (release) (push) Waiting to run
Android Build / arm64 (release) (push) Waiting to run
HTTP Server Build / build (push) Waiting to run
Hydra Core Build / Windows (push) Waiting to run
Hydra Core Build / MacOS (push) Waiting to run
Hydra Core Build / Linux (push) Waiting to run
Hydra Core Build / Android-x64 (push) Waiting to run
Hydra Core Build / ARM-Libretro (push) Waiting to run
Linux AppImage Build / build (push) Waiting to run
Linux Build / build (push) Waiting to run
MacOS Build / MacOS-arm64 (push) Waiting to run
MacOS Build / MacOS-x86_64 (push) Waiting to run
MacOS Build / MacOS-Universal (push) Blocked by required conditions
Qt Build / Windows (push) Waiting to run
Qt Build / MacOS-arm64 (push) Waiting to run
Qt Build / MacOS-x86_64 (push) Waiting to run
Qt Build / MacOS-Universal (push) Blocked by required conditions
Qt Build / Linux (push) Waiting to run
Windows Build / build (push) Waiting to run
iOS Simulator Build / build (push) Waiting to run
This commit is contained in:
parent
1fdaec2b0f
commit
eb4e7573da
2 changed files with 15 additions and 5 deletions
|
@ -89,6 +89,7 @@ class ServiceManager {
|
||||||
// "srv:" commands
|
// "srv:" commands
|
||||||
void enableNotification(u32 messagePointer);
|
void enableNotification(u32 messagePointer);
|
||||||
void getServiceHandle(u32 messagePointer);
|
void getServiceHandle(u32 messagePointer);
|
||||||
|
void publishToSubscriber(u32 messagePointer);
|
||||||
void receiveNotification(u32 messagePointer);
|
void receiveNotification(u32 messagePointer);
|
||||||
void registerClient(u32 messagePointer);
|
void registerClient(u32 messagePointer);
|
||||||
void subscribe(u32 messagePointer);
|
void subscribe(u32 messagePointer);
|
||||||
|
|
|
@ -82,7 +82,8 @@ void ServiceManager::handleSyncRequest(u32 messagePointer) {
|
||||||
case Commands::GetServiceHandle: getServiceHandle(messagePointer); break;
|
case Commands::GetServiceHandle: getServiceHandle(messagePointer); break;
|
||||||
case Commands::Subscribe: subscribe(messagePointer); break;
|
case Commands::Subscribe: subscribe(messagePointer); break;
|
||||||
case Commands::Unsubscribe: unsubscribe(messagePointer); break;
|
case Commands::Unsubscribe: unsubscribe(messagePointer); break;
|
||||||
default: Helpers::panic("Unknown \"srv:\" command: %08X", header);
|
case Commands::PublishToSubscriber: publishToSubscriber(messagePointer); break;
|
||||||
|
default: Helpers::panic("Unknown \"srv:\" command: %08X", header); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -203,6 +204,14 @@ void ServiceManager::unsubscribe(u32 messagePointer) {
|
||||||
mem.write32(messagePointer + 4, Result::Success);
|
mem.write32(messagePointer + 4, Result::Success);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ServiceManager::publishToSubscriber(u32 messagePointer) {
|
||||||
|
u32 id = mem.read32(messagePointer + 4);
|
||||||
|
log("srv::PublishToSubscriber (Notification ID = %d) (stubbed)\n", id);
|
||||||
|
|
||||||
|
mem.write32(messagePointer, IPC::responseHeader(0xC, 1, 0));
|
||||||
|
mem.write32(messagePointer + 4, Result::Success);
|
||||||
|
}
|
||||||
|
|
||||||
void ServiceManager::sendCommandToService(u32 messagePointer, Handle handle) {
|
void ServiceManager::sendCommandToService(u32 messagePointer, Handle handle) {
|
||||||
switch (handle) {
|
switch (handle) {
|
||||||
// Breaking alphabetical order a bit to place the ones I think are most common at the top
|
// Breaking alphabetical order a bit to place the ones I think are most common at the top
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue