1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

Kernel+Userland: Add option for duration of /dev/beep producing sound

This commit is contained in:
Liav A 2023-08-25 20:26:18 +03:00 committed by Tim Schumacher
parent 1b00618fd9
commit 26f96d2a42
Notes: sideshowbarker 2024-07-16 22:58:46 +09:00
6 changed files with 13 additions and 5 deletions

View file

@ -51,7 +51,7 @@
namespace Core::System {
#ifdef AK_OS_SERENITY
ErrorOr<void> beep(u16 tone = 440);
ErrorOr<void> beep(u16 tone = 440, u16 milliseconds_duration = 200);
ErrorOr<void> pledge(StringView promises, StringView execpromises = {});
ErrorOr<void> unveil(StringView path, StringView permissions);
ErrorOr<void> unveil_after_exec(StringView path, StringView permissions);