mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 00:05:40 +02:00
module: add a refresh_in() interface function
Modules can implement this to allow e.g. particles to force a refresh after a certain amount of time.
This commit is contained in:
parent
1ed0dab6ad
commit
5008008079
2 changed files with 33 additions and 3 deletions
9
module.c
9
module.c
|
@ -10,12 +10,17 @@ module_common_new(void)
|
|||
mod->bar = NULL;
|
||||
mtx_init(&mod->lock, mtx_plain);
|
||||
mod->private = NULL;
|
||||
mod->run = NULL;
|
||||
|
||||
mod->destroy = &module_default_destroy;
|
||||
mod->content = NULL;
|
||||
mod->begin_expose = &module_default_begin_expose;
|
||||
mod->expose = &module_default_expose;
|
||||
mod->end_expose = &module_default_end_expose;
|
||||
|
||||
/* No defaults for these; must be provided by implementation */
|
||||
mod->run = NULL;
|
||||
mod->content = NULL;
|
||||
mod->refresh_in = NULL;
|
||||
|
||||
return mod;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue