aboutsummaryrefslogtreecommitdiff
path: root/src/mm-plugin.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2019-09-06 15:13:49 +0200
committerAleksander Morgado <aleksander@aleksander.es>2019-09-06 15:17:30 +0200
commitc1257579f84b1d353d515e11d2e1ac9130d0ad72 (patch)
tree277396b9f64d0b7778395653028e422cc0454d9b /src/mm-plugin.c
parenta45508ba40fd6d1b76493cbe12b4e58a314938c4 (diff)
filter: new plugin whitelist logic
Several plugins define specific udev tags that must be available in the device in order for the plugins to use them. Let's use these tags as a direct indication that ModemManager can probe the devices. In particular, this change would make all Ericsson MBM modems probed right away also in STRICT filter mode, without needing to check the ttyACM interface type or the available net ports.
Diffstat (limited to 'src/mm-plugin.c')
-rw-r--r--src/mm-plugin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mm-plugin.c b/src/mm-plugin.c
index a19111ff..fbb0d5c8 100644
--- a/src/mm-plugin.c
+++ b/src/mm-plugin.c
@@ -141,6 +141,12 @@ mm_plugin_get_name (MMPlugin *self)
return self->priv->name;
}
+const gchar **
+mm_plugin_get_allowed_udev_tags (MMPlugin *self)
+{
+ return (const gchar **) self->priv->udev_tags;
+}
+
/*****************************************************************************/
static gboolean