Improve usability of Group Interface API.
authorHyunJun Kim <hyunjun2.kim@samsung.com>
Mon, 9 Feb 2015 08:09:45 +0000 (17:09 +0900)
committerUze Choi <uzchoi@samsung.com>
Tue, 10 Feb 2015 09:33:16 +0000 (09:33 +0000)
commit061a9bc4c0ef896016ea94ebf17c18c55a28e799
tree1bf9e0f7eefa7c79a34ad77c81133122485a7054
parent004d0820a8fe2fa83cbca236cd78bf4ef7785158
Improve usability of Group Interface API.

GetActionSetFromString function has memory leak.
So we fix memory leak and improve usability of the function.

We call two function, ExtractKeyValueFromRequest and BuildActionSetFromString
to extract key and value from requset and get ActionSet object from string.

Fix [IOT-283]

Change-Id: Ie13dcd0afc168632d9a53ad27182d15a55c3aca0
Signed-off-by: HyunJun Kim <hyunjun2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/308
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
resource/csdk/stack/include/internal/oicgroup.h
resource/csdk/stack/src/oicgroup.c