Change OCGetContentFormat into public API 75/21675/4
authoruzchoi <uzchoi@samsung.com>
Mon, 31 Jul 2017 07:45:08 +0000 (16:45 +0900)
committerZiran Sun <ziran.sun@samsung.com>
Tue, 17 Oct 2017 17:48:35 +0000 (17:48 +0000)
commit005ae865a0fa56870c1cbe46ddefdf03e13219ac
treebde894e233d13c236b023224290b3fd2a6554e9f
parentb0f25a42f5813aaf68f61e4eb1214a61d4b7c841
Change OCGetContentFormat into public API

OCIsOCFConentFormat API was internal API to provide bool return
according to media content format(cbor, vnd.ocf+cbor).
However, it can be used to app developer when they handle the
collection resource request with linked-list interface due to
backward compatibility requirement.
This change make the bool return into type enum value on
OCPayloadFormat and Accept version.
Corresponding code is also changed.

Change-Id: I6c780d9ad9e4b68da4b5d431ff294931bcde787e
Signed-off-by: uzchoi <uzchoi@samsung.com>
resource/csdk/stack/include/internal/ocstackinternal.h
resource/csdk/stack/include/ocstack.h
resource/csdk/stack/src/occollection.c
resource/csdk/stack/src/ocpayload.c