| Ethos Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Known Derived Interfaces | Signals | ||||
#define ETHOS_PLUGIN_CONST (obj)
EthosPluginPrivate;
EthosPlugin;
void ethos_plugin_activate (EthosPlugin *plugin);
void ethos_plugin_deactivate (EthosPlugin *plugin);
The EthosPlugin class is a base class that can be inherited to create plugins. It can also be instantiated directly and have signals attached to build a plugin during runtime.
Plugins should inherit this class within their module.
#define ETHOS_PLUGIN_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ETHOS_TYPE_PLUGIN, EthosPlugin const))
|
void ethos_plugin_activate (EthosPlugin *plugin);
Activates the plugin so that it may prepare itself for execution.
|
An EthosPlugin |
"activated" signalvoid user_function (EthosPlugin *plugin,
gpointer user_data) : Run First
Signal emitted when the plugin has been activated by the EthosManager for the process.
|
the EthosPlugin instance |
|
user data set when the signal handler was connected. |
"deactivated" signalvoid user_function (EthosPlugin *plugin,
gpointer user_data) : Run First
Signal emitted when the plugin has been deactivated by the EthosManager for the process.
|
the EthosPlugin instance |
|
user data set when the signal handler was connected. |