![]() |
![]() |
![]() |
librygel-server Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Known Derived Interfaces | Properties |
#define RYGEL_TYPE_MEDIA_OBJECT void rygel_media_object_get_writable (RygelMediaObject *self
,GCancellable *cancellable
,GAsyncReadyCallback _callback_
,gpointer _user_data_
); GFile * rygel_media_object_get_writable_finish (RygelMediaObject *self
,GAsyncResult *_res_
,GError **error
); void rygel_media_object_get_writables (RygelMediaObject *self
,GCancellable *cancellable
,GAsyncReadyCallback _callback_
,gpointer _user_data_
); GeeArrayList * rygel_media_object_get_writables_finish (RygelMediaObject *self
,GAsyncResult *_res_
,GError **error
); gint rygel_media_object_compare_string_props (RygelMediaObject *self
,const gchar *prop1
,const gchar *prop2
); gint rygel_media_object_compare_int_props (RygelMediaObject *self
,gint prop1
,gint prop2
); const gchar * rygel_media_object_get_id (RygelMediaObject *self
); void rygel_media_object_set_id (RygelMediaObject *self
,const gchar *value
); const gchar * rygel_media_object_get_ref_id (RygelMediaObject *self
); void rygel_media_object_set_ref_id (RygelMediaObject *self
,const gchar *value
); const gchar * rygel_media_object_get_upnp_class (RygelMediaObject *self
); void rygel_media_object_set_upnp_class (RygelMediaObject *self
,const gchar *value
); guint64 rygel_media_object_get_modified (RygelMediaObject *self
); void rygel_media_object_set_modified (RygelMediaObject *self
,guint64 value
); guint rygel_media_object_get_object_update_id (RygelMediaObject *self
); void rygel_media_object_set_object_update_id (RygelMediaObject *self
,guint value
); RygelMediaContainer * rygel_media_object_get_parent_ref (RygelMediaObject *self
); void rygel_media_object_set_parent_ref (RygelMediaObject *self
,RygelMediaContainer *value
); const gchar * rygel_media_object_get_title (RygelMediaObject *self
); void rygel_media_object_set_title (RygelMediaObject *self
,const gchar *value
); struct RygelMediaObject; struct RygelMediaObjectClass;
"id" gchar* : Read / Write "modified" guint64 : Read / Write "object-update-id" guint : Read / Write "ocm-flags" GUPnPOCMFlags : Read "parent-ref" RygelMediaContainer* : Read / Write "ref-id" gchar* : Read / Write "restricted" gboolean : Read "title" gchar* : Read / Write "upnp-class" gchar* : Read / Write
The derived RygelMediaContainer class represents a container, and the derived RygelMediaItem classes (RygelAudioItem, RygelImageItem and RygelVideoItem) represent media items.
These objects correspond to items and containers in the UPnP ContentDirectory's DIDL-Lite XML.
#define RYGEL_TYPE_MEDIA_OBJECT (rygel_media_object_get_type ())
The type for RygelMediaObject.
void rygel_media_object_get_writable (RygelMediaObject *self
,GCancellable *cancellable
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
Fetches a File object for any writable URI available for this object.
See also: rygel_media_object_get_writable_finish()
|
the RygelMediaObject instance |
|
A GLib.Cancellable. [in][allow-none] |
|
callback to call when the request is satisfied. [scope async] |
|
the data to pass to _callback_ function. [closure]
|
GFile * rygel_media_object_get_writable_finish (RygelMediaObject *self
,GAsyncResult *_res_
,GError **error
);
Fetches a File object for any writable URI available for this object.
See also: rygel_media_object_get_writable()
|
the RygelMediaObject instance |
|
a GAsyncResult |
|
location to store the error occuring, or NULL to ignore |
void rygel_media_object_get_writables (RygelMediaObject *self
,GCancellable *cancellable
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
Fetches File objects for all writable URIs available for this object.
See also: rygel_media_object_get_writables_finish()
|
the RygelMediaObject instance |
|
A GLib.Cancellable. [in][allow-none] |
|
callback to call when the request is satisfied. [scope async] |
|
the data to pass to _callback_ function. [closure]
|
GeeArrayList * rygel_media_object_get_writables_finish (RygelMediaObject *self
,GAsyncResult *_res_
,GError **error
);
Fetches File objects for all writable URIs available for this object.
See also: rygel_media_object_get_writables()
|
the RygelMediaObject instance |
|
a GAsyncResult |
|
location to store the error occuring, or NULL to ignore |
gint rygel_media_object_compare_string_props (RygelMediaObject *self
,const gchar *prop1
,const gchar *prop2
);
|
the RygelMediaObject instance |
gint rygel_media_object_compare_int_props (RygelMediaObject *self
,gint prop1
,gint prop2
);
|
the RygelMediaObject instance |
const gchar * rygel_media_object_get_id (RygelMediaObject *self
);
Get and return the current value of the "id" property.
|
the RygelMediaObject instance to query |
Returns : |
the value of the "id" property |
void rygel_media_object_set_id (RygelMediaObject *self
,const gchar *value
);
Set the value of the "id" property to value
.
|
the RygelMediaObject instance to modify |
|
the new value of the "id" property |
const gchar * rygel_media_object_get_ref_id (RygelMediaObject *self
);
Get and return the current value of the "ref-id" property.
|
the RygelMediaObject instance to query |
Returns : |
the value of the "ref-id" property |
void rygel_media_object_set_ref_id (RygelMediaObject *self
,const gchar *value
);
Set the value of the "ref-id" property to value
.
|
the RygelMediaObject instance to modify |
|
the new value of the "ref-id" property |
const gchar * rygel_media_object_get_upnp_class (RygelMediaObject *self
);
Get and return the current value of the "upnp-class" property.
|
the RygelMediaObject instance to query |
Returns : |
the value of the "upnp-class" property |
void rygel_media_object_set_upnp_class (RygelMediaObject *self
,const gchar *value
);
Set the value of the "upnp-class" property to value
.
|
the RygelMediaObject instance to modify |
|
the new value of the "upnp-class" property |
guint64 rygel_media_object_get_modified (RygelMediaObject *self
);
Get and return the current value of the "modified" property.
|
the RygelMediaObject instance to query |
Returns : |
the value of the "modified" property |
void rygel_media_object_set_modified (RygelMediaObject *self
,guint64 value
);
Set the value of the "modified" property to value
.
|
the RygelMediaObject instance to modify |
|
the new value of the "modified" property |
guint rygel_media_object_get_object_update_id
(RygelMediaObject *self
);
Get and return the current value of the "object-update-id" property.
|
the RygelMediaObject instance to query |
Returns : |
the value of the "object-update-id" property |
void rygel_media_object_set_object_update_id (RygelMediaObject *self
,guint value
);
Set the value of the "object-update-id" property to value
.
|
the RygelMediaObject instance to modify |
|
the new value of the "object-update-id" property |
RygelMediaContainer * rygel_media_object_get_parent_ref (RygelMediaObject *self
);
Get and return the current value of the "parent-ref" property.
|
the RygelMediaObject instance to query |
Returns : |
the value of the "parent-ref" property |
void rygel_media_object_set_parent_ref (RygelMediaObject *self
,RygelMediaContainer *value
);
Set the value of the "parent-ref" property to value
.
|
the RygelMediaObject instance to modify |
|
the new value of the "parent-ref" property |
const gchar * rygel_media_object_get_title (RygelMediaObject *self
);
Get and return the current value of the "title" property.
|
the RygelMediaObject instance to query |
Returns : |
the value of the "title" property |
void rygel_media_object_set_title (RygelMediaObject *self
,const gchar *value
);
Set the value of the "title" property to value
.
|
the RygelMediaObject instance to modify |
|
the new value of the "title" property |
struct RygelMediaObject;
Represents a media object (container or item).
The derived RygelMediaContainer class represents a container, and the derived RygelMediaItem classes (RygelAudioItem, RygelImageItem and RygelVideoItem) represent media items.
These objects correspond to items and containers in the UPnP ContentDirectory's DIDL-Lite XML.
struct RygelMediaObjectClass { GObjectClass parent_class; GUPnPDIDLLiteObject* (*serialize) (RygelMediaObject* self, RygelSerializer* serializer, RygelHTTPServer* http_server, GError** error); void (*apply_didl_lite) (RygelMediaObject* self, GUPnPDIDLLiteObject* didl_object); gint (*compare_by_property) (RygelMediaObject* self, RygelMediaObject* media_object, const gchar* property); GUPnPDIDLLiteResource* (*add_resource) (RygelMediaObject* self, GUPnPDIDLLiteObject* object, const gchar* uri, const gchar* protocol, const gchar* import_uri, GError** error); GUPnPOCMFlags (*get_ocm_flags) (RygelMediaObject* self); };
The class structure for RYGEL_TYPE_MEDIA_OBJECT
. All the fields in this structure are private and should never be accessed directly.
GObjectClass |
the parent class structure |
"object-update-id"
property"object-update-id" guint : Read / Write
object-update-id.
Default value: 0