Name

struct _EPluginClass —

Synopsis

struct _EPluginClass {
  GObjectClass class;
  const char * type;
  int (* construct (EPlugin *, xmlNodePtr root);
  void *(* invoke (EPlugin *, const char *name, void *data);
};  

Members

class

Superclass.

type

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.

construct

The construct virtual method scans the XML tree to initialise itself.

invoke

The invoke virtual method loads the plugin code, resolves the function name, and marshals a simple pointer to execute the plugin.

Description

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.

Description

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.