/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+* Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
/**
- * @brief Creates a new screen mirroring sink handle.
- * @since_tizen 2.4
+ * @brief Creates a new screen mirroring secondary sink handle.
+ * @since_tizen 5.5
*
* @remarks You must release @a scmirroring_secondary_sink using scmirroring_secondary_sink_destroy().
*
- * @param[out] scmirroring_secondary_sink A newly returned handle to the screen mirroring sink
+ * @param[out] scmirroring_secondary_sink A newly returned handle to the screen mirroring secondary sink
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SCMIRRORING_ERROR_NONE Successful
* @brief Registers a callback function to be called when state change happens.
* @details This function registers user callback and this callback is called when each status is changed.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @param[in] callback The callback function to invoke
* @param[in] user_data The user data passed to the callback registration function
* @return @c 0 on success,
/**
* @brief Sets server IP and port.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @param[in] ip The server IP address to connect to
* @param[in] port The server port to connect to
* @return @c 0 on success,
* @details This function will use handle created by the application to set the overlay &
* display on the surface passed by the application
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @param[in] type Surface type(x11/evas)
* @param[in] display_surface The display_surface created by application to force sink to display content over it
* @return @c 0 on success,
int scmirroring_secondary_sink_set_display(scmirroring_secondary_sink_h scmirroring_secondary_sink, scmirroring_display_type_e type, void *display_surface);
/**
- * @brief Sets resolutions of screen mirroring sink.
+ * @brief Sets resolutions of screen mirroring secondary sink.
* @details This function sets resolutions of screen mirroring sink using scmirroring_resolution_e as following.
* (ex. SCMIRRORING_RESOLUTION_1920x1080_P30 | SCMIRRORING_RESOLUTION_1280x720_P30)
* Use it only when you want to set specific resolutions but if screen mirroring source dose not support
* the resolutions which you set, the screen mirroring sink will be disconnected.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @param[in] resolution Resolution of screen mirroring sink
* @return @c 0 on success,
* otherwise a negative error value
/**
* @brief Prepares the screen mirroring sink handle and allocates specific resources.
- * @since_tizen 2.4
+ * @since_tizen 5.5
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SCMIRRORING_ERROR_NONE Successful
/**
* @brief Creates connection and prepare for receiving data from SCMIRRORING source.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
* @privlevel public
* @privilege %http://tizen.org/privilege/internet
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SCMIRRORING_ERROR_NONE Successful
/**
* @brief Starts receiving data from the SCMIRRORING source and display it(mirror).
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
* @privlevel public
* @privilege %http://tizen.org/privilege/internet
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SCMIRRORING_ERROR_NONE Successful
* @details This function pauses receiving data from the SCMIRRORING source,
* which means it sends RTSP PAUSE message to source.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
* @privlevel public
* @privilege %http://tizen.org/privilege/internet
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SCMIRRORING_ERROR_NONE Successful
* @brief Resumes receiving data from the SCMIRRORING source.
* @details This function pauses receiving data from the SCMIRRORING source, which means it sends RTSP PLAY message to source.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
* @privlevel public
* @privilege %http://tizen.org/privilege/internet
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SCMIRRORING_ERROR_NONE Successful
/**
* @brief Disconnects and stops receiving data from the SCMIRRORING source.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
* @privlevel public
* @privilege %http://tizen.org/privilege/internet
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SCMIRRORING_ERROR_NONE Successful
* @brief Unprepares screen mirroring.
* @details This function unprepares screen mirroring, which closes specific resources.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SCMIRRORING_ERROR_NONE Successful
/**
* @brief Unregisters the callback function user registered.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SCMIRRORING_ERROR_NONE Successful
int scmirroring_secondary_sink_unset_state_changed_cb(scmirroring_secondary_sink_h scmirroring_secondary_sink);
/**
- * @brief Destroys screen mirroring sink handle.
+ * @brief Destroys screen mirroring secondary sink handle.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @return @c 0 on success,
* otherwise a negative error value
* @retval #SCMIRRORING_ERROR_NONE Successful
int scmirroring_secondary_sink_destroy(scmirroring_secondary_sink_h scmirroring_secondary_sink);
/**
- * @brief Gets negotiated video codec of screen mirroring sink.
+ * @brief Gets negotiated video codec of screen mirroring secondary sink.
* @details The video codec is negotiated by screen mirroring source.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @param[out] codec Codec of video
* @return @c 0 on success,
* otherwise a negative error value
int scmirroring_secondary_sink_get_negotiated_video_codec(scmirroring_secondary_sink_h *scmirroring_secondary_sink, scmirroring_video_codec_e *codec);
/**
- * @brief Gets negotiated video resolution of screen mirroring sink.
+ * @brief Gets negotiated video resolution of screen mirroring secondary sink.
* @details The video resolution is negotiated by screen mirroring source.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @param[out] width Width of video
* @param[out] height Height of video
* @return @c 0 on success,
int scmirroring_secondary_sink_get_negotiated_video_resolution(scmirroring_secondary_sink_h *scmirroring_secondary_sink, int *width, int *height);
/**
- * @brief Gets negotiated frame rate of screen mirroring sink.
+ * @brief Gets negotiated frame rate of screen mirroring secondary sink.
* @details The video frame rate is negotiated by screen mirroring source.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @param[out] frame_rate Frame rate of video
* @return @c 0 on success,
* otherwise a negative error value
int scmirroring_secondary_sink_get_negotiated_video_frame_rate(scmirroring_secondary_sink_h *scmirroring_secondary_sink, int *frame_rate);
/**
- * @brief Gets negotiated audio codec of screen mirroring sink.
+ * @brief Gets negotiated audio codec of screen mirroring secondary sink.
* @details The audio codec is negotiated by screen mirroring source.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @param[out] codec Codec of audio
* @return @c 0 on success,
* otherwise a negative error value
int scmirroring_secondary_sink_get_negotiated_audio_codec(scmirroring_secondary_sink_h *scmirroring_secondary_sink, scmirroring_audio_codec_e *codec);
/**
- * @brief Gets negotiated audio channel of screen mirroring sink.
+ * @brief Gets negotiated audio channel of screen mirroring secondary sink.
* @details The audio channel is negotiated by screen mirroring source.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @param[out] channel Channel of audio
* @return @c 0 on success,
* otherwise a negative error value
int scmirroring_secondary_sink_get_negotiated_audio_channel(scmirroring_secondary_sink_h *scmirroring_secondary_sink, int *channel);
/**
- * @brief Gets negotiated audio sample rate of screen mirroring sink.
+ * @brief Gets negotiated audio sample rate of screen mirroring secondary sink.
* @details The audio sample rate is negotiated by screen mirroring source.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
*
* @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
* @param[out] sample_rate Sample rate of audio
int scmirroring_secondary_sink_get_negotiated_audio_sample_rate(scmirroring_secondary_sink_h *scmirroring_secondary_sink, int *sample_rate);
/**
- * @brief Gets negotiated audio bitwidth of screen mirroring sink.
+ * @brief Gets negotiated audio bitwidth of screen mirroring secondary sink.
* @details The audio bitwidth is negotiated by screen mirroring source.
*
- * @since_tizen 2.4
+ * @since_tizen 5.5
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @param[out] bitwidth Bitwidth of audio
* @return @c 0 on success,
* otherwise a negative error value
int scmirroring_secondary_sink_get_negotiated_audio_bitwidth(scmirroring_secondary_sink_h *scmirroring_secondary_sink, int *bitwidth);
/**
- * @brief Gets the current state of screen mirroring sink.
+ * @brief Gets the current state of screen mirroring secondary sink.
* @details The current state of screen mirroring sink is changed by calling CAPIs. And it provides the state of screen mirroring sink the time this api is called.
*
- * @since_tizen 5.0
+ * @since_tizen 5.5
*
- * @param[in] scmirroring_secondary_sink The handle to the screen mirroring sink
+ * @param[in] scmirroring_secondary_sink The handle to the screen mirroring secondary sink
* @param[out] state The current state of screen mirroring sink
*
* @return @c 0 on success,