Top |
Functions
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 () |
Properties
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 |
Types and Values
#define | RYGEL_TYPE_PLUGIN |
struct | RygelPlugin |
struct | RygelPluginClass |
enum | RygelPluginCapabilities |
Object Hierarchy
GFlags ╰── RygelPluginCapabilities GObject ╰── GUPnPResourceFactory ╰── RygelPlugin
Description
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()
.
Functions
rygel_plugin_add_resource ()
void rygel_plugin_add_resource (RygelPlugin *self
,RygelResourceInfo *resource_info
);
rygel_plugin_apply_hacks ()
void rygel_plugin_apply_hacks (RygelPlugin *self
,RygelRootDevice *device
,const gchar *description_path
,GError **error
);
Parameters
self |
the RygelPlugin instance |
|
device |
|
|
description_path |
|
|
error |
location to store the error occuring, or |
rygel_plugin_new ()
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.
Parameters
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 |
|
rygel_plugin_get_capabilities ()
RygelPluginCapabilities
rygel_plugin_get_capabilities (RygelPlugin *self
);
Get and return the current value of the "capabilities" property.
rygel_plugin_set_capabilities ()
void rygel_plugin_set_capabilities (RygelPlugin *self
,RygelPluginCapabilities value
);
Set the value of the "capabilities" property to value
.
Parameters
self |
the RygelPlugin instance to modify |
|
value |
the new value of the "capabilities" property |
rygel_plugin_get_name ()
const gchar *
rygel_plugin_get_name (RygelPlugin *self
);
Get and return the current value of the "name" property.
rygel_plugin_get_title ()
const gchar *
rygel_plugin_get_title (RygelPlugin *self
);
Get and return the current value of the "title" property.
rygel_plugin_set_title ()
void rygel_plugin_set_title (RygelPlugin *self
,const gchar *value
);
Set the value of the "title" property to value
.
rygel_plugin_get_description ()
const gchar *
rygel_plugin_get_description (RygelPlugin *self
);
Get and return the current value of the "description" property.
rygel_plugin_get_desc_path ()
const gchar *
rygel_plugin_get_desc_path (RygelPlugin *self
);
Get and return the current value of the "desc-path" property.
rygel_plugin_get_active ()
gboolean
rygel_plugin_get_active (RygelPlugin *self
);
Get and return the current value of the "active" property.
rygel_plugin_set_active ()
void rygel_plugin_set_active (RygelPlugin *self
,gboolean value
);
Set the value of the "active" property to value
.
rygel_plugin_get_resource_infos ()
GeeArrayList *
rygel_plugin_get_resource_infos (RygelPlugin *self
);
Get and return the current value of the "resource-infos" property.
rygel_plugin_get_icon_infos ()
GeeArrayList *
rygel_plugin_get_icon_infos (RygelPlugin *self
);
Get and return the current value of the "icon-infos" property.
rygel_plugin_get_default_icons ()
GeeArrayList *
rygel_plugin_get_default_icons (RygelPlugin *self
);
Get and return the current value of the "default-icons" property.
Types and Values
struct RygelPlugin
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
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.
Property Details
The “capabilities”
property
“capabilities” RygelPluginCapabilities
capabilities.
Flags: Read / Write / Construct
The “desc-path”
property
“desc-path” gchar *
desc-path.
Flags: Read / Write / Construct Only
Default value: NULL
The “description”
property
“description” gchar *
description.
Flags: Read / Write / Construct Only
Default value: NULL