base-manager: automatic required subsystem detection

Instead of assuming we require a fixed set of subsystems to monitor,
compile the full list based on what the plugins have requested
themselves.
This commit is contained in:
Aleksander Morgado
2020-11-13 08:57:06 +00:00
parent 950abbf8ee
commit 71f5c97543
5 changed files with 101 additions and 63 deletions
+6
View File
@@ -146,6 +146,12 @@ mm_plugin_get_name (MMPlugin *self)
return self->priv->name;
}
const gchar **
mm_plugin_get_allowed_subsystems (MMPlugin *self)
{
return (const gchar **) self->priv->subsystems;
}
const gchar **
mm_plugin_get_allowed_udev_tags (MMPlugin *self)
{