Fix missing code 36/286736/1
authorInkyun Kil <inkyun.kil@samsung.com>
Thu, 12 Jan 2023 07:47:00 +0000 (16:47 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Thu, 12 Jan 2023 07:47:00 +0000 (16:47 +0900)
- Some apis missing 'extern "C"' that's why declared with 'C++' linkage

Change-Id: I175fe1a3ff490ea44a3b22fa220368f9171fc33f
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
notification/include/notification_db.h
notification/include/notification_noti.h
notification/include/notification_ongoing_flag.h
notification/include/notification_private.h

index 2a6ad9f..86936da 100644 (file)
 #define NOTIFICATION_EMPTY_STR ""
 #define NOTIFICATION_CHECK_STR(p) ((p) ? (p) : NOTIFICATION_EMPTY_STR)
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 sqlite3 *notification_db_open(void);
 int notification_db_close(sqlite3 **db);
 int notification_db_exec(sqlite3 *db, const char *query, int *num_changes);
@@ -33,5 +37,8 @@ char *notification_db_column_text(sqlite3_stmt *stmt, int col);
 bundle *notification_db_column_bundle(sqlite3_stmt *stmt, int col);
 int notification_db_init(void);
 
+#ifdef __cplusplus
+}
+#endif
 #endif /* __NOTIFICATION_DB_H__ */
 
index 4a2807e..6f33dbf 100644 (file)
 #include <notification.h>
 #include <notification_list.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define TAG_TIME "TIME"
 #define TAG_TYPE_INVALID -1
 #define TAG_TYPE_TIME 1
@@ -89,5 +93,8 @@ int notification_noti_delete_template(const char *pkg_id);
 void notification_noti_init_data(void);
 int notification_noti_check_limit(notification_h noti, uid_t uid, GList **list);
 
+#ifdef __cplusplus
+}
+#endif
 #endif /* __NOTIFICATION_NOTI_H__ */
 
index e7238a4..384c575 100644 (file)
 #ifndef __NOTIFICATION_ONGOING_FLAG_H__
 #define __NOTIFICATION_ONGOING_FLAG_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <notification.h>
 
 /**
@@ -79,5 +83,8 @@ int notification_set_ongoing_flag(notification_h noti, bool ongoing_flag);
  */
 int notification_get_ongoing_flag(notification_h noti, bool *ongoing_flag);
 
+#ifdef __cplusplus
+}
+#endif
 #endif /* __NOTIFICATION_ONGOING_H__ */
 
index a9ce8ed..ef0d80e 100644 (file)
 #include <sys/types.h>
 #include <notification_internal.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef EXPORT_API
 #define EXPORT_API __attribute__ ((visibility("default")))
 #endif
@@ -183,5 +187,8 @@ void notification_call_event_handler_cb(notification_h noti, int event_type);
 void notification_delete_event_handler_cb(int priv_id);
 char *notification_get_app_id_by_pid(int pid);
 
+#ifdef __cplusplus
+}
+#endif
 #endif /* __NOTIFICATION_PRIVATE_H__ */