From: Inki Dae Date: Wed, 1 Jan 2025 23:47:48 +0000 (+0900) Subject: capi: add extern "C" prefix to header file X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F96%2F317396%2F2;p=platform%2Fcore%2Fapi%2Fsingleo.git capi: add extern "C" prefix to header file Add extern "C" prefix to header file for other users want to use singleo framework library file. Change-Id: I5520ef0dc34413efb233794491bc19732ca7365e Signed-off-by: Inki Dae --- diff --git a/capi/singleo_native_capi.h b/capi/singleo_native_capi.h index 3465823..10058fc 100644 --- a/capi/singleo_native_capi.h +++ b/capi/singleo_native_capi.h @@ -16,6 +16,15 @@ #ifndef __SINGLEO_NATIVE_CAPI_H__ #define __SINGLEO_NATIVE_CAPI_H__ +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * @addtogroup SINGLEO_NATIVE_CAPI_MODULE + * @{ + */ + /** * @brief The singleo service object handle. * @@ -267,4 +276,11 @@ int singleo_service_get_result_str(singleo_service_h handle, unsigned int idx, c */ int singleo_service_get_result_ptr(singleo_service_h handle, unsigned int idx, const char *key, unsigned char **ptr); +/** + * @} + */ +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif diff --git a/capi/singleo_native_capi_internal.h b/capi/singleo_native_capi_internal.h index 96c72ae..9ec67d4 100644 --- a/capi/singleo_native_capi_internal.h +++ b/capi/singleo_native_capi_internal.h @@ -18,6 +18,15 @@ #include "singleo_native_capi.h" +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * @addtogroup SINGLEO_NATIVE_CAPI_INTERNAL_MODULE + * @{ + */ + /** * @internal * @brief Registers user-given callback for user to receive result mixed with input data. @@ -64,4 +73,11 @@ int singleo_service_register_user_callback(singleo_service_h handle, */ int singleo_service_unregister_user_callback(singleo_service_h handle); +/** + * @} + */ +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif \ No newline at end of file