* Add support for Samsung's GetFeatureList method.
This commit is contained in:
parent
fa056f590e
commit
4d76528158
21
upnpsoap.c
21
upnpsoap.c
@ -1427,6 +1427,26 @@ QueryStateVariable(struct upnphttp * h, const char * action)
|
|||||||
ClearNameValueList(&data);
|
ClearNameValueList(&data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
SamsungGetFeatureList(struct upnphttp * h, const char * action)
|
||||||
|
{
|
||||||
|
static const char resp[] =
|
||||||
|
"<u:X_GetFeatureListResponse xmlns:u=\"urn:schemas-upnp-org:service:ContentDirectory:1\">"
|
||||||
|
"<FeatureList>"
|
||||||
|
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n"
|
||||||
|
"<Features xmlns=\"urn:schemas-upnp-org:av:avs\""
|
||||||
|
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\""
|
||||||
|
" xsi:schemaLocation=\"urn:schemas-upnp-org:av:avs http://www.upnp.org/schemas/av/avs.xsd\">"
|
||||||
|
"<Feature name=\"samsung.com_BASICVIEW\" version=\"1\">"
|
||||||
|
"<container id=\"1\" type=\"object.item.audioItem\"/>"
|
||||||
|
"<container id=\"2\" type=\"object.item.videoItem\"/>"
|
||||||
|
"<container id=\"3\" type=\"object.item.imageItem\"/>"
|
||||||
|
"</Feature>"
|
||||||
|
"</FeatureList></u:X_GetFeatureListResponse>";
|
||||||
|
|
||||||
|
BuildSendAndCloseSoapResp(h, resp, sizeof(resp));
|
||||||
|
}
|
||||||
|
|
||||||
static const struct
|
static const struct
|
||||||
{
|
{
|
||||||
const char * methodName;
|
const char * methodName;
|
||||||
@ -1445,6 +1465,7 @@ soapMethods[] =
|
|||||||
{ "GetCurrentConnectionInfo", GetCurrentConnectionInfo},
|
{ "GetCurrentConnectionInfo", GetCurrentConnectionInfo},
|
||||||
{ "IsAuthorized", IsAuthorizedValidated},
|
{ "IsAuthorized", IsAuthorizedValidated},
|
||||||
{ "IsValidated", IsAuthorizedValidated},
|
{ "IsValidated", IsAuthorizedValidated},
|
||||||
|
{ "X_GetFeatureList", SamsungGetFeatureList},
|
||||||
{ 0, 0 }
|
{ 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user