EExtension — An abstract base class for extensions

Types and Values

struct EExtension

Object Hierarchy

    ╰── EExtension
        ├── EBackendFactory
        ├── ESourceCredentialsProviderImpl
        ╰── EUserPrompterServerExtension


#include <libedataserver/libedataserver.h>


EExtension provides a way to extend the functionality of objects that implement the EExtensible interface. EExtension subclasses can target a particular extensible object type. New instances of an extensible object type get paired with a new instance of each EExtension subclass that targets the extensible object type.

The first steps of writing a new extension are as follows:

  1. Subclass EExtension.

  2. In the class initialization function, specify the GType being extended. The GType must implement the EExtensible interface.

  3. Register the extension's own GType. If the extension is to be loaded dynamically using GTypeModule, the type should be registered in the library module's e_module_load() function.


e_extension_get_extensible ()

EExtensible *
e_extension_get_extensible (EExtension *extension);

Returns the object that extension extends.



an EExtension



the object being extended.

[transfer none]

Since: 3.4

Types and Values

struct EExtension

struct EExtension;

Contains only private data that should be read and manipulated using the functions below.

Since: 3.4