int scmirroring_sink_set_state_changed_cb(scmirroring_sink_h scmirroring_sink, scmirroring_sink_state_cb callback, void *user_data);
/**
- * @brief Sets server IP and port.
+ * @brief Sets server IP address and port that mirroring sink will connect to.
+ * @details This function sets IP and port to be used for connecting with the server when executing @c scmirroring_sink_connect().
*
* @since_tizen 2.4
*
* @param[in] scmirroring_sink The handle to the screen mirroring sink
- * @param[in] ip The server IP address to connect to
+ * @param[in] ip The server IP address to connect to (IPv4 such as 127.0.0.1)
* @param[in] port The server port to connect to
* @return @c 0 on success,
* otherwise a negative error value
/**
* @brief Prepares the screen mirroring sink handle and allocates specific resources.
+ * @details This function constructs pipeline to prepare playing media
+ *
* @since_tizen 2.4
*
* @param[in] scmirroring_sink The handle to the screen mirroring sink
*
* @pre Create a screen mirroring sink handle by calling scmirroring_sink_create().
* @pre Register user callback by calling scmirroring_sink_set_state_changed_cb().
+ * @pre Set display to mirroring sink handle by calling scmirroring_sink_set_display().
* @pre The screen mirroring state should be #SCMIRRORING_SINK_STATE_NULL
* @post The screen mirroring state will be #SCMIRRORING_SINK_STATE_PREPARED
*
* @see scmirroring_sink_create()
* @see scmirroring_sink_set_state_changed_cb()
+ * @see scmirroring_sink_set_display()
*/
int scmirroring_sink_prepare(scmirroring_sink_h scmirroring_sink);
int scmirroring_sink_disconnect(scmirroring_sink_h scmirroring_sink);
/**
- * @brief Unprepares screen mirroring.
- * @details This function unprepares screen mirroring, which closes specific resources.
+ * @brief Unprepares the screen mirroring sink handle and closes specific resources.
+ * @details This function releases and destroys pipeline and resources.
*
* @since_tizen 2.4
*
int scmirroring_sink_unprepare(scmirroring_sink_h scmirroring_sink);
/**
- * @brief Unregisters the callback function user registered.
+ * @brief Unregisters the state changed callback function that user registered.
+ * @details This function unregisters user callback and the state changed callback will not be called.
*
* @since_tizen 2.4
*
typedef void *scmirroring_sink_h;
/**
- * @brief Enumeration for screen mirroring error.
+ * @brief Enumeration to provide screen mirroring error information.
* @since_tizen 2.4
*/
typedef enum {
} scmirroring_av_transport_e;
/**
- * @brief Called when each status is changed.
+ * @brief Called when state of screen mirroring sink handle is changed.
* @since_tizen 2.4
*
- * @details This callback is called for state and error of screen mirroring sink
+ * @details This callback is called for state and error of screen mirroring sink will be delivered together.
+ * Error can be handled by return value of CAPIs. so there is no need to handle it here.
*
* @param[in] error The error code
* @param[in] state The screen mirroring sink state