diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-09-08 22:22:37 +0200 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2019-09-11 18:01:50 +0000 |
commit | 51c4626471ce5ddf9035b0c7570141b12929a52d (patch) | |
tree | 365db9ce9a6bb9b68962571b02f428ab281eb667 /src/mm-plugin.c | |
parent | 0e02771e5cb185d8939930e65cc6e63ca226b6f7 (diff) |
filter: update plugin whitelist logic to use 'allowed product ids'
Several plugins define the specific device vid:pid pairs they
support. Let's use this information as a direct indication that
ModemManager can probe the devices.
Diffstat (limited to 'src/mm-plugin.c')
-rw-r--r-- | src/mm-plugin.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mm-plugin.c b/src/mm-plugin.c index fbb0d5c8..8ef9e623 100644 --- a/src/mm-plugin.c +++ b/src/mm-plugin.c @@ -147,6 +147,12 @@ mm_plugin_get_allowed_udev_tags (MMPlugin *self) return (const gchar **) self->priv->udev_tags; } +const mm_uint16_pair * +mm_plugin_get_allowed_product_ids (MMPlugin *self) +{ + return self->priv->product_ids; +} + /*****************************************************************************/ static gboolean |