mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 07:46:42 +00:00
Add 'Service_registry::remove_all' function
This function is needed when reconfiguring init.
This commit is contained in:
parent
af66043b79
commit
1aa9f9910c
@ -408,6 +408,15 @@ namespace Genode {
|
||||
* Unregister service
|
||||
*/
|
||||
void remove(Service *service) { _services.remove(service); }
|
||||
|
||||
/**
|
||||
* Unregister all services
|
||||
*/
|
||||
void remove_all()
|
||||
{
|
||||
while (_services.first())
|
||||
remove(_services.first());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user