Test API to operate the DLNA UPnP Content Directory Resources

Overview

Definition of Test API for DLNA UPnP Content Directory Resources features. More…

// typedefs

typedef struct tapi_upnp_resources_uri_node tapi_upnp_resources_uri_node;
typedef struct tapi_upnp_media_uri tapi_upnp_media_uri;

// structs

struct tapi_upnp_resources_uri_node;

// global functions

SLIST_HEAD(tapi_upnp_media_uri, tapi_upnp_resources_uri_node);
te_errno tapi_upnp_resources_get_media_uri(tapi_upnp_cd_container_node* container, tapi_upnp_cd_resource_type type, tapi_upnp_media_uri* media);
void tapi_upnp_resources_free_media_uri(tapi_upnp_media_uri* media);
void tapi_upnp_print_resource_info(const tapi_upnp_cd_resource* res);

Detailed Documentation

Definition of Test API for DLNA UPnP Content Directory Resources features.

Copyright (C) 2004-2022 OKTET Labs Ltd. All rights reserved.

Typedefs

typedef struct tapi_upnp_resources_uri_node tapi_upnp_resources_uri_node

UPnP media resources URL.

Global Functions

SLIST_HEAD(tapi_upnp_media_uri, tapi_upnp_resources_uri_node)

Head of the UPnP media resources list.

te_errno tapi_upnp_resources_get_media_uri(tapi_upnp_cd_container_node* container, tapi_upnp_cd_resource_type type, tapi_upnp_media_uri* media)

Get URLs of existed media resources, which satisfy to particular resource type. Note, media should be freed with tapi_upnp_resources_free_media_uri when it is no longer needed.

Parameters:

container

Subtree of containers.

type

Resource type of media to find.

media

Media URLs list to collect obtained data.

Returns:

Status code. On success, 0.

See also:

tapi_upnp_resources_free_media_uri

void tapi_upnp_resources_free_media_uri(tapi_upnp_media_uri* media)

Empty the list of media URLs (free allocated memory) which was obtained with tapi_upnp_resources_get_media_uri.

Parameters:

media

Media URLs list.

See also:

tapi_upnp_resources_get_media_uri

void tapi_upnp_print_resource_info(const tapi_upnp_cd_resource* res)

Print UPnP Content Directory object resource context using RING function. This function should be used for debugging purpose.

Parameters:

res

Content Directory object resource.