![]() |
![]() |
![]() |
librygel-server Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define RYGEL_TYPE_SUBTITLE RygelSubtitle * rygel_subtitle_new (const gchar *mime_type
,const gchar *caption_type
); struct RygelSubtitle; gpointer rygel_subtitle_ref (gpointer instance
); void rygel_subtitle_unref (gpointer instance
); GParamSpec * rygel_param_spec_subtitle (const gchar *name
,const gchar *nick
,const gchar *blurb
,GType object_type
,GParamFlags flags
); void rygel_value_set_subtitle (GValue *value
,gpointer v_object
); gpointer rygel_value_get_subtitle (const GValue *value
); void rygel_value_take_subtitle (GValue *value
,gpointer v_object
); struct RygelSubtitleClass;
#define RYGEL_TYPE_SUBTITLE (rygel_subtitle_get_type ())
The type for RygelSubtitle.
RygelSubtitle * rygel_subtitle_new (const gchar *mime_type
,const gchar *caption_type
);
|
|
|
struct RygelSubtitle { GTypeInstance parent_instance; volatile int ref_count; RygelSubtitlePrivate * priv; gchar* uri; gchar* mime_type; gchar* caption_type; gint64 size; };
Represents a subtitle for a video.
gpointer rygel_subtitle_ref (gpointer instance
);
Increases the reference count of object
.
|
a RygelSubtitle. |
Returns : |
the same object
|
void rygel_subtitle_unref (gpointer instance
);
Decreases the reference count of object
. When its reference count drops to 0, the object is finalized (i.e. its memory is freed).
|
a RygelSubtitle. |
GParamSpec * rygel_param_spec_subtitle (const gchar *name
,const gchar *nick
,const gchar *blurb
,GType object_type
,GParamFlags flags
);
Creates a new GParamSpecBoxed instance specifying a RYGEL_TYPE_SUBTITLE
derived property.
See
for details on property names.
g_param_spec_internal()
|
canonical name of the property specified |
|
nick name for the property specified |
|
description of the property specified |
|
RYGEL_TYPE_SUBTITLE derived type of this property |
|
flags for the property specified |
void rygel_value_set_subtitle (GValue *value
,gpointer v_object
);
Set the contents of a RYGEL_TYPE_SUBTITLE
derived GValue to v_object
.
increases the reference count of rygel_value_set_subtitle()
v_object
(the GValue holds a reference to v_object
). If you do not wish to increase the reference count of the object (i.e. you wish to pass your current reference to the GValue because you no longer need it), use
instead.
rygel_value_take_subtitle()
It is important that your GValue holds a reference to v_object
(either its own, or one it has taken) to ensure that the object won't be destroyed while the GValue still exists).
|
a valid GValue of RYGEL_TYPE_SUBTITLE derived type |
|
object value to be set |
gpointer rygel_value_get_subtitle (const GValue *value
);
Get the contents of a RYGEL_TYPE_SUBTITLE
derived GValue.
|
a valid GValue of RYGEL_TYPE_SUBTITLE derived type |
Returns : |
object contents of value
|
void rygel_value_take_subtitle (GValue *value
,gpointer v_object
);
Sets the contents of a RYGEL_TYPE_SUBTITLE
derived GValue to v_object
and takes over the ownership of the callers reference to v_object
; the caller doesn't have to unref it any more (i.e. the reference count of the object is not increased).
If you want the GValue to hold its own reference to v_object
, use
instead.
rygel_value_set_subtitle()
|
a valid GValue of RYGEL_TYPE_SUBTITLE derived type |
|
object value to be set |
struct RygelSubtitleClass { GTypeClass parent_class; void (*finalize) (RygelSubtitle *self); };
The class structure for RYGEL_TYPE_SUBTITLE
. All the fields in this structure are private and should never be accessed directly.
GTypeClass |
the parent class structure |