summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunho Kang <hhstark.kang@samsung.com>2016-10-06 10:02:31 +0900
committerHyunho Kang <hhstark.kang@samsung.com>2016-10-06 10:05:18 +0900
commit88711b815d2bbaf125ca6119eae7ab876772b962 (patch)
tree9ce13a3ee650aed0f9c00ee25591d0a651904f30
parent5879c848cf6c094cead314d184ac616e5aca9282 (diff)
downloadmessage-port-88711b815d2bbaf125ca6119eae7ab876772b962.tar.gz
message-port-88711b815d2bbaf125ca6119eae7ab876772b962.tar.bz2
message-port-88711b815d2bbaf125ca6119eae7ab876772b962.zip
Remove EXPORT_API from internal APIs
- message-port internal APIs are only for message-port package Change-Id: I609e26fb13ee147080de64d91ea86dc8ced04b66 Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
-rw-r--r--include/message-port.h26
1 files changed, 9 insertions, 17 deletions
diff --git a/include/message-port.h b/include/message-port.h
index 2f29a90..1014655 100644
--- a/include/message-port.h
+++ b/include/message-port.h
@@ -19,14 +19,6 @@
#ifndef __APPFW_MESSAGE_PORT_H__
#define __APPFW_MESSAGE_PORT_H__
-#ifdef __GNUC__
-# ifndef EXPORT_API
-# define EXPORT_API __attribute__((visibility("default")))
-# endif
-#else
-# define EXPORT_API
-#endif
-
#include <bundle.h>
#include <message_port_error.h>
@@ -58,7 +50,7 @@ typedef void (*messageport_message_cb)(int id, const char *remote_app_id, const
* @retval #MESSAGEPORT_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MESSAGEPORT_ERROR_MESSAGEPORT_NOT_FOUND The message port of the remote application is not found
*/
-EXPORT_API int messageport_unregister_local_port(int local_port_id, bool trusted_port);
+ int messageport_unregister_local_port(int local_port_id, bool trusted_port);
/**
* @brief Registers the local message port. @n
@@ -73,7 +65,7 @@ EXPORT_API int messageport_unregister_local_port(int local_port_id, bool trusted
* @retval #MESSAGEPORT_ERROR_IO_ERROR Internal I/O error
* @retval #MESSAGEPORT_ERROR_RESOURCE_UNAVAILABLE Resource temporarily unavailable
*/
-EXPORT_API int messageport_register_local_port(const char *local_port, messageport_message_cb callback);
+ int messageport_register_local_port(const char *local_port, messageport_message_cb callback);
/**
* @brief Registers the trusted local message port. @n
@@ -89,7 +81,7 @@ EXPORT_API int messageport_register_local_port(const char *local_port, messagepo
* @retval #MESSAGEPORT_ERROR_IO_ERROR Internal I/O error
* @retval #MESSAGEPORT_ERROR_RESOURCE_UNAVAILABLE Resource temporarily unavailable
*/
-EXPORT_API int messageport_register_trusted_local_port(const char *local_port, messageport_message_cb callback);
+ int messageport_register_trusted_local_port(const char *local_port, messageport_message_cb callback);
/**
* @brief Checks if the message port of a remote application is registered.
@@ -104,7 +96,7 @@ EXPORT_API int messageport_register_trusted_local_port(const char *local_port, m
* @retval #MESSAGEPORT_ERROR_IO_ERROR Internal I/O error
* @retval #MESSAGEPORT_ERROR_RESOURCE_UNAVAILABLE Resource temporarily unavailable
*/
-EXPORT_API int messageport_check_remote_port(const char *remote_app_id, const char *remote_port, bool *exist);
+ int messageport_check_remote_port(const char *remote_app_id, const char *remote_port, bool *exist);
/**
* @brief Checks if the trusted message port of a remote application is registered.
@@ -120,7 +112,7 @@ EXPORT_API int messageport_check_remote_port(const char *remote_app_id, const ch
* @retval #MESSAGEPORT_ERROR_IO_ERROR Internal I/O error
* @retval #MESSAGEPORT_ERROR_RESOURCE_UNAVAILABLE Resource temporarily unavailable
*/
-EXPORT_API int messageport_check_trusted_remote_port(const char *remote_app_id, const char *remote_port, bool *exist);
+ int messageport_check_trusted_remote_port(const char *remote_app_id, const char *remote_port, bool *exist);
/**
* @brief Sends a message to the message port of a remote application.
@@ -149,7 +141,7 @@ EXPORT_API int messageport_check_trusted_remote_port(const char *remote_app_id,
* bundle_free(b);
* @endcode
*/
-EXPORT_API int messageport_send_message(const char *remote_app_id, const char *remote_port, bundle *message);
+ int messageport_send_message(const char *remote_app_id, const char *remote_port, bundle *message);
/**
* @brief Sends a trusted message to the message port of a remote application. @n
@@ -168,7 +160,7 @@ EXPORT_API int messageport_send_message(const char *remote_app_id, const char *r
* @retval #MESSAGEPORT_ERROR_IO_ERROR Internal I/O error
* @retval #MESSAGEPORT_ERROR_RESOURCE_UNAVAILABLE Resource temporarily unavailable
*/
-EXPORT_API int messageport_send_trusted_message(const char *remote_app_id, const char *remote_port, bundle *message);
+ int messageport_send_trusted_message(const char *remote_app_id, const char *remote_port, bundle *message);
/**
* @brief Sends a message to the message port of a remote application. This method is used for the bidirectional communication.
@@ -207,7 +199,7 @@ EXPORT_API int messageport_send_trusted_message(const char *remote_app_id, const
* bundle_free(b);
* }
*/
-EXPORT_API int messageport_send_bidirectional_message(int id, const char *remote_app_id, const char *remote_port, bundle *data);
+ int messageport_send_bidirectional_message(int id, const char *remote_app_id, const char *remote_port, bundle *data);
/**
* @brief Sends a trusted message to the message port of a remote application. This method is used for the bidirectional communication.
@@ -227,7 +219,7 @@ EXPORT_API int messageport_send_bidirectional_message(int id, const char *remote
* @retval #MESSAGEPORT_ERROR_IO_ERROR Internal I/O error
* @retval #MESSAGEPORT_ERROR_RESOURCE_UNAVAILABLE Resource temporarily unavailable
*/
-EXPORT_API int messageport_send_bidirectional_trusted_message(int id, const char *remote_app_id, const char *remote_port, bundle *data);
+ int messageport_send_bidirectional_trusted_message(int id, const char *remote_app_id, const char *remote_port, bundle *data);
/**
* @}