Top | ![]() |
![]() |
![]() |
![]() |
GType | gs_plugin_query_type () |
void | gs_plugin_adopt_app () |
gboolean | gs_plugin_add_langpacks () |
GType
gs_plugin_query_type (void
);
Returns the GType for a subclass of GsPlugin provided by this plugin module. It should not do any other computation.
The init function for that type should initialize the plugin. If the plugin
should not be run then gs_plugin_set_enabled()
should be called from the
init function.
NOTE: Do not do any failable actions in the plugin class’ init function; use GsPluginClass.setup_async instead.
Since: 42
void gs_plugin_adopt_app (GsPlugin *plugin
,GsApp *app
);
Called when an GsApp has not been claimed (i.e. a management plugin has not been set).
A claimed app means other plugins will not try to perform actions such as install, remove or update. Most apps are claimed when they are created.
If a plugin can adopt this app then it should call
gs_app_set_management_plugin()
on app
.