| Top |
| void | rygel_plugin_add_resource () |
| void | rygel_plugin_add_icon () |
| void | rygel_plugin_apply_hacks () |
| RygelPlugin * | rygel_plugin_new () |
| RygelPluginCapabilities | rygel_plugin_get_capabilities () |
| void | rygel_plugin_set_capabilities () |
| const gchar * | rygel_plugin_get_name () |
| const gchar * | rygel_plugin_get_title () |
| void | rygel_plugin_set_title () |
| const gchar * | rygel_plugin_get_description () |
| const gchar * | rygel_plugin_get_desc_path () |
| gboolean | rygel_plugin_get_active () |
| void | rygel_plugin_set_active () |
| GeeArrayList * | rygel_plugin_get_resource_infos () |
| GeeArrayList * | rygel_plugin_get_icon_infos () |
| GeeArrayList * | rygel_plugin_get_default_icons () |
| gboolean | active | Read / Write |
| RygelPluginCapabilities | capabilities | Read / Write / Construct |
| GeeArrayList * | default-icons | Read |
| gchar * | desc-path | Read / Write / Construct Only |
| gchar * | description | Read / Write / Construct Only |
| GeeArrayList * | icon-infos | Read |
| gchar * | name | Read / Write / Construct Only |
| GeeArrayList * | resource-infos | Read |
| gchar * | title | Read / Write / Construct |
| #define | RYGEL_TYPE_PLUGIN |
| struct | RygelPlugin |
| struct | RygelPluginClass |
| enum | RygelPluginCapabilities |
GFlags ╰── RygelPluginCapabilities GObject ╰── GUPnPResourceFactory ╰── RygelPlugin
Plugin libraries should provide an object of this class or a subclass in their module_init() function.
It is generally convenient to derive from RygelMediaRendererPlugin from librygel-renderer, or from RygelMediaServerPlugin from librygel-server.
Plugins may change their behaviour based on their configuration. See rygel_meta_config_get_default().
void rygel_plugin_add_resource (RygelPlugin *self,RygelResourceInfo *resource_info);
void rygel_plugin_apply_hacks (RygelPlugin *self,RygelRootDevice *device,const gchar *description_path,GError **error);
self |
the RygelPlugin instance |
|
device |
|
|
description_path |
|
|
error |
location to store the error occuring, or |
RygelPlugin * rygel_plugin_new (const gchar *desc_path,const gchar *name,const gchar *title,const gchar *description,RygelPluginCapabilities capabilities);
Create an instance of the plugin.
desc_path |
. The path of a template file for an XML description of the UPnP service. . |
[in] |
name |
. The non-human-readable name for the plugin and its service, used in UPnP messages and in the Rygel configuration file. . |
[in] |
title |
. An optional human-readable name (friendlyName) of the UPnP service provided by the plugin. If the title is empty then the name will be used. . |
[in][allow-none] |
description |
. An optional human-readable description (modelDescription) of the UPnP service provided by the plugin. . |
[in][allow-none] |
capabilities |
|
RygelPluginCapabilities
rygel_plugin_get_capabilities (RygelPlugin *self);
Get and return the current value of the "capabilities" property.
void rygel_plugin_set_capabilities (RygelPlugin *self,RygelPluginCapabilities value);
Set the value of the "capabilities" property to value
.
self |
the RygelPlugin instance to modify |
|
value |
the new value of the "capabilities" property |
const gchar *
rygel_plugin_get_name (RygelPlugin *self);
Get and return the current value of the "name" property.
const gchar *
rygel_plugin_get_title (RygelPlugin *self);
Get and return the current value of the "title" property.
void rygel_plugin_set_title (RygelPlugin *self,const gchar *value);
Set the value of the "title" property to value
.
const gchar *
rygel_plugin_get_description (RygelPlugin *self);
Get and return the current value of the "description" property.
const gchar *
rygel_plugin_get_desc_path (RygelPlugin *self);
Get and return the current value of the "desc-path" property.
gboolean
rygel_plugin_get_active (RygelPlugin *self);
Get and return the current value of the "active" property.
void rygel_plugin_set_active (RygelPlugin *self,gboolean value);
Set the value of the "active" property to value
.
GeeArrayList *
rygel_plugin_get_resource_infos (RygelPlugin *self);
Get and return the current value of the "resource-infos" property.
GeeArrayList *
rygel_plugin_get_icon_infos (RygelPlugin *self);
Get and return the current value of the "icon-infos" property.
GeeArrayList *
rygel_plugin_get_default_icons (RygelPlugin *self);
Get and return the current value of the "default-icons" property.
struct RygelPlugin;
This represents a Rygel plugin.
Plugin libraries should provide an object of this class or a subclass in their module_init() function.
It is generally convenient to derive from RygelMediaRendererPlugin from librygel-renderer, or from RygelMediaServerPlugin from librygel-server.
Plugins may change their behaviour based on their configuration. See rygel_meta_config_get_default().
struct RygelPluginClass {
GUPnPResourceFactoryClass parent_class;
void (*apply_hacks) (RygelPlugin* self, RygelRootDevice* device, const gchar* description_path, GError** error);
};
The class structure for RYGEL_TYPE_PLUGIN. All the fields in this structure are private and should never be accessed directly.
“capabilities” property“capabilities” RygelPluginCapabilities
capabilities.
Flags: Read / Write / Construct
“desc-path” property“desc-path” gchar *
desc-path.
Flags: Read / Write / Construct Only
Default value: NULL
“description” property“description” gchar *
description.
Flags: Read / Write / Construct Only
Default value: NULL