module: remove module->begin_expose()

Replace with module_begin_expose()
This commit is contained in:
Daniel Eklöf 2019-01-13 14:57:26 +01:00
parent 4c577766d1
commit 825b0a16f8
3 changed files with 6 additions and 26 deletions

View file

@ -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);