OicSecKey_t is used to set/get Payload data. ocpyalod.h do not
need to use securevirtualresourcetypes.h file directly. that header
is moved to implement file and removed from ocpayload header.
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/
546fc54a4fea6ffb1b52d5dbbf88e2b784bebc2b
(cherry picked from
546fc54a4fea6ffb1b52d5dbbf88e2b784bebc2b)
Change-Id: I520f507624e99d5b0a3ea131f09c6d6f91dddc61
Signed-off-by: Jaehyun Cho <jaehyun3.cho@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
#include <inttypes.h>
#include "octypes.h"
-#if defined(__WITH_TLS__) || defined(__WITH_DTLS__)
-#include "securevirtualresourcetypes.h"
-#endif
-
#ifdef __cplusplus
extern "C"
{
typedef struct OCResource OCResource;
+#if defined(__WITH_TLS__) || defined(__WITH_DTLS__)
+typedef struct OicSecKey OicSecKey_t;
+#endif
+
void OCPayloadDestroy(OCPayload* payload);
// Representation Payload
#include "ocresource.h"
#include "logger.h"
+#if defined(__WITH_TLS__) || defined(__WITH_DTLS__)
+#include "securevirtualresourcetypes.h"
+#endif
+
#define TAG "OIC_RI_PAYLOAD"
#define CSV_SEPARATOR ','