capi: add extern "C" prefix to header file 96/317396/2
authorInki Dae <inki.dae@samsung.com>
Wed, 1 Jan 2025 23:47:48 +0000 (08:47 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 13 Jan 2025 04:56:19 +0000 (13:56 +0900)
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 <inki.dae@samsung.com>
capi/singleo_native_capi.h
capi/singleo_native_capi_internal.h

index 3465823bf997a511abc7e6f30ca030d90d2580b5..10058fc5d2ebe60f42e008cc96512d834840034d 100644 (file)
 #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
index 96c72aeb383b19f0a9b88f19c162a5a470d995d6..9ec67d4afcc6ebc2481b06bcb3181ef63f503e89 100644 (file)
 
 #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