GUPnPDIDLLiteItem: GUPnP A/V Reference Manual

## GUPnPDIDLLiteItem GUPnPDIDLLiteItem — DIDL-Lite Item |

## Functions

const char * | gupnp_didl_lite_item_get_ref_id ()
void | gupnp_didl_lite_item_set_ref_id ()
glong | gupnp_didl_lite_item_get_lifetime ()
void | gupnp_didl_lite_item_set_lifetime ()

## Types and Values

| GUPnPDIDLLiteItem

## Description

GUPnPDIDLLiteItem respresents a DIDL-Lite item element.

## Functions

### gupnp_didl_lite_item_get_ref_id ()

    const char *
    gupnp_didl_lite_item_get_ref_id (GUPnPDIDLLiteItem *item);

Get the ref ID of the `item` .

#### Parameters

item | GUPnPDIDLLiteItem |

#### Returns

The ref ID of the `item` , or `NULL`.

### gupnp_didl_lite_item_set_ref_id ()

    void
    gupnp_didl_lite_item_set_ref_id (GUPnPDIDLLiteItem *item,
                                     const char *ref_id);

Set the ref ID of the `item` .

#### Parameters

item | GUPnPDIDLLiteItem |
ref_id | The ref ID |

### gupnp_didl_lite_item_get_lifetime ()

    glong
    gupnp_didl_lite_item_get_lifetime (GUPnPDIDLLiteItem *item);

#### Parameters

item | GUPnPDIDLLiteItem |

#### Returns

-1 if unset or the lifetime (in seconds) of the current item.

### gupnp_didl_lite_item_set_lifetime ()

    void
    gupnp_didl_lite_item_set_lifetime (GUPnPDIDLLiteItem *item,
                                       glong lifetime);

#### Parameters

item | GUPnPDIDLLiteItem |
lifetime | The lifetime (in seconds) of this item in a media collection. |

## Types and Values

### GUPnPDIDLLiteItem

    typedef struct _GUPnPDIDLLiteItem GUPnPDIDLLiteItem;