From ca592241dce40aa145e6aa14d13fbba7e398f67c Mon Sep 17 00:00:00 2001 From: Inkyun Kil Date: Thu, 12 Jan 2023 16:47:00 +0900 Subject: [PATCH] Fix missing code - Some apis missing 'extern "C"' that's why declared with 'C++' linkage Change-Id: I175fe1a3ff490ea44a3b22fa220368f9171fc33f Signed-off-by: Inkyun Kil --- notification/include/notification_db.h | 7 +++++++ notification/include/notification_noti.h | 7 +++++++ notification/include/notification_ongoing_flag.h | 7 +++++++ notification/include/notification_private.h | 7 +++++++ 4 files changed, 28 insertions(+) diff --git a/notification/include/notification_db.h b/notification/include/notification_db.h index 2a6ad9f..86936da 100644 --- a/notification/include/notification_db.h +++ b/notification/include/notification_db.h @@ -26,6 +26,10 @@ #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__ */ diff --git a/notification/include/notification_noti.h b/notification/include/notification_noti.h index 4a2807e..6f33dbf 100644 --- a/notification/include/notification_noti.h +++ b/notification/include/notification_noti.h @@ -23,6 +23,10 @@ #include #include +#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__ */ diff --git a/notification/include/notification_ongoing_flag.h b/notification/include/notification_ongoing_flag.h index e7238a4..384c575 100644 --- a/notification/include/notification_ongoing_flag.h +++ b/notification/include/notification_ongoing_flag.h @@ -17,6 +17,10 @@ #ifndef __NOTIFICATION_ONGOING_FLAG_H__ #define __NOTIFICATION_ONGOING_FLAG_H__ +#ifdef __cplusplus +extern "C" { +#endif + #include /** @@ -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__ */ diff --git a/notification/include/notification_private.h b/notification/include/notification_private.h index a9ce8ed..ef0d80e 100644 --- a/notification/include/notification_private.h +++ b/notification/include/notification_private.h @@ -19,6 +19,10 @@ #include #include +#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__ */ -- 2.7.4