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().
This commit is contained in:
Aleksander Morgado
2012-07-11 12:08:35 +02:00
parent 624a1e9087
commit 86f4923d7f
3 changed files with 25 additions and 26 deletions

View File

@@ -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,