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>
#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);
* 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__ */