![]() |
![]() |
![]() |
Ethos Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
#define ETHOS_PLUGIN_CONST (obj) struct EthosPlugin; struct EthosPluginClass; 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))
struct EthosPluginClass { GObjectClass parent_class; void (*activated) (EthosPlugin *plugin); void (*deactivated) (EthosPlugin *plugin); void (*reserved1) (void); void (*reserved2) (void); void (*reserved3) (void); void (*reserved4) (void); };
void ethos_plugin_activate (EthosPlugin *plugin
);
Activates the plugin so that it may prepare itself for execution.
|
An EthosPlugin |
void ethos_plugin_deactivate (EthosPlugin *plugin
);
Requests the plugin to deactivate itself so that it may be destroyed.
|
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. |