feat: add registry, locale and event APIs

This commit is contained in:
mirkobrombin committed 2026-10-31 19:43:27 +00:00
1 parent a948d60bec
commit 0df657bec7
4 files changed
+100 -1

No files matched your search

+7
View File
@@ -47,6 +47,13 @@ void NativeObjectAPI::register_served(ApiRegistry &registry, NativeObjects &obje
if (status) call.fail(error(status), 0);
else call.ret(1);
});
// PulseEvent: signalled for whoever waits now, and not signalled after.
registry.add("PulseEvent", 1, [&objects](ApiCall &call) {
uint32_t status=objects.set_event(call[0], true).status;
if (!status) status=objects.set_event(call[0], false).status;
if (status) call.fail(error(status), 0);
else call.ret(1);
});
}
bool NativeObjectAPI::dispatch(std::string_view name)