/**
* @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;
/**
* @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 */
/**
* @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,
* @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
* @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,
/**
* @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
/**
* @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,
/**
* @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,
/**
* @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,
/**
* @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,
/**
* @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,
/**
* @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,
/**
* @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,
/**
* @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,
/**
* @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,
/**
* @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,
/**
* @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
/**
* @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,
/**
* @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,
/**
* @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,
/**
* @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,
/**
* @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,
/**
* @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,
/**
* @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
/**
* @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,
/**
* @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
/**
* @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,
/**
* @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
/**
* @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
/**
* @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
/**
* @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 */
/**
* @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 */
/**
* @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
/**
* @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
/**
* @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
/**
* @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
/**
* @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
/**
* @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
/**
* @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,
/**
* @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
/**
* @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
/**
* @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
/**
* @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
/**
* @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
/**
* @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
/**
* @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
/**
* @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;
* @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
* @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
* 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
/**
* @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
/**
* @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
/**
* @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
* @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,
* @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,
/**
* @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
/**
* @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
/**
* @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
/**
* @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