diff --git a/upnpsoap.c b/upnpsoap.c index 6e6b16c..0afca85 100644 --- a/upnpsoap.c +++ b/upnpsoap.c @@ -1427,6 +1427,26 @@ QueryStateVariable(struct upnphttp * h, const char * action) ClearNameValueList(&data); } +static void +SamsungGetFeatureList(struct upnphttp * h, const char * action) +{ + static const char resp[] = + "" + "" + "\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>" + ""; + + BuildSendAndCloseSoapResp(h, resp, sizeof(resp)); +} + static const struct { const char * methodName; @@ -1445,6 +1465,7 @@ soapMethods[] = { "GetCurrentConnectionInfo", GetCurrentConnectionInfo}, { "IsAuthorized", IsAuthorizedValidated}, { "IsValidated", IsAuthorizedValidated}, + { "X_GetFeatureList", SamsungGetFeatureList}, { 0, 0 } };