summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunhee Seo <yuni.seo@samsung.com>2024-10-17 12:46:42 +0900
committerYunhee Seo <yuni.seo@samsung.com>2024-11-21 19:18:00 +0900
commitf797db4418b28a366e024df01794a24f4628d92f (patch)
tree3f1999e56c8a5ab3cfb2e1e570fcfb27b358a03e
parentd3375a465c9f1ab3fc00566cfa9cef44e84c2652 (diff)
downloadlibsyscommon-tizen_9.0.tar.gz
libsyscommon-tizen_9.0.tar.bz2
libsyscommon-tizen_9.0.zip
Add extern C definition to notifier.htizen_9.0
Although plugin-api-deviced header has extern C definition, there was no extern C definition in the notifier header. Thus, it was hard to implement utilizing notifier releated logic from the C++ environment. To support notifier usage in the C++ environment, this is necessary. Change-Id: I41b58beba054746dcfb21fe7cf7ed7c2193da440 Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
-rw-r--r--include/libsyscommon/notifier.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libsyscommon/notifier.h b/include/libsyscommon/notifier.h
index f88d22f..827eb3e 100644
--- a/include/libsyscommon/notifier.h
+++ b/include/libsyscommon/notifier.h
@@ -23,6 +23,10 @@
#ifndef __SYSCOMMON_NOTIFIER_H__
#define __SYSCOMMON_NOTIFIER_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef int (*syscommon_notifier_cb) (void *notify_data);
typedef int (*syscommon_notifier_udata_cb) (void *notify_data, void *user_data);
typedef void (*syscommon_notifier_destroy_cb) (void *user_data);
@@ -74,4 +78,8 @@ void syscommon_notifier_emit_notify(int type, void *notify_data);
* Notification after the first one is ignored. */
void syscommon_notifier_emit_notify_once(int type, void *notify_data);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __SYSCOMMON_NOTIFIER_H__ */