Add function to unregister a module from LPM

This commit is contained in:
George Oikonomou 2015-05-01 16:38:07 +01:00
parent 0e92b508b3
commit b3ac3ac0c1
2 changed files with 15 additions and 0 deletions

View file

@ -390,6 +390,12 @@ lpm_register_module(lpm_registered_module_t *module)
}
/*---------------------------------------------------------------------------*/
void
lpm_unregister_module(lpm_registered_module_t *module)
{
list_remove(modules_list, module);
}
/*---------------------------------------------------------------------------*/
void
lpm_init()
{
list_init(modules_list);