diff --git a/upnpdescgen.c b/upnpdescgen.c index 54c7efe..c00cee0 100644 --- a/upnpdescgen.c +++ b/upnpdescgen.c @@ -379,6 +379,7 @@ static const struct action X_MS_MediaReceiverRegistrarActions[] = { {"IsAuthorized", GetIsAuthorizedArgs}, /* R */ {"IsValidated", GetIsValidatedArgs}, /* R */ + {"RegisterDevice", GetRegisterDeviceArgs}, {0, 0} }; diff --git a/upnpsoap.c b/upnpsoap.c index 1d6df81..deb1c45 100644 --- a/upnpsoap.c +++ b/upnpsoap.c @@ -154,6 +154,24 @@ IsAuthorizedValidated(struct upnphttp * h, const char * action) ClearNameValueList(&data); } +static void +RegisterDevice(struct upnphttp * h, const char * action) +{ + static const char resp[] = + "" + "%s" + ""; + + char body[512]; + int bodylen; + + bodylen = snprintf(body, sizeof(body), resp, + action, "urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1", + uuidvalue, action); + BuildSendAndCloseSoapResp(h, body, bodylen); +} + static void GetProtocolInfo(struct upnphttp * h, const char * action) { @@ -1840,6 +1858,7 @@ soapMethods[] = { "GetCurrentConnectionInfo", GetCurrentConnectionInfo}, { "IsAuthorized", IsAuthorizedValidated}, { "IsValidated", IsAuthorizedValidated}, + { "RegisterDevice", RegisterDevice}, { "X_GetFeatureList", SamsungGetFeatureList}, { "X_SetBookmark", SamsungSetBookmark}, { 0, 0 }