add missing parameters for DeviceProtection service actions

This commit is contained in:
Daniel Becker 2015-12-11 22:56:20 -08:00
parent 24d54ba13a
commit 7774c24daa
1 changed files with 24 additions and 3 deletions

View File

@ -743,11 +743,32 @@ static const struct serviceDesc scpd6FC =
#ifdef ENABLE_DP_SERVICE #ifdef ENABLE_DP_SERVICE
/* UPnP-gw-DeviceProtection-v1-Service.pdf */ /* UPnP-gw-DeviceProtection-v1-Service.pdf */
static const struct argument SendSetupMessageArgs[] =
{
{1|0x80, 6}, /* ProtocolType */
{1|0x80, 5}, /* InMessage */
{2|0x80, 5}, /* OutMessage */
{0, 0}
};
static const struct argument GetSupportedProtocolsArgs[] =
{
{2, 1}, /* ProtocolList */
{0, 0}
};
static const struct argument GetAssignedRolesArgs[] =
{
{2, 6}, /* RoleList */
{0, 0}
};
static const struct action DPActions[] = static const struct action DPActions[] =
{ {
{"SendSetupMessage", 0}, {"SendSetupMessage", SendSetupMessageArgs},
{"GetSupportedProtocols", 0}, {"GetSupportedProtocols", GetSupportedProtocolsArgs},
{"GetAssignedRoles", 0}, {"GetAssignedRoles", GetAssignedRolesArgs},
{0, 0} {0, 0}
}; };