Top | ![]() |
![]() |
![]() |
![]() |
void go_plugin_activate (GOPlugin *plugin
,GOErrorInfo **ret_error
);
Activates plugin
together with all its dependencies.
In case of error the plugin won't be activated and detailed error
information will be returned using ret_error
.
void go_plugin_deactivate (GOPlugin *plugin
,GOErrorInfo **ret_error
);
Dectivates plugin
. Its dependencies will NOT be automatically
deactivated.
In case of error the plugin won't be deactivated and detailed error
information will be returned using ret_error
.
gboolean
go_plugin_can_deactivate (GOPlugin *plugin
);
Tells if the plugin can be deactivated using go_plugin_deactivate.
void go_plugin_load_service (GOPlugin *plugin
,GOPluginService *service
,GOErrorInfo **ret_error
);
Loads base part of the plugin if it is not loaded and then loads given plugin service (prepares necessary part of the plugin for direct use). This function is intended for use by GOPluginService objects.
void go_plugin_unload_service (GOPlugin *plugin
,GOPluginService *service
,GOErrorInfo **ret_error
);
... This function is intended for use by GOPluginService objects.
void go_plugins_init (GOCmdContext *context
,GSList const *known_states
,GSList const *active_plugins
,GSList *plugin_dirs
,gboolean activate_new_plugins
,GType default_loader_type
);
Initializes the plugin subsystem. Don't call this function more than once.
context |
GOCmdContext used to report errors |
|
known_states |
A list of known states (defined how ?) |
|
active_plugins |
A list of active plugins |
|
plugin_dirs |
a list of directories to search for plugins |
|
activate_new_plugins |
activate plugins we have no seen before. |
|
default_loader_type |
importer to use by default. |
void go_plugins_add (GOCmdContext *context
,GSList const *known_states
,GSList const *active_plugins
,GSList *plugin_dirs
,GType default_loader_type
);
go_plugins_add
is deprecated and should not be used in newly-written code.
this function is deprecated and should not be used at all. It will be removed
during next development cycle. Use go_plugins_init()
instead.
Adds new plugins to currently used plugins.
context |
GOCmdContext used to report errors |
|
known_states |
A list of known states (defined how ?) |
|
active_plugins |
A list of active plugins |
|
plugin_dirs |
a list of directories to search for plugins |
|
default_loader_type |
importer to use by default. |
void go_plugins_register_loader (const gchar *id_str
,GOPluginService *service
);
void go_plugin_db_mark_plugin_for_deactivation (GOPlugin *plugin
,gboolean mark
);
gboolean
go_plugin_db_is_plugin_marked_for_deactivation
(GOPlugin *plugin
);
void go_plugin_db_activate_plugin_list (GSList *plugins
,GOErrorInfo **ret_error
);
void go_plugin_db_deactivate_plugin_list (GSList *plugins
,GOErrorInfo **ret_error
);