forked from external/yambar
module: remove module->begin_expose()
Replace with module_begin_expose()
This commit is contained in:
parent
4c577766d1
commit
825b0a16f8
3 changed files with 6 additions and 26 deletions
4
module.c
4
module.c
|
@ -10,9 +10,7 @@ module_common_new(void)
|
|||
mod->bar = NULL;
|
||||
mtx_init(&mod->lock, mtx_plain);
|
||||
mod->private = NULL;
|
||||
|
||||
mod->destroy = &module_default_destroy;
|
||||
mod->begin_expose = &module_default_begin_expose;
|
||||
|
||||
/* No defaults for these; must be provided by implementation */
|
||||
mod->run = NULL;
|
||||
|
@ -36,7 +34,7 @@ module_signal_ready(struct module_run_context *ctx)
|
|||
}
|
||||
|
||||
struct exposable *
|
||||
module_default_begin_expose(struct module *mod)
|
||||
module_begin_expose(struct module *mod)
|
||||
{
|
||||
struct exposable *e = mod->content(mod);
|
||||
e->begin_expose(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue