aboutsummaryrefslogtreecommitdiff
path: root/src/mm-plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mm-plugin.h')
-rw-r--r--src/mm-plugin.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mm-plugin.h b/src/mm-plugin.h
index 4f1dfc09..07e3ee09 100644
--- a/src/mm-plugin.h
+++ b/src/mm-plugin.h
@@ -54,9 +54,14 @@ typedef enum {
struct _MMPlugin {
GTypeInterface g_iface;
- /* Methods */
+ /* Get plugin name */
const char *(*get_name) (MMPlugin *self);
+ /* Returns TRUE if the plugin should be sorted last in the list of plugins
+ * loaded. This is useful to indicate plugins that need an additional check
+ * on the probed vendor ID to see if they can support it. */
+ gboolean (*get_sort_last) (const MMPlugin *self);
+
/* Check whether a plugin supports a particular modem port, and what level
* of support the plugin has for the device. If the plugin can immediately
* determine whether a port is unsupported, it should return
@@ -104,6 +109,8 @@ GType mm_plugin_get_type (void);
const char *mm_plugin_get_name (MMPlugin *plugin);
+gboolean mm_plugin_get_sort_last (const MMPlugin *plugin);
+
MMPluginSupportsResult mm_plugin_supports_port (MMPlugin *plugin,
const char *subsys,
const char *name,