aboutsummaryrefslogtreecommitdiff
path: root/src/mm-base-manager.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-10-17 12:53:58 +0200
committerAleksander Morgado <aleksander@aleksander.es>2017-12-05 10:58:29 +0100
commit0850fe4f6d4e4cd8c36b397d7db5313ca4188176 (patch)
tree2da9eff3bf6e393263a7271cce52f9fab84102d5 /src/mm-base-manager.c
parentee570d44dc117dc69f23e83313dd877f76c5e3e0 (diff)
filter: additional strict rules when all device ports available
All the previous filter rules were applicable per-port independently. But, we also want to apply rules on a port based on the existence of other ports on the same device (e.g. allow TTY if the device also has a NET port). In this case, we need to wait for all ports to appear and then apply the additional rules. We re-use the "min wait time" timeout in the plugin-manager for this same purpose. This timeout is setup to wait for ports to appear before starting the probing process (e.g. so that plugin filters like the forbidden-drivers one work). The very same timeout can therefore be used to check whether we start the probing or not based on additional filter rules.
Diffstat (limited to 'src/mm-base-manager.c')
-rw-r--r--src/mm-base-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-base-manager.c b/src/mm-base-manager.c
index 6961ca90..1673c25e 100644
--- a/src/mm-base-manager.c
+++ b/src/mm-base-manager.c
@@ -1144,7 +1144,7 @@ initable_init (GInitable *initable,
return FALSE;
/* Create plugin manager */
- priv->plugin_manager = mm_plugin_manager_new (priv->plugin_dir, error);
+ priv->plugin_manager = mm_plugin_manager_new (priv->plugin_dir, priv->filter, error);
if (!priv->plugin_manager)
return FALSE;