#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>
* @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
* @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
* @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.
* @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.
* @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.
* 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
* @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.
* 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.
* @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);
/**
* @}