|  |  |  | librygel-core Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Signals | ||||
#define RYGEL_TYPE_PLUGIN_LOADER gboolean rygel_plugin_loader_plugin_disabled (RygelPluginLoader *self,const gchar *name); void rygel_plugin_loader_add_plugin (RygelPluginLoader *self,RygelPlugin *plugin); RygelPlugin * rygel_plugin_loader_get_plugin_by_name (RygelPluginLoader *self,const gchar *name); GeeCollection * rygel_plugin_loader_list_plugins (RygelPluginLoader *self); RygelPluginLoader * rygel_plugin_loader_new (void); struct RygelPluginLoader; struct RygelPluginLoaderClass;
It probes for shared library files in a specific directory, tries to find a module_init() function with this signature: void module_init (RygelPluginLoader* loader);
It then calls that function, passing a pointer to itself. The loaded module can then add plugins to Rygel by calling the rygel_plugin_loader_add_plugin() function.
#define RYGEL_TYPE_PLUGIN_LOADER (rygel_plugin_loader_get_type ())
The type for RygelPluginLoader.
gboolean rygel_plugin_loader_plugin_disabled (RygelPluginLoader *self,const gchar *name);
Checks if a plugin is disabled by the user
| 
 | the RygelPluginLoader instance | 
| 
 | the name of plugin to check for. [in] | 
| Returns : | true if plugin is disabled, false if not. | 
void rygel_plugin_loader_add_plugin (RygelPluginLoader *self,RygelPlugin *plugin);
| 
 | the RygelPluginLoader instance | 
RygelPlugin * rygel_plugin_loader_get_plugin_by_name (RygelPluginLoader *self,const gchar *name);
| 
 | the RygelPluginLoader instance | 
GeeCollection *     rygel_plugin_loader_list_plugins    (RygelPluginLoader *self);
| 
 | the RygelPluginLoader instance | 
struct RygelPluginLoader;
This class is responsible for plugin loading.
It probes for shared library files in a specific directory, tries to find a module_init() function with this signature: void module_init (RygelPluginLoader* loader);
It then calls that function, passing a pointer to itself. The loaded module can then add plugins to Rygel by calling the rygel_plugin_loader_add_plugin() function.
struct RygelPluginLoaderClass {
	RygelRecursiveModuleLoaderClass parent_class;
};
The class structure for RYGEL_TYPE_PLUGIN_LOADER. All the fields in this structure are private and should never be accessed directly.
| RygelRecursiveModuleLoaderClass  | the parent class structure | 
"plugin-available" signalvoid                user_function                      (RygelPluginLoader *plugin_loader,
                                                        RygelPlugin       *plugin,
                                                        gpointer           user_data)          : Run Last
| 
 | the RygelPluginLoader instance that received the signal | 
| 
 | user data set when the signal handler was connected. |