Commit e296ef92 authored by Larry Sachs's avatar Larry Sachs Committed by Rick Bell

Implement Service Actions via Put Requests

UpnpGenericService::processPutRequest() now sends the request to
gupnp library and returns the result in the returned payload.

Change-Id: Ib7edabeea9326c6f569df7fa8302ae1055f69a0d
Signed-off-by: Larry Sachs's avatarLarry Sachs <larry.j.sachs@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21313Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
Reviewed-by: default avatarRick Bell <richard.s.bell@intel.com>
parent 6448b4a4
This diff is collapsed.
......@@ -55,12 +55,17 @@ struct _genArg {
};
// GType to Upnp Type map
static const string UPNP_TYPE_BOOLEAN = "boolean";
static const string UPNP_TYPE_STRING = "string";
static const string UPNP_TYPE_INT = "int";
static const string UPNP_TYPE_UI4 = "ui4";
static map<string, string> GTypeToUpnpTypeMap =
{
{"gboolean", "boolean"},
{"gchararray","string"},
{"gint", "int"},
{"guint", "ui4"},
{"gboolean", UPNP_TYPE_BOOLEAN},
{"gchararray",UPNP_TYPE_STRING},
{"gint", UPNP_TYPE_INT},
{"guint", UPNP_TYPE_UI4},
};
class UpnpGenericService: public UpnpService
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment