GUPnPDIDLLiteResource

GUPnPDIDLLiteResource — DIDL-Lite Resource.

Synopsis

                    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);

Description

GUPnPDIDLLiteResource represents 'res' nodes in DIDL-Lite fragments. Please refer to UPnP AV specifications for further details.

Details

GUPnPDIDLLiteResource

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;


gupnp_didl_lite_resource_reset ()

void                gupnp_didl_lite_resource_reset      (GUPnPDIDLLiteResource *res);

Resets all fields of res: strings to NULL and numbers to -1.


gupnp_didl_lite_resource_copy ()

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.

gupnp_didl_lite_resource_destroy ()

void                gupnp_didl_lite_resource_destroy    (GUPnPDIDLLiteResource *res);

Frees the string fields of res.

Mainly intended for bindings, avoid using it in applications.