X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fsecurity%2Finclude%2Finternal%2Fresourcemanager.h;h=a75cb7ac8fd77ceab4e307a2a3706ff11a4aec51;hb=390866079e285d2c74918432c0d597d5da52f8a0;hp=3e946f5892a1be2a970cb3a680997d07cc84ddfe;hpb=3e9402ad71cb3e93266a77796f44d17bab9853fd;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/security/include/internal/resourcemanager.h b/resource/csdk/security/include/internal/resourcemanager.h index 3e946f5..a75cb7a 100644 --- a/resource/csdk/security/include/internal/resourcemanager.h +++ b/resource/csdk/security/include/internal/resourcemanager.h @@ -25,17 +25,21 @@ #include "ocstack.h" #include "securevirtualresourcetypes.h" +#ifdef __cplusplus +extern "C" { +#endif + /** * Initialize all secure resources ( /oic/sec/cred, /oic/sec/acl, /oic/sec/pstat etc). * - * @retval OC_STACK_OK for Success, otherwise some error value + * @return ::OC_STACK_OK for Success, otherwise some error value */ OCStackResult InitSecureResources(); /** * Perform cleanup for secure resources ( /oic/sec/cred, /oic/sec/acl, /oic/sec/pstat etc). * - * @retval OC_STACK_OK for Success, otherwise some error value + * @return ::OC_STACK_OK for Success, otherwise some error value */ OCStackResult DestroySecureResources(); @@ -44,13 +48,17 @@ OCStackResult DestroySecureResources(); * * @param ehRequest pointer to entity handler request data structure. * @param ehRet result code from entity handler. - * @param rspPayload response payload in JSON. + * @param cborPayload response payload. + * @param size is the cborpayload size * - * @retval OC_STACK_OK for Success, otherwise some error value + * @return ::OC_STACK_OK for Success, otherwise some error value. */ OCStackResult SendSRMResponse(const OCEntityHandlerRequest *ehRequest, - OCEntityHandlerResult ehRet, const char *rspPayload); + OCEntityHandlerResult ehRet, uint8_t *cborPayload, size_t size); -#endif //IOTVT_SRM_RM_H +#ifdef __cplusplus +} +#endif +#endif //IOTVT_SRM_RM_H