Top | ![]() |
![]() |
![]() |
![]() |
Functions
Functions
go_plugin_activate ()
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
.
go_plugin_can_deactivate ()
gboolean
go_plugin_can_deactivate (GOPlugin *plugin
);
Tells if the plugin can be deactivated using go_plugin_deactivate.
go_plugin_db_activate_plugin_list ()
void go_plugin_db_activate_plugin_list (GSList *plugins
,GOErrorInfo **ret_error
);
Activates all plugins in the list. If some of the plugins cannot be
activated, the function reports this via ret_error
(errors don't
affect plugins activated successfully).
go_plugin_db_deactivate_plugin_list ()
void go_plugin_db_deactivate_plugin_list (GSList *plugins
,GOErrorInfo **ret_error
);
Deactivates all plugins in the list. If some of the plugins cannot be
deactivated, the function reports this via ret_error
(errors don't
affect plugins deactivated successfully).
go_plugin_db_is_plugin_marked_for_deactivation ()
gboolean
go_plugin_db_is_plugin_marked_for_deactivation
(GOPlugin *plugin
);
go_plugin_db_mark_plugin_for_deactivation ()
void go_plugin_db_mark_plugin_for_deactivation (GOPlugin *plugin
,gboolean mark
);
go_plugin_deactivate ()
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
.
go_plugin_load_service ()
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.
go_plugin_unload_service ()
void go_plugin_unload_service (GOPlugin *plugin
,GOPluginService *service
,GOErrorInfo **ret_error
);
... This function is intended for use by GOPluginService objects.
go_plugins_init ()
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. Might be called several times to add new plugins.
Parameters
context |
GOCmdContext used to report errors |
|
known_states |
A list of known states (defined how ?). |
[element-type char] |
active_plugins |
A list of active plugins. |
[element-type char] |
plugin_dirs |
a list of directories to search for plugins. |
[element-type char] |
activate_new_plugins |
activate plugins we have no seen before. |
|
default_loader_type |
importer to use by default. |
go_plugins_register_loader ()
void go_plugins_register_loader (const gchar *id_str
,GOPluginService *service
);
Registers new type of plugin loader identified by loader_id
(identifier
consists of loader's plugin ID and service ID concatenated using colon).
All requests to create new loader object of this type will be passed to
service
.
This function is intended for use by GOPluginService objects.
go_plugins_shutdown ()
GSList *
go_plugins_shutdown (void
);
Shuts down the plugin subsystem. Call this function only once before exiting the application. Some plugins may be left active or in broken state, so calling plugins_init again will NOT work properly.
go_plugins_unregister_loader ()
void
go_plugins_unregister_loader (const gchar *id_str
);
Unregisters a type of plugin loader identified by loader_id
. After
callingthis function Gnumeric will be unable to load plugins supported
by the specified loader.
This function is intended for use by GOPluginService objects.