GnomeScanModuleManager

GnomeScanModuleManager — Finding installed modules

Synopsis




                    GnomeScanModuleManager;
GnomeScanModuleManager* gnome_scan_module_manager_new   (gchar *path);
void                gnome_scan_module_manager_query_modules
                                                        (GnomeScanModuleManager *manager);

Object Hierarchy


  GObject
   +----GnomeScanModuleManager

Properties


  "path"                     gchararray            : Read / Write

Description

The GnomeScanModuleManager search in a list of path shared object, and instanciate a GnomeScanModule for each shared object. Upon initialization, the GnomeScanModule will register new GTypes. This implementation is meant to be portable, but never tested on other plateform that GNU/Linux.

Details

GnomeScanModuleManager

typedef struct _GnomeScanModuleManager GnomeScanModuleManager;

The GnomeScanModuleManager object find and load all installed GnomeScanModule.


gnome_scan_module_manager_new ()

GnomeScanModuleManager* gnome_scan_module_manager_new   (gchar *path);

Create a new GnomeScanModuleManager which will handle path.

path : Search path.
Returns : a new GnomeScanModuleManager

gnome_scan_module_manager_query_modules ()

void                gnome_scan_module_manager_query_modules
                                                        (GnomeScanModuleManager *manager);

Search for shared objects in path, instanciate and initialize a GnomeScanModule for each shared object. Note that it won't search in subdirectories.

manager : a GnomeScanModuleManager

Property Details

The "path" property

  "path"                     gchararray            : Read / Write

The search path where are installed GnomeScanModule shared object. A search path is a string formed by a list of absolute path to directory separated by G_SEARCHPATH_SEPARATOR.

Default value: NULL