[IOT-2430] Change OCLinksPayloadValueCreate API
authoruzchoi <uzchoi@samsung.com>
Sun, 30 Jul 2017 08:32:56 +0000 (17:32 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 1 Sep 2017 05:11:36 +0000 (05:11 +0000)
commitf59c4081453a13667e548f743a62bde4e6a03c36
tree579d7bb9f2f5ea4c58d26c1ae64c2c464e5cab9b
parent03f23f3703cb00c3540a38f42caa7bed3080003b
[IOT-2430] Change OCLinksPayloadValueCreate API

OCLinksPayloadiValue returned PayloadValue which requies memory
release when we only takes array member as property of payload.
Instead of PayloadValue, PayloadArray is returned from this API.
Considering the CPP API, this return type will work better.
API name has been changed into OCLinksPayloadArrayCreate also.

According to the API change, code used this API also changed
excluding redundant memory allocation.

Previously result is passed by parameter as pointer with bool
return, but result is passsed as return value to align the style
of other IoTivity Create type APIs.

Change-Id: I4ed976f29cef8105ac002021d970ef61d00ae7cd
Signed-off-by: uzchoi <uzchoi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21673
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/stack/include/internal/occollection.h
resource/csdk/stack/include/ocpayload.h
resource/csdk/stack/octbstack_product.def
resource/csdk/stack/src/occollection.c
resource/csdk/stack/src/ocpayload.c
resource/csdk/stack/test/stacktests.cpp