Create links OCRepPayloadValue for collection resource
authoruzchoi <uzchoi@samsung.com>
Mon, 27 Mar 2017 12:41:29 +0000 (21:41 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Mon, 10 Apr 2017 05:23:00 +0000 (05:23 +0000)
commit8757dadbc4f510f0a75f67600785dddf5d94ab58
treeec712347bc261cc803ebb4559d85704353b1e62f
parent32cd4be4c34879f2c27ed35621491413c8cf6183
Create links OCRepPayloadValue for collection resource

By adding the payload definition includes links parameter in linklist
interface for collection. Server application developer should implement
it to comply to OCF specification, but this requires lots of coding work
with holding the policy map info and so on.

This API returns back links parameter which can be set as response
payload for linklist request for collection.
OCRepPayloadValue created by this function has following struct in depth.

 OCRepPayloadValue.arr->objArray[] as each resource links payload
   ..objArray[]->values->obj as policyMap

Patch10 include tcp, tls port in the policy map.
relocate code into occollection.c to better cohesion

Change-Id: I399c5b6e40d0a00f43e106619cdc17ac480ed985
Reviewed-on: https://gerrit.iotivity.org/gerrit/18195
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/stack/include/internal/occollection.h
resource/csdk/stack/include/internal/ocstackinternal.h
resource/csdk/stack/include/ocpayload.h
resource/csdk/stack/src/occollection.c
resource/csdk/stack/src/ocpayload.c
resource/csdk/stack/src/ocresource.c
resource/csdk/stack/test/stacktests.cpp