![]() |
![]() |
![]() |
GUPnP A/V Reference Manual | ![]() |
---|---|---|---|---|
GUPnPDIDLLiteResource; void gupnp_didl_lite_resource_reset (GUPnPDIDLLiteResource *res); GUPnPDIDLLiteResource* gupnp_didl_lite_resource_copy (const GUPnPDIDLLiteResource *source_res, GUPnPDIDLLiteResource *dest_res); void gupnp_didl_lite_resource_destroy (GUPnPDIDLLiteResource *res);
GUPnPDIDLLiteResource represents 'res' nodes in DIDL-Lite fragments. Please refer to UPnP AV specifications for further details.
typedef struct { char *uri; /* Required */ char *import_uri; char *protocol; /* Required */ char *network; char *mime_type; /* Required */ char *dlna_profile; /* Required */ GList *play_speeds; /* GList of strings indicating * allowed play speeds */ GUPnPDLNAConversion dlna_conversion; GUPnPDLNAOperation dlna_operation; GUPnPDLNAFlags dlna_flags; /* Stream data */ long size; long duration; int bitrate; int sample_freq; int bits_per_sample; char *protection; /* Audio */ int n_audio_channels; /* Video */ int width; int height; int color_depth; } GUPnPDIDLLiteResource;
void gupnp_didl_lite_resource_reset (GUPnPDIDLLiteResource *res);
Resets all fields of res
: strings to NULL and numbers to -1.
res : |
A GUPnPDIDLLiteResource |
GUPnPDIDLLiteResource* gupnp_didl_lite_resource_copy (const GUPnPDIDLLiteResource *source_res, GUPnPDIDLLiteResource *dest_res);
Makes dest_res
a copy of source_res
. Call
gupnp_didl_lite_resource_destroy on the dest_res
before freeing the
struct itself.
Mainly intended for bindings, avoid using it in applications.
source_res : |
The source GUPnPDIDLLiteResource struct pointer |
dest_res : |
The destincation GUPnPDIDLLiteResource struct pointer |
Returns : | dest_res .
|
void gupnp_didl_lite_resource_destroy (GUPnPDIDLLiteResource *res);
Frees the string fields of res
.
Mainly intended for bindings, avoid using it in applications.
res : |
A GUPnPDIDLLiteResource |