Ship Mints <shipmints@gmail.com> writes:
Hi Ship,
> The API on macOS would expose a pair of C functions to lisp, one would
> inhibit sleep, perhaps returning an opaque "cookie", the second to
> revoke the inhibition. The same API can be used to prevent macOS from
> ever sleeping, if the user wanted that.
Why that? If we have the special event sleep-event, you can call
kbd_buffer_store_event directly in your C source.
The arguments for the sleep-event can be extended as we like, as API.
Best regards, Michael.