Class

GrlRegistry

Description

class Grl.Registry : GObject.Object
{
  /* No available fields */
}
No description available.

Ancestors

Functions

grl_registry_get_default

As the registry is designed to work as a singleton, this method is in charge of creating the only instance or returned it if it is already in memory.

since: 0.2.0

Instance methods

grl_registry_activate_all_plugins

Activate all the plugins loaded.

since: 0.3.0

grl_registry_activate_plugin_by_id

Activates plugin identified by plugin_id.

since: 0.3.0

grl_registry_add_config

Add a configuration for a plugin/source.

since: 0.2.0

grl_registry_add_config_from_file

Load plugin configurations from a .ini-like config file.

since: 0.2.0

grl_registry_add_config_from_resource

Load plugin configurations from a .ini-like resource file.

since: 0.2.8

grl_registry_add_directory

Set this path as part of default paths to load plugins.

since: 0.2.0

grl_registry_get_metadata_keys

Returns a list with all registered keys in system.

since: 0.2.0

grl_registry_get_plugins

This function will return all the available plugins in the registry.

since: 0.2.0

grl_registry_get_sources

This function will return all the available sources in the registry.

since: 0.2.0

grl_registry_get_sources_by_operations

Give an array of all the available sources in the registry capable of perform the operations requested in ops.

since: 0.2.0

grl_registry_load_all_plugins

Load all the modules available in the default directory path.

since: 0.2.0

grl_registry_load_plugin

Loads a module from shared object file stored in path.

since: 0.2.0

grl_registry_load_plugin_directory

Loads a set of modules from directory in path which contains a group shared object files.

since: 0.2.0

grl_registry_load_plugin_from_desc

Loads the grilo plugin defined by plugin_desc. This is used to load plugins that aren’t shared libraries, and are built into applications.

since: 0.3.0

grl_registry_lookup_metadata_key

Look up for the metadata key with name key_name.

since: 0.2.0

grl_registry_lookup_metadata_key_desc

Returns key description.

since: 0.2.0

grl_registry_lookup_metadata_key_name

Returns key name.

since: 0.2.0

grl_registry_lookup_metadata_key_relation

Look up the list of keys that have a relation with key.

since: 0.2.0

grl_registry_lookup_metadata_key_type

Returns key expected value type.

since: 0.2.0

grl_registry_lookup_plugin

This function will search and retrieve a plugin given its identifier.

since: 0.2.0

grl_registry_lookup_source

This function will search and retrieve a source given its identifier.

since: 0.2.0

grl_registry_metadata_key_validate

Validates value content complies with the key specification. That is, it has the expected type, and value are within the range specified in key (for integer values).

since: 0.2.0

grl_registry_register_metadata_key

Registers a new metadata key, creating a relation between the new key and bind_key.

since: 0.3.0

grl_registry_register_source

Register a source in the registry with the given plugin information.

since: 0.2.0

grl_registry_unload_plugin

Unload from memory a module identified by plugin_id. This means call the module’s deinit function.

since: 0.2.0

grl_registry_unregister_source

Removes the source from the registry hash table.

since: 0.2.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

Grl.Registry::metadata-key-added

Signals that a new metadata key has been registered.

since: 0.2.10

Grl.Registry::source-added

Signals that a source has been added to the registry.

since: 0.2.0

Grl.Registry::source-removed

Signals that a source has been removed from the registry.

since: 0.2.0

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct GrlRegistryClass {
  GObjectClass parent_class;
  
}

Grilo Registry class. Dynamic loader of plugins.

Class members
parent_class: GObjectClass

The parent class structure.