| libMirage Reference Manual | ||||
|---|---|---|---|---|
#include <mirage.h>
MIRAGE_Plugin;
MIRAGE_Plugin* mirage_plugin_new (const gchar *filename);
MIRAGE_Plugin object is a base object of libMirage's plugin system and derives from GTypeModule. It provides support for loadable modules that contain either image parsers or fragment implementations.
Plugin objects are created by MIRAGE_Mirage, using mirage_plugin_new(). Every
plugin exports two functions: mirage_plugin_load_plugin() and mirage_plugin_unload_plugin()
which are used by plugin object to load and unload module, respectively.
The plugin system is used internally by MIRAGE_Mirage, and should generally not be used elsewhere.
typedef struct _MIRAGE_Plugin MIRAGE_Plugin;
Contains private data only, and should be accessed using the functions below.
MIRAGE_Plugin* mirage_plugin_new (const gchar *filename);
Creates new plugin.
|
plugin's filename |
Returns : |
a new MIRAGE_Plugin object that represents plugin. It should be
released with g_object_unref() when no longer needed.
|
"filename" property"filename" gchararray : Read / Write / Construct Only
The filename of the module.
Default value: NULL