Add fake X_MS_MediaReceiverRegistrar RegisterDevice support.
This commit is contained in:
parent
d248cd3a43
commit
16b0963a5b
@ -379,6 +379,7 @@ static const struct action X_MS_MediaReceiverRegistrarActions[] =
|
||||
{
|
||||
{"IsAuthorized", GetIsAuthorizedArgs}, /* R */
|
||||
{"IsValidated", GetIsValidatedArgs}, /* R */
|
||||
{"RegisterDevice", GetRegisterDeviceArgs},
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
|
19
upnpsoap.c
19
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[] =
|
||||
"<u:%sResponse "
|
||||
"xmlns:u=\"%s\">"
|
||||
"<RegistrationRespMsg>%s</RegistrationRespMsg>"
|
||||
"</u:%sResponse>";
|
||||
|
||||
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 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user