Remove EXPORT_API from internal APIs 02/91102/1
authorHyunho Kang <hhstark.kang@samsung.com>
Thu, 6 Oct 2016 01:02:31 +0000 (10:02 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Thu, 6 Oct 2016 01:05:18 +0000 (10:05 +0900)
- message-port internal APIs are only for message-port package

Change-Id: I609e26fb13ee147080de64d91ea86dc8ced04b66
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
include/message-port.h

index 2f29a90..1014655 100644 (file)
 #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);
 
 /**
  * @}