/**
* @brief Enumeration for error codes of a message port.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
*/
typedef enum {
MESSAGE_PORT_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
/**
* @brief Called when a message is received.
* @details The function is called when a message is received from the remote application.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @remarks @a message is automatically freed by framework when callback returned, you can keep @a message using bundle_dup() @n
* @a remote_port will be set only if the remote application sends a message with its port information using message_port_send_message_with_local_port(), otherwise it is @c NULL @n
* When message is sent from remote application by message_port_send_message_with_local_port() in bidirectional communication, trusted_remote_port is used to check whether remote port is trusted port or not
/**
* @brief Called when a trusted message is received.
* @details This function is called when a trusted message is received from the remote application.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @remarks You can keep @a message using bundle_dup(). @n
* @a remote_port will be set only if the remote application sends a message with its port information using message_port_send_trusted_message_with_local_port(), otherwise it is @c NULL. @n
* When message is sent from remote application by message_port_send_trusted_message_with_local_port() in bidirectional communication, trusted_remote_port is used to check whether remote port is trusted port or not.
* @brief Registers the local message port.
* @details If the message port name is already registered, the previous local message port ID returns and the callback function is changed. \n
* Multiple message ports can be registered.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @remarks The specified callback is called only in the main thread.
* @param[in] local_port The name of the local message port
* @param[in] callback The callback function to be called when a message is received
* @details If the message port name is already registered, the previous local message port ID returns and the callback function is changed. @n
* It allows communications only if the applications are signed with the same certificate, which is uniquely assigned to the developer. @n
* Multiple message ports can be registered.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @remarks The specified callback is called only in the main thread.
* @param[in] trusted_local_port The name of the trusted local message port
* @param[in] callback The callback function to be called when a trusted message is received
/**
* @brief Unregisters the local message port.
* @details This method unregisters the callback function with the specified local port ID.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @param[in] local_port_id The local message port ID
* @return @c 0 on success,
* otherwise a negative error value
* @brief Unregisters the trusted local message port.
* @details This method unregisters the callback function with the specified local port ID. @n
* It allows communications only if the applications are signed with the same certificate, which is uniquely assigned to the developer.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @param[in] trusted_local_port_id The trusted local message port ID
* @return @c 0 on success,
* otherwise a negative error value
/**
* @brief Checks whether the message port of a remote application is registered.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @remarks If this function returns a negative error value, the out parameter @a exist will not be changed.
* @param[in] remote_app_id The ID of the remote application
* @param[in] remote_port The name of the remote message port
/**
* @brief Checks whether the trusted message port of a remote application is registered.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @remarks If this function returns a negative error value, the out parameter @a exist will not be changed.
* @param[in] remote_app_id The ID of the remote application
* @param[in] remote_port The name of the remote message port
/**
* @brief Sends a message to the message port of a remote application.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @remarks @a message must be released with bundle_free() after sending the message.
* @param[in] remote_app_id The ID of the remote application
* @param[in] remote_port The name of the remote message port
/**
* @brief Sends a trusted message to the message port of a remote application.
* @details This method allows communication only if the applications are signed with the same certificate, which is uniquely assigned to the developer.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @remarks You must release @a message using bundle_free() after sending the message.
* @param[in] remote_app_id The ID of the remote application
* @param[in] remote_port The name of the remote message port
/**
* @brief Sends a message with local port information to the message port of a remote application.
* @details This method is used for bidirectional communication.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @remarks You must release @a message using bundle_free() after sending the message.
* @param[in] remote_app_id The ID of the remote application
* @param[in] remote_port The name of the remote message port
* @brief Sends a trusted message with local port information to the message port of a remote application.
* @details This method is used for bidirectional communication. @n
* It allows communications only if the applications are signed with the same certificate, which is uniquely assigned to the developer.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @remarks You muse release @a message using bundle_free() after sending the message.
* @param[in] remote_app_id The ID of the remote application
* @param[in] remote_port The name of the remote message port