pulse-server: make method to schedule module unload

This commit is contained in:
Wim Taymans 2021-04-21 13:11:16 +02:00
parent cd224942c7
commit fee8bf69dd
3 changed files with 8 additions and 2 deletions

View file

@ -34,6 +34,11 @@ static void on_module_unload(void *data, uint64_t count)
module_unload(NULL, module);
}
void module_schedule_unload(struct module *module)
{
pw_loop_signal_event(module->impl->loop, module->unload);
}
struct module *module_new(struct impl *impl, const struct module_methods *methods, size_t user_data)
{
struct module *module;