aboutsummaryrefslogtreecommitdiff
path: root/src/mm-plugin.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-07-11 12:08:35 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-06 20:06:46 +0200
commit86f4923d7f69e7adcd488fb7085429b04dec3190 (patch)
treee96deedcab0067be4046039e95e1dc894a09b88d /src/mm-plugin.h
parent624a1e9087a7020824a94914d3989ebf00093c07 (diff)
plugin: new method to compare plugins
Instead of providing a method to get if a plugin is requesting to get sorted last, we provide a way to comparing two plugins, compatible with the GCompareFunc required in g_list_sort().
Diffstat (limited to 'src/mm-plugin.h')
-rw-r--r--src/mm-plugin.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mm-plugin.h b/src/mm-plugin.h
index d9efa69b..5a2c9c73 100644
--- a/src/mm-plugin.h
+++ b/src/mm-plugin.h
@@ -96,8 +96,9 @@ struct _MMPluginClass {
GType mm_plugin_get_type (void);
-const char *mm_plugin_get_name (MMPlugin *plugin);
-gboolean mm_plugin_get_sort_last (const MMPlugin *plugin);
+const gchar *mm_plugin_get_name (MMPlugin *plugin);
+gint mm_plugin_cmp (const MMPlugin *plugin_a,
+ const MMPlugin *plugin_b);
void mm_plugin_supports_port (MMPlugin *plugin,
GObject *device,