Remove conditional statements for Moible/Wearable profile 74/306074/1
authorChanggyu Choi <changyu.choi@samsung.com>
Fri, 16 Feb 2024 04:47:53 +0000 (13:47 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Fri, 16 Feb 2024 04:47:53 +0000 (13:47 +0900)
Change-Id: I6b92bf26fb63ffe967416d62057d5ead1ef188b3
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
include/rpc-port-parcel.h
include/rpc-port.h

index 48c6a8d..90e1e93 100644 (file)
@@ -34,7 +34,7 @@ extern "C" {
 
 /**
  * @brief The rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  */
 typedef void *rpc_port_parcel_h;
 
@@ -46,7 +46,7 @@ typedef void *rpc_port_parcel_header_h;
 
 /**
  * @brief The interface for converting data to/from a parcel.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  */
 typedef struct __rpc_port_parcelable {
        void (*to)(rpc_port_parcel_h h, void *data);  /**< The function pointer to read from parcel */
@@ -55,7 +55,7 @@ typedef struct __rpc_port_parcelable {
 
 /**
  * @brief Creates a rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @remarks You must release @a h using rpc_port_parcel_destroy().
  * @param[out] h The rpc port parcel handle that is newly created
  * @return @c 0 on success,
@@ -70,7 +70,7 @@ int rpc_port_parcel_create(rpc_port_parcel_h *h);
  * @brief Creates a rpc port parcel handle from port.
  * @details Creates a rpc port parcel handle using read data from the port.
  *          It calls rpc_port_read() internally.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @remarks You must release @a h using rpc_port_parcel_destroy().
  * @param[out] h The rpc port parcel handle that is newly created
  * @param[in] port The rpc port handle for creating handle
@@ -88,7 +88,7 @@ int rpc_port_parcel_create_from_port(rpc_port_parcel_h *h, rpc_port_h port);
  * @brief Sends parcel data through the port.
  * @details Sends parcel data through the port. It calls rpc_port_write()
  *          internally.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle that is newly created
  * @param[in] port The rpc port handle for writing data
  * @return @c 0 on success,
@@ -102,7 +102,7 @@ int rpc_port_parcel_send(rpc_port_parcel_h h, rpc_port_h port);
 
 /**
  * @brief Destroys a rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -114,7 +114,7 @@ int rpc_port_parcel_destroy(rpc_port_parcel_h h);
 
 /**
  * @brief Writes a byte value into rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[in] b Byte data
  * @return @c 0 on success,
@@ -127,7 +127,7 @@ int rpc_port_parcel_write_byte(rpc_port_parcel_h h, char b);
 
 /**
  * @brief Writes a short value into rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[in] i short data
  * @return @c 0 on success,
@@ -140,7 +140,7 @@ int rpc_port_parcel_write_int16(rpc_port_parcel_h h, short i);
 
 /**
  * @brief Writes a integer value into rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[in] i int data
  * @return @c 0 on success,
@@ -153,7 +153,7 @@ int rpc_port_parcel_write_int32(rpc_port_parcel_h h, int i);
 
 /**
  * @brief Writes a long long integer value into rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[in] i long long data
  * @return @c 0 on success,
@@ -166,7 +166,7 @@ int rpc_port_parcel_write_int64(rpc_port_parcel_h h, long long i);
 
 /**
  * @brief Writes a floating point value into rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[in] f float data
  * @return @c 0 on success,
@@ -179,7 +179,7 @@ int rpc_port_parcel_write_float(rpc_port_parcel_h h, float f);
 
 /**
  * @brief Writes a double precision floating point value into rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[in] d double data
  * @return @c 0 on success,
@@ -192,7 +192,7 @@ int rpc_port_parcel_write_double(rpc_port_parcel_h h, double d);
 
 /**
  * @brief Writes a string value into rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[in] str string data
  * @return @c 0 on success,
@@ -205,7 +205,7 @@ int rpc_port_parcel_write_string(rpc_port_parcel_h h, const char *str);
 
 /**
  * @brief Writes a boolean value into rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[in] b boolean data
  * @return @c 0 on success,
@@ -218,7 +218,7 @@ int rpc_port_parcel_write_bool(rpc_port_parcel_h h, bool b);
 
 /**
  * @brief Writes a bundle data into rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[in] b Bundle data
  * @return @c 0 on success,
@@ -231,7 +231,7 @@ int rpc_port_parcel_write_bundle(rpc_port_parcel_h h, bundle *b);
 
 /**
  * @brief Writes a count for array into rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[in] count Array count
  * @return @c 0 on success,
@@ -244,7 +244,7 @@ int rpc_port_parcel_write_array_count(rpc_port_parcel_h h, int count);
 
 /**
  * @brief Writes the data into parcel handle using @a parcelable.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[in] parcelable The interface to write the data into parcel handle
  * @param[in] data Data which write into parcel
@@ -258,7 +258,7 @@ int rpc_port_parcel_write(rpc_port_parcel_h h, rpc_port_parcelable_t *parcelable
 
 /**
  * @brief Reads a byte value from rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[out] b Byte data
  * @return @c 0 on success,
@@ -271,7 +271,7 @@ int rpc_port_parcel_read_byte(rpc_port_parcel_h h, char *b);
 
 /**
  * @brief Reads a short value from rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[out] i short data
  * @return @c 0 on success,
@@ -284,7 +284,7 @@ int rpc_port_parcel_read_int16(rpc_port_parcel_h h, short *i);
 
 /**
  * @brief Reads a integer value from rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[out] i int data
  * @return @c 0 on success,
@@ -297,7 +297,7 @@ int rpc_port_parcel_read_int32(rpc_port_parcel_h h, int *i);
 
 /**
  * @brief Reads a long long integer value from rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[out] i long long data
  * @return @c 0 on success,
@@ -310,7 +310,7 @@ int rpc_port_parcel_read_int64(rpc_port_parcel_h h, long long *i);
 
 /**
  * @brief Reads a floating point value from rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[out] f float data
  * @return @c 0 on success,
@@ -323,7 +323,7 @@ int rpc_port_parcel_read_float(rpc_port_parcel_h h, float *f);
 
 /**
  * @brief Reads a double precision floating point value from rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[out] d double data
  * @return @c 0 on success,
@@ -336,7 +336,7 @@ int rpc_port_parcel_read_double(rpc_port_parcel_h h, double *d);
 
 /**
  * @brief Reads a string value from rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @remarks The @a str should be released using free().
  * @param[in] h The rpc port parcel handle
  * @param[out] str string data
@@ -350,7 +350,7 @@ int rpc_port_parcel_read_string(rpc_port_parcel_h h, char **str);
 
 /**
  * @brief Reads a boolean value from rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[out] b boolean data
  * @return @c 0 on success,
@@ -363,7 +363,7 @@ int rpc_port_parcel_read_bool(rpc_port_parcel_h h, bool *b);
 
 /**
  * @brief Reads a bundle data from rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @remarks The @a b should be released using bundle_free().
  * @param[in] h The rpc port parcel handle
  * @param[out] b Bundle data
@@ -377,7 +377,7 @@ int rpc_port_parcel_read_bundle(rpc_port_parcel_h h, bundle **b);
 
 /**
  * @brief Reads a count for array from rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[out] count Array count
  * @return @c 0 on success,
@@ -390,7 +390,7 @@ int rpc_port_parcel_read_array_count(rpc_port_parcel_h h, int *count);
 
 /**
  * @brief Reads a parcel from the data using @a parcelable.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[in] parcelable The interface to get data from parcel handle
  * @param[in] data Data which get from parcel
@@ -404,7 +404,7 @@ int rpc_port_parcel_read(rpc_port_parcel_h h, rpc_port_parcelable_t *parcelable,
 
 /**
  * @brief Reads bytes from rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[out] buf The array buffer to read
  * @param[in] size Bytes to read
@@ -418,7 +418,7 @@ int rpc_port_parcel_burst_read(rpc_port_parcel_h h, unsigned char *buf, unsigned
 
 /**
  * @brief Writes bytes to rpc port parcel handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port parcel handle
  * @param[in] buf The array buffer to write
  * @param[in] size Bytes to write
index 458f922..f04aeb2 100644 (file)
@@ -32,7 +32,7 @@ extern "C" {
 
 /**
  * @brief Enumeration for error codes of a rpc port.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  */
 typedef enum {
        RPC_PORT_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
@@ -44,7 +44,7 @@ typedef enum {
 
 /**
  * @brief Enumeration for types of communication channels.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  */
 typedef enum {
        RPC_PORT_PORT_MAIN, /**< Main channel */
@@ -55,13 +55,13 @@ typedef enum {
 
 /**
  * @brief The rpc port handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  */
 typedef void *rpc_port_h;
 
 /**
  * @brief Reads data from an RPC port.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  *
  * @param[in] h The rpc port handle
  * @param[out] buf Buffer for reading data
@@ -78,7 +78,7 @@ int rpc_port_read(rpc_port_h h, void *buf, unsigned int size);
 
 /**
  * @brief Writes data to an RPC port.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  *
  * @param[in] h The rpc port handle
  * @param[in] buf Buffer for writing data
@@ -99,7 +99,7 @@ int rpc_port_write(rpc_port_h h, const void *buf, unsigned int size);
 /**
  * @brief Called when the proxy is connected.
  * @details The function is called when the proxy is connected with stub by port.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] receiver The target stub app id
  * @param[in] port_name The name of the port
  * @param[in] port The rpc port handle for reading and writing
@@ -111,7 +111,7 @@ typedef void (*rpc_port_proxy_connected_event_cb)(const char *receiver,
 /**
  * @brief Called when the proxy is disconnected.
  * @details The function is called when the proxy is disconnected from stub.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] receiver The target stub app id
  * @param[in] port_name The name of the port
  * @param[in] user_data The user data passed from the register function
@@ -122,7 +122,7 @@ typedef void (*rpc_port_proxy_disconnected_event_cb)(const char *receiver,
 /**
  * @brief Called when the proxy is rejected.
  * @details The function is called when the proxy is rejected to connect stub.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] receiver The target stub app id
  * @param[in] port_name The name of the port
  * @param[in] user_data The user data passed from the register function
@@ -133,7 +133,7 @@ typedef void (*rpc_port_proxy_rejected_event_cb)(const char *receiver,
 /**
  * @brief Called when the proxy received data.
  * @details The function is called when the proxy received data from stub.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] receiver The target stub app id
  * @param[in] port_name The name of the port
  * @param[in] user_data The user data passed from the register function
@@ -143,13 +143,13 @@ typedef void (*rpc_port_proxy_received_event_cb)(const char *receiver,
 
 /**
  * @brief The rpc port proxy handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  */
 typedef void *rpc_port_proxy_h;
 
 /**
  * @brief Creates a rpc port proxy handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @remarks You must release @a h using rpc_port_proxy_destroy().
  * @param[out] h The rpc port proxy handle that is newly created
  * @return @c 0 on success,
@@ -162,7 +162,7 @@ int rpc_port_proxy_create(rpc_port_proxy_h *h);
 
 /**
  * @brief Destroys a rpc port proxy handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port proxy handle
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -175,7 +175,7 @@ int rpc_port_proxy_destroy(rpc_port_proxy_h h);
 /**
  * @brief Connects to @a port of @a appid.
  * @details To send and receive data, the proxy should connect to port of stub
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @privlevel public
  * @privilege %http://tizen.org/privilege/appmanager.launch \n
  *            %http://tizen.org/privilege/datasharing
@@ -195,7 +195,7 @@ int rpc_port_proxy_connect(rpc_port_proxy_h h, const char *appid,
 
 /**
  * @brief Adds a proxy connected callback.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port proxy handle
  * @param[in] cb The callback function to be called when proxy is connected
  * @param[in] user_data The user data to be passed to
@@ -210,7 +210,7 @@ int rpc_port_proxy_add_connected_event_cb(rpc_port_proxy_h h,
 
 /**
  * @brief Adds a proxy disconnected callback.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port proxy handle
  * @param[in] cb The callback function to be called when proxy is disconnected
  * @param[in] user_data The user data to be passed to
@@ -225,7 +225,7 @@ int rpc_port_proxy_add_disconnected_event_cb(rpc_port_proxy_h h,
 
 /**
  * @brief Adds a proxy rejected callback.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port proxy handle
  * @param[in] cb The callback function to be called when proxy is rejected
  * @param[in] user_data The user data to be passed to
@@ -240,7 +240,7 @@ int rpc_port_proxy_add_rejected_event_cb(rpc_port_proxy_h h,
 
 /**
  * @brief Adds a proxy received callback.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port proxy handle
  * @param[in] cb The callback function to be called when proxy received data
  * @param[in] user_data The user data to be passed to
@@ -255,7 +255,7 @@ int rpc_port_proxy_add_received_event_cb(rpc_port_proxy_h h,
 
 /**
  * @brief Gets a port from proxy handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @remarks This handle @a port will not be valid if the proxy was disconnected or destroyed.
  * @param[in] h The rpc port proxy handle
  * @param[in] type The type of port
@@ -277,7 +277,7 @@ int rpc_port_proxy_get_port(rpc_port_proxy_h h, rpc_port_port_type_e type,
 
 /**
  * @brief The rpc port stub handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  */
 typedef void *rpc_port_stub_h;
 
@@ -286,7 +286,7 @@ typedef void *rpc_port_stub_h;
  * @details The function is called when the proxy is connected with stub.
  *          When a proxy connects to stub several times with new port,
  *          you can handle each request by using @a instance.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] sender The target proxy app id
  * @param[in] instance The information of the request
  * @param[in] user_data The user data passed from the register function
@@ -299,7 +299,7 @@ typedef void (*rpc_port_stub_connected_event_cb)(const char *sender,
  * @details The function is called when the proxy is disconnected from stub.
  *          When a proxy is disconnected, you can check the request
  *          by using @a instance.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] sender The target proxy app id
  * @param[in] instance The information of the request
  * @param[in] user_data The user data passed from the register function
@@ -313,7 +313,7 @@ typedef void (*rpc_port_stub_disconnected_event_cb)(const char *sender,
  *          When a stub received data from several ports, you can handle
  *          each request by using @a instance. If the function returns non zero
  *          value, the stub is disconnected.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] sender The target proxy app id
  * @param[in] instance The information of the request
  * @param[in] port The rpc port handle for reading and writing
@@ -326,7 +326,7 @@ typedef int (*rpc_port_stub_received_event_cb)(const char *sender,
 
 /**
  * @brief Creates a rpc port stub handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @remarks You must release @a h using rpc_port_stub_destroy().
  * @param[out] h The rpc port stub handle that is newly created
  * @param[in] port_name The name of the port which want to listen
@@ -340,7 +340,7 @@ int rpc_port_stub_create(rpc_port_stub_h *h, const char *port_name);
 
 /**
  * @brief Destroys a rpc port stub handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port stub handle
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -353,7 +353,7 @@ int rpc_port_stub_destroy(rpc_port_stub_h h);
 /**
  * @brief Listens to the requests for connections.
  * @details The stub listens requests to connect by port
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port stub handle
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -367,7 +367,7 @@ int rpc_port_stub_listen(rpc_port_stub_h h);
  * @brief Adds a privilege to the stub.
  * @details The stub can control access to the port using tizen privilege.
  *          It allows connections only if the proxy which have the privileges.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port stub handle
  * @param[in] privilege The privilege to access this stub
  * @return @c 0 on success,
@@ -382,7 +382,7 @@ int rpc_port_stub_add_privilege(rpc_port_stub_h h, const char *privilege);
  * @details The stub can control access to the port using tizen certificate.
  *          It allows connections only if the proxy is signed with the same
  *          certificate.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port stub handle
  * @param[in] trusted Whether stub allows only trusted proxy or not
  * @return @c 0 on success,
@@ -394,7 +394,7 @@ int rpc_port_stub_set_trusted(rpc_port_stub_h h, const bool trusted);
 
 /**
  * @brief Adds a stub connected callback.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc stub stub handle
  * @param[in] cb The callback function to be called when proxy is connected
  *               with the stub
@@ -410,7 +410,7 @@ int rpc_port_stub_add_connected_event_cb(rpc_port_stub_h h,
 
 /**
  * @brief Adds a stub disconnected callback.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port stub handle
  * @param[in] cb The callback function to be called when proxy is disconnected
  *               with the stub
@@ -426,7 +426,7 @@ int rpc_port_stub_add_disconnected_event_cb(rpc_port_stub_h h,
 
 /**
  * @brief Adds a stub received callback.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @param[in] h The rpc port stub handle
  * @param[in] cb The callback function to be called when stub received data
  * @param[in] user_data The user data to be passed to
@@ -441,7 +441,7 @@ int rpc_port_stub_add_received_event_cb(rpc_port_stub_h h,
 
 /**
  * @brief Gets a port from stub handle.
- * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
+ * @since_tizen 4.0
  * @remarks This handle @a port will not be valid if the instance of the stub was disconnected or destroyed.
  * @param[in] h The rpc port stub handle
  * @param[in] type The type of port