GfPluginDB

GfPluginDB — GfPluginDB Object API

Synopsis




            GfPluginDB;
GfPluginDB* gf_plugin_db_new                (void);
void        gf_plugin_db_refresh            (GfPluginDB *db,
                                             const char *path_str);
void        gf_plugin_db_load               (GfPluginDB *db,
                                             const gchar *path_str);

Description

GfPluginDB keeps track of all plugins found in it's search directories.

Details

GfPluginDB

typedef struct {
	GfObject gparent;

	GfPluginDBPriv *priv;

	void (*_gf_reserved_1)(void);
	void (*_gf_reserved_2)(void);
	void (*_gf_reserved_3)(void);
	void (*_gf_reserved_4)(void);
} GfPluginDB;

GfPluginDB is an opaque structure and should not be used directly.


gf_plugin_db_new ()

GfPluginDB* gf_plugin_db_new                (void);

Creates a new GfPluginDB instance.

Returns : The new GfPluginDB instance.

gf_plugin_db_refresh ()

void        gf_plugin_db_refresh            (GfPluginDB *db,
                                             const char *path_str);

Does the same as gf_plugin_db_load(), plus removes all the GfPlugin instances for those that have been removed from disk.

db : The GfPluginDB instance.
path_str : A G_SEARCHPATH_SEPARATOR delimited list of directories to refresh.

gf_plugin_db_load ()

void        gf_plugin_db_load               (GfPluginDB *db,
                                             const gchar *path_str);

Scans the directories in path and creates a GfPlugin instance for every loadable plugin it finds.

db : The GfPluginDB instance.
path_str : A G_SEARCHPATH_SEPARATOR delimited list of directories to load plugins from.