summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInkyun Kil <inkyun.kil@samsung.com>2023-01-12 16:47:00 +0900
committerInkyun Kil <inkyun.kil@samsung.com>2023-01-12 16:47:00 +0900
commitca592241dce40aa145e6aa14d13fbba7e398f67c (patch)
treebd6b3c52ae59d340d47c0f5e8072fba541ed2f9e
parente548b02afa21809152fa3a8cb027e25a061c3746 (diff)
downloadnotification-ca592241dce40aa145e6aa14d13fbba7e398f67c.tar.gz
notification-ca592241dce40aa145e6aa14d13fbba7e398f67c.tar.bz2
notification-ca592241dce40aa145e6aa14d13fbba7e398f67c.zip
Fix missing code
- Some apis missing 'extern "C"' that's why declared with 'C++' linkage Change-Id: I175fe1a3ff490ea44a3b22fa220368f9171fc33f Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
-rw-r--r--notification/include/notification_db.h7
-rw-r--r--notification/include/notification_noti.h7
-rw-r--r--notification/include/notification_ongoing_flag.h7
-rw-r--r--notification/include/notification_private.h7
4 files changed, 28 insertions, 0 deletions
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 <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__ */
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 <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__ */
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 <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__ */