AccountPluginLoader

AccountPluginLoader — Plugin module loader.

Synopsis

                    AccountPluginLoaderPrivate;
                    AccountPluginLoader;
AccountPluginLoader* account_plugin_loader_new          (const gchar *path);
GList*              account_plugin_loader_get_objects   (AccountPluginLoader *plugin_loader);
void                account_plugin_loader_add_type      (AccountPluginLoader *plugin_loader,
                                                         GType type);

Description

The AccountPluginLoader objects are used internally by libaccount; the API is public, but you probably won't have to deal directly with it, since the ACCOUNT_DEFINE_PLUGIN() macro already takes care of this.

Details

AccountPluginLoaderPrivate

typedef struct _AccountPluginLoaderPrivate AccountPluginLoaderPrivate;


AccountPluginLoader

typedef struct {
    GTypeModule parent_instance;

    GList *gtypes;

    AccountPluginLoaderPrivate *priv;
} AccountPluginLoader;


account_plugin_loader_new ()

AccountPluginLoader* account_plugin_loader_new          (const gchar *path);

Create an object for loading the plugin located at path.

path : path of the plugin to load.
Returns : the AccountPluginLoader object.

account_plugin_loader_get_objects ()

GList*              account_plugin_loader_get_objects   (AccountPluginLoader *plugin_loader);

Lists the GTypes exported by this plugin.

plugin_loader :
Returns : a GList of GType.

account_plugin_loader_add_type ()

void                account_plugin_loader_add_type      (AccountPluginLoader *plugin_loader,
                                                         GType type);

Adds type to the list of types exported by plugin.

plugin_loader :
type : a GType.