Remove conditional statements for Moible/Wearable profile 79/306079/1
authorChanggyu Choi <changyu.choi@samsung.com>
Fri, 16 Feb 2024 04:58:33 +0000 (13:58 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Fri, 16 Feb 2024 04:58:33 +0000 (13:58 +0900)
Change-Id: I04584296e124bd559cf4c16f7547dcd47d1d387e
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
include/message_port.h

index 2cc2bd3..6bd6ee4 100644 (file)
@@ -41,7 +41,7 @@ extern "C" {
 
 /**
  * @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 */
@@ -58,7 +58,7 @@ typedef enum {
 /**
  * @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
@@ -81,7 +81,7 @@ typedef void (*message_port_message_cb)(int local_port_id, const char *remote_ap
 /**
  * @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.
@@ -129,7 +129,7 @@ typedef void (*message_port_registration_event_cb)(const char *remote_app_id,
  * @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
@@ -149,7 +149,7 @@ int message_port_register_local_port(const char *local_port, message_port_messag
  * @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
@@ -167,7 +167,7 @@ int message_port_register_trusted_local_port(const char *trusted_local_port, mes
 /**
  * @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
@@ -185,7 +185,7 @@ int message_port_unregister_local_port(int local_port_id);
  * @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
@@ -201,7 +201,7 @@ int message_port_unregister_trusted_local_port(int trusted_local_port_id);
 
 /**
  * @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
@@ -219,7 +219,7 @@ int message_port_check_remote_port(const char *remote_app_id, const char *remote
 
 /**
  * @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
@@ -238,7 +238,7 @@ int message_port_check_trusted_remote_port(const char *remote_app_id, const char
 
 /**
  * @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
@@ -272,7 +272,7 @@ int message_port_send_message(const char *remote_app_id, const char *remote_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
@@ -298,7 +298,7 @@ int message_port_send_trusted_message(const char *remote_app_id, const char *rem
 /**
  * @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
@@ -345,7 +345,7 @@ int message_port_send_message_with_local_port(const char *remote_app_id, const c
  * @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