aboutsummaryrefslogtreecommitdiff
path: root/src/mm-plugin.h
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.h
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.h')
-rw-r--r--src/mm-plugin.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mm-plugin.h b/src/mm-plugin.h
index 223e9d12..84df989c 100644
--- a/src/mm-plugin.h
+++ b/src/mm-plugin.h
@@ -124,7 +124,8 @@ struct _MMPluginClass {
GType mm_plugin_get_type (void);
-const gchar *mm_plugin_get_name (MMPlugin *self);
+const gchar *mm_plugin_get_name (MMPlugin *self);
+const gchar **mm_plugin_get_allowed_udev_tags (MMPlugin *self);
/* This method will run all pre-probing filters, to see if we can discard this
* plugin from the probing logic as soon as possible. */