summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2019-07-31 16:48:25 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2019-07-31 16:48:25 +0900
commite19fd8a6955f7677bfc371cc89f9629ecdd0b14f (patch)
tree38eb944952224497504ca88dbc77ce64f5808f3e
parent7496486cb8c9501d36bfe0f1e81145f4d9dd7170 (diff)
downloadaul-1-e19fd8a6955f7677bfc371cc89f9629ecdd0b14f.tar.gz
aul-1-e19fd8a6955f7677bfc371cc89f9629ecdd0b14f.tar.bz2
aul-1-e19fd8a6955f7677bfc371cc89f9629ecdd0b14f.zip
Make explicit linkage
Change-Id: I73026b4d51b25d1dcb7ecfa9f57cfe3fe2330bb4 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rwxr-xr-xinclude/aul_cmd.h8
-rw-r--r--include/aul_error.h9
-rw-r--r--include/aul_proc.h8
-rw-r--r--include/aul_sock.h8
-rw-r--r--include/aul_util.h8
-rw-r--r--include/key.h8
-rw-r--r--include/miregex.h8
7 files changed, 54 insertions, 3 deletions
diff --git a/include/aul_cmd.h b/include/aul_cmd.h
index 47aad63a..e7c96946 100755
--- a/include/aul_cmd.h
+++ b/include/aul_cmd.h
@@ -17,6 +17,10 @@
#pragma once
+#ifdef __cplusplus
+extern "C" {
+#endif
+
enum app_cmd {
APP_START = 0,
@@ -172,3 +176,7 @@ enum app_cmd {
};
const char *aul_cmd_convert_to_string(int cmd);
+
+#ifdef __cplusplus
+}
+#endif
diff --git a/include/aul_error.h b/include/aul_error.h
index 59fc2dd9..cbe171ff 100644
--- a/include/aul_error.h
+++ b/include/aul_error.h
@@ -17,10 +17,17 @@
#ifndef __AUL_ERROR_H__
#define __AUL_ERROR_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* This API is only for Appfw internally.
*/
int aul_error_convert(int res);
-#endif /* __AUL_ERROR_H__ */
+#ifdef __cplusplus
+}
+#endif
+#endif /* __AUL_ERROR_H__ */
diff --git a/include/aul_proc.h b/include/aul_proc.h
index 01eb2137..29d89b64 100644
--- a/include/aul_proc.h
+++ b/include/aul_proc.h
@@ -19,7 +19,15 @@
#include <unistd.h>
#include <ctype.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* This API is only for Appfw internally.
*/
uid_t aul_proc_get_usr_bypid(int pid);
+
+#ifdef __cplusplus
+}
+#endif
diff --git a/include/aul_sock.h b/include/aul_sock.h
index cee5e9df..041f04a4 100644
--- a/include/aul_sock.h
+++ b/include/aul_sock.h
@@ -23,6 +23,10 @@
#include <bundle.h>
#include "aul_cmd.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define AUL_SOCK_MAXBUFF 131071
#define ELOCALLAUNCH_ID 128
#define EILLEGALACCESS 127
@@ -123,3 +127,7 @@ int aul_sock_destroy_server(int fd);
* This API is only for Appfw internally.
*/
int aul_sock_send_result(int fd, int res);
+
+#ifdef __cplusplus
+}
+#endif
diff --git a/include/aul_util.h b/include/aul_util.h
index c93607f2..60fb1795 100644
--- a/include/aul_util.h
+++ b/include/aul_util.h
@@ -20,6 +20,10 @@
#include <dlog.h>
#include <tzplatform_config.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define GLOBAL_USER tzplatform_getuid(TZ_SYS_GLOBALAPP_USER)
#undef LOG_TAG
@@ -51,3 +55,7 @@ tizen_profile_t _get_tizen_profile(void);
#define TIZEN_FEATURE_SOCKET_TIMEOUT (_get_tizen_profile() & TIZEN_PROFILE_TV)
#define TIZEN_FEATURE_SHARE_PANEL (_get_tizen_profile() & TIZEN_PROFILE_MOBILE)
+
+#ifdef __cplusplus
+}
+#endif
diff --git a/include/key.h b/include/key.h
index 65da01ee..4f634e5f 100644
--- a/include/key.h
+++ b/include/key.h
@@ -16,6 +16,12 @@
#pragma once
-int app_key_event(bundle *kb);
+#ifdef __cplusplus
+extern "C" {
+#endif
+int app_key_event(bundle *kb);
+#ifdef __cplusplus
+}
+#endif
diff --git a/include/miregex.h b/include/miregex.h
index 20d4c86b..da60c01d 100644
--- a/include/miregex.h
+++ b/include/miregex.h
@@ -18,6 +18,10 @@
#include <regex.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct _regex_tbl {
char *mimetype;
char *regex;
@@ -28,4 +32,6 @@ typedef struct _regex_tbl {
regex_tbl *miregex_get_regex_table();
-
+#ifdef __cplusplus
+}
+#endif