forked from external/yambar
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
8
module.c
8
module.c
|
@ -1,5 +1,7 @@
|
|||
#include "module.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
|
||||
struct module *
|
||||
module_common_new(void)
|
||||
|
@ -24,6 +26,12 @@ module_default_destroy(struct module *mod)
|
|||
free(mod);
|
||||
}
|
||||
|
||||
void
|
||||
module_signal_ready(struct module_run_context *ctx)
|
||||
{
|
||||
write(ctx->ready_fd, &(uint64_t){1}, sizeof(uint64_t));
|
||||
}
|
||||
|
||||
struct module_expose_context
|
||||
module_default_begin_expose(struct module *mod, cairo_t *cr)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue