Test API for DLNA UPnP commons
Overview
Definition of Test API DLNA UPnP commons. More…
// global functions char* tapi_upnp_get_st_uuid(const char* uuid); char* tapi_upnp_get_st_device_type(const char* domain, const char* device_type); char* tapi_upnp_get_st_service_type(const char* domain, const char* service_type); static char* tapi_upnp_get_st_upnp_forum_device_type(const char* device_type); static char* tapi_upnp_get_st_upnp_forum_service_type(const char* service_type); // macros #define TAPI_UPNP_ST_ALL_RESOURCES #define TAPI_UPNP_ST_ALL_ROOT_DEVICES #define TAPI_UPNP_ST_CONTENT_DIRECTORY
Detailed Documentation
Definition of Test API DLNA UPnP commons.
Copyright (C) 2004-2022 OKTET Labs Ltd. All rights reserved.
Global Functions
char* tapi_upnp_get_st_uuid(const char* uuid)
Build Search Target for a particular device. User should care about freeing memory allocated for output string.
Parameters:
uuid |
UUID Specified by UPnP vendor. |
Returns:
Search Target string, or NULL
on error.
char* tapi_upnp_get_st_device_type(const char* domain, const char* device_type)
Build Search Target for any device of particular type and a Vendor Domain Name. User should care about freeing memory allocated for output string.
Parameters:
domain |
Vendor Domain Name. |
device_type |
Type of the Device. |
Returns:
Search Target string, or NULL
on error.
char* tapi_upnp_get_st_service_type(const char* domain, const char* service_type)
Build Search Target for any service of particular type and a Vendor Domain Name. User should care about freeing memory allocated for output string.
Parameters:
domain |
Vendor Domain Name. |
service_type |
Type of the Service. |
Returns:
Search Target string, or NULL
on error.
static char* tapi_upnp_get_st_upnp_forum_device_type(const char* device_type)
Build Search Target for any device of particular type defined by the UPnP Forum working committee. User should care about freeing memory allocated for output string.
Parameters:
device_type |
Type of the Device. |
Returns:
Search Target string, or NULL
on error.
static char* tapi_upnp_get_st_upnp_forum_service_type(const char* service_type)
Build Search Target for any service of particular type defined by the UPnP Forum working committee. User should care about freeing memory allocated for output string.
Parameters:
service_type |
Type of the Service. |
Returns:
Search Target string, or NULL
on error.
Macros
#define TAPI_UPNP_ST_ALL_RESOURCES
Search for all devices and services.
#define TAPI_UPNP_ST_ALL_ROOT_DEVICES
Search for root devices only.
#define TAPI_UPNP_ST_CONTENT_DIRECTORY
Search for Content Directory service only.