mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-23 18:45:39 +02:00
module: add new function module_signal_ready()
This commit is contained in:
parent
a3eb7ebc08
commit
3413232ed6
9 changed files with 19 additions and 14 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <assert.h>
|
||||
|
@ -203,7 +202,7 @@ run(struct module_run_context *ctx)
|
|||
udev_monitor_filter_add_match_subsystem_devtype(mon, "power_supply", NULL);
|
||||
udev_monitor_enable_receiving(mon);
|
||||
|
||||
write(ctx->ready_fd, &(uint64_t){1}, sizeof(uint64_t));
|
||||
module_signal_ready(ctx);
|
||||
|
||||
bool first = true;
|
||||
while (true) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue