MIRAGE_Plugin object

MIRAGE_Plugin object — Plugin object

Synopsis


#include <mirage.h>

                    MIRAGE_Plugin;
MIRAGE_Plugin*      mirage_plugin_new                   (const gchar *filename);

Object Hierarchy

  GObject
   +----GTypeModule
         +----MIRAGE_Plugin

Implemented Interfaces

MIRAGE_Plugin implements GTypePlugin.

Properties

  "filename"                 gchar*                : Read / Write / Construct Only

Description

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.

Details

MIRAGE_Plugin

typedef struct _MIRAGE_Plugin MIRAGE_Plugin;

Contains private data only, and should be accessed using the functions below.


mirage_plugin_new ()

MIRAGE_Plugin*      mirage_plugin_new                   (const gchar *filename);

Creates new plugin.

filename :

plugin's filename

Returns :

a new MIRAGE_Plugin object that represents plugin. It should be released with g_object_unref() when no longer needed.

Property Details

The "filename" property

  "filename"                 gchar*                : Read / Write / Construct Only

The filename of the module.

Default value: NULL

See Also

MIRAGE_Mirage, MIRAGE_Disc, MIRAGE_Fragment