Fix build break issue 46/292546/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 10 May 2023 00:48:39 +0000 (00:48 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 10 May 2023 00:48:39 +0000 (00:48 +0000)
To use the CAPI in the C++ code, the function should be defined with
external linkage.

Change-Id: I9cd0bd140e67b56dc130f6819821bb477f0fed71
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/common/inc/launchpad_plugin.h

index f2cf987fa29c03d4327786f06b9859ee89fab506..d8b712392d1f78a73b20b8c4b2cff29f4d4f7d2b 100644 (file)
 
 #include <bundle.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int _launchpad_plugin_prepare_app(const char *app_id, bundle *kb);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __LAUNCHPAD_PLUGIN_H__ */