libaccounts Reference Manual | ||||
---|---|---|---|---|
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);
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.
typedef struct { GTypeModule parent_instance; GList *gtypes; AccountPluginLoaderPrivate *priv; } AccountPluginLoader;
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. |
GList* account_plugin_loader_get_objects (AccountPluginLoader *plugin_loader);
Lists the GTypes exported by this plugin.
plugin_loader : |
|
Returns : | a GList of GType. |
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. |