mirror of
https://github.com/mirkobrombin/raven.git
synced 2026-11-03 21:46:32 +00:00
feat: add registry, locale and event APIs
This commit is contained in:
1 parent
a948d60bec
commit
0df657bec7
4 files changed
+100
-1
No files matched your search
@@ -47,6 +47,13 @@ void NativeObjectAPI::register_served(ApiRegistry ®istry, 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)
|
||||
|
||||
Reference in new issue
Block a user