struct _EPluginClass —
struct _EPluginClass {
GObjectClass class;
const char * type;
int (* construct (EPlugin *, xmlNodePtr root);
void *(* invoke (EPlugin *, const char *name, void *data);
}; Superclass.
The plugin type. This is used by the plugin loader to determine which plugin object to instantiate to handle the plugin. This must be overriden by each subclass to provide a unique name.
The construct virtual method scans the XML tree to initialise itself.
The invoke virtual method loads the plugin code, resolves the function name, and marshals a simple pointer to execute the plugin.
The EPluginClass represents each plugin type. The type of each class is registered in a global table and is used to instantiate a container for each plugin.
It provides two main functions, to load the plugin definition, and to invoke a function. Each plugin class is used to handle mappings to different languages.
The EPluginClass represents each plugin type. The type of each class is registered in a global table and is used to instantiate a container for each plugin.
It provides two main functions, to load the plugin definition, and to invoke a function. Each plugin class is used to handle mappings to different languages.