Rygel.PluginLoader – librygel-core – Vala Binding Reference

Rygel.PluginLoader – librygel-core Reference Manual

# PluginLoader

## Object Hierarchy:

## Description:

public class PluginLoader : RecursiveModuleLoader

Responsible for plugin loading. Probes for shared library files in a specific directry and tries to grab a function with a specific name and signature, calls it. The loaded module can then add plugins to Rygel by calling the add_plugin method. NOTE: The module SHOULD make sure that plugin is not disabled by user using plugin_disabled method before creating the plugin instance and resources related to that instance.

Namespace: Rygel
Package: librygel-core

## Content:

### Creation methods:

- public PluginLoader ()

### Methods:

- public `bool` plugin_disabled (`string` name)
  Checks if a plugin is disabled by user
- public void add_plugin (Plugin plugin)
- public Plugin? get_plugin_by_name (`string` name)
- public `Collection`<Plugin> list_plugins ()
- protected override `bool` load_module_from_file (`File` module_file)

### Signals:

- public signal void plugin_available (Plugin plugin)