Name

struct _EPluginHookClass —

Synopsis

struct _EPluginHookClass {
  GObjectClass class;
  const char * id;
  int (* construct (EPluginHook *eph, EPlugin *ep, xmlNodePtr root);
  void (* enable (EPluginHook *eph, int state);
};  

Members

class

Superclass.

id

The plugin hook type. This must be overriden by each subclass and is used as a key when loading hook definitions. This string

construct

Virtual method used to initialise the object when loaded.

enable

Virtual method used to enable or disable the hook.

Description

The EPluginHookClass represents each hook type. The type of the class is registered in a global table and is used to instantiate a container for each hook.

should contain a globally unique name followed by a

and a version specification. This is to ensure plugins only hook into hooks with the right API.

Description

The EPluginHookClass represents each hook type. The type of the class is registered in a global table and is used to instantiate a container for each hook.