diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-05-05 13:19:32 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2011-06-06 17:20:17 +0200 |
commit | df0d9b480c0db825126c7ebbb36bdd958bf59761 (patch) | |
tree | e28fdd56862d763c8da6e4e2bbd22a89de9dfac1 /src/mm-plugin.c | |
parent | 5a2078a2a5f012772612dea0921b147bf6d75d88 (diff) |
plugin base: let plugins decide if they should be sorted last
Note that even if a plugin says it wants to be sorted last, the generic plugin
will always be the last one. Also, there is no order guaranteed between two
plugins that request to be sorted last.
Diffstat (limited to 'src/mm-plugin.c')
-rw-r--r-- | src/mm-plugin.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mm-plugin.c b/src/mm-plugin.c index 7e5c582b..167af474 100644 --- a/src/mm-plugin.c +++ b/src/mm-plugin.c @@ -24,6 +24,14 @@ mm_plugin_get_name (MMPlugin *plugin) return MM_PLUGIN_GET_INTERFACE (plugin)->get_name (plugin); } +gboolean +mm_plugin_get_sort_last (const MMPlugin *plugin) +{ + g_return_val_if_fail (MM_IS_PLUGIN (plugin), FALSE); + + return MM_PLUGIN_GET_INTERFACE (plugin)->get_sort_last (plugin); +} + MMPluginSupportsResult mm_plugin_supports_port (MMPlugin *plugin, const char *subsys, @@ -100,8 +108,8 @@ mm_plugin_get_type (void) }; plugin_type = g_type_register_static (G_TYPE_INTERFACE, - "MMPlugin", - &plugin_info, 0); + "MMPlugin", + &plugin_info, 0); g_type_interface_add_prerequisite (plugin_type, G_TYPE_OBJECT); } |