Modified the description 03/184403/3
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 18 Jul 2018 00:22:55 +0000 (09:22 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Mon, 13 Aug 2018 02:34:41 +0000 (02:34 +0000)
- Changes since_tizen tags

Change-Id: Ie52906f901b289273d4dcc0bcb8658f98efec2f1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
include/rpc-port-parcel.h
include/rpc-port.h

index 4ba9f9fb12209cd59d4acc84bd7774f6ebbb1238..1a3d6618040b12947dcf9300109ecdc36472ef9c 100644 (file)
@@ -32,13 +32,13 @@ extern "C" {
 
 /**
  * @brief The rpc port parcel handle.
- * @since_tizen 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  */
 typedef void *rpc_port_parcel_h;
 
 /**
  * @brief The interface for converting data to/from a parcel.
- * @since_tizen 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  */
 typedef struct __rpc_port_parcelable {
        void (*to)(rpc_port_parcel_h h, void *data);
@@ -47,7 +47,7 @@ typedef struct __rpc_port_parcelable {
 
 /**
  * @brief Creates a rpc port parcel handle.
- * @since_tizen 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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,
@@ -61,7 +61,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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
@@ -79,7 +79,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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,
@@ -93,7 +93,7 @@ int rpc_port_parcel_send(rpc_port_parcel_h h, rpc_port_h port);
 
 /**
  * @brief Destroys a rpc port parcel handle.
- * @since_tizen 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -105,7 +105,7 @@ int rpc_port_parcel_destroy(rpc_port_parcel_h h);
 
 /**
  * @brief Writes a byte value into rpc port parcel handle.
- * @since_tizen 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[in] b Byte data
  * @return @c 0 on success,
@@ -118,7 +118,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[in] i short data
  * @return @c 0 on success,
@@ -131,7 +131,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[in] i int data
  * @return @c 0 on success,
@@ -144,7 +144,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[in] i long long data
  * @return @c 0 on success,
@@ -157,7 +157,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[in] f float data
  * @return @c 0 on success,
@@ -170,7 +170,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[in] d double data
  * @return @c 0 on success,
@@ -183,7 +183,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[in] str string data
  * @return @c 0 on success,
@@ -196,7 +196,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[in] b boolean data
  * @return @c 0 on success,
@@ -209,7 +209,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[in] b Bundle data
  * @return @c 0 on success,
@@ -222,7 +222,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[in] count Array count
  * @return @c 0 on success,
@@ -235,7 +235,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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
@@ -249,7 +249,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[out] b Byte data
  * @return @c 0 on success,
@@ -262,7 +262,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[out] i short data
  * @return @c 0 on success,
@@ -275,7 +275,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[out] i int data
  * @return @c 0 on success,
@@ -288,7 +288,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[out] i long long data
  * @return @c 0 on success,
@@ -301,7 +301,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[out] f float data
  * @return @c 0 on success,
@@ -314,7 +314,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[out] d double data
  * @return @c 0 on success,
@@ -327,7 +327,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @remarks The @a str should be released using free().
  * @param[in] h The rpc port parcel handle
  * @param[out] str string data
@@ -341,7 +341,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[out] b boolean data
  * @return @c 0 on success,
@@ -354,7 +354,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @remarks The @a b should be released using bundle_free().
  * @param[in] h The rpc port parcel handle
  * @param[out] b Bundle data
@@ -368,7 +368,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[out] count Array count
  * @return @c 0 on success,
@@ -381,7 +381,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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
@@ -396,7 +396,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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[out] buf The array buffer to read
  * @param[in] size Bytes to read
@@ -410,7 +410,7 @@ int rpc_port_parcel_burst_read(rpc_port_parcel_h h, unsigned char *buf, unsigned
 
 /**
  * @brief Write bytes to rpc port parcel handle.
- * @since_tizen 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @param[in] h The rpc port parcel handle
  * @param[in] buf The array buffer to write
  * @param[in] size Bytes to write
index f14aac0c305d6e94dd73a6372d76603b525fdf8e..559141b217d99d5608514f42b887d58aa4760eef 100755 (executable)
@@ -32,7 +32,7 @@ extern "C" {
 
 /**
  * @brief Enumeration for error codes of a rpc port.
- * @since_tizen 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  */
 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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  */
 typedef enum {
        RPC_PORT_PORT_MAIN, /**< Main channel */
@@ -55,13 +55,13 @@ typedef enum {
 
 /**
  * @brief The rpc port handle.
- * @since_tizen 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  */
 typedef void *rpc_port_h;
 
 /**
  * @brief Reads data from an RPC port.
- * @since_tizen 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  *
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  *
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  */
 typedef void *rpc_port_proxy_h;
 
 /**
  * @brief Creates a rpc port proxy handle.
- * @since_tizen 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  */
 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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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 4.0
+ * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif
  * @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