Improve doxygen description 25/317825/5 accepted/tizen_9.0_unified accepted/tizen_unified_toolchain accepted/tizen_unified_x_asan tizen_9.0 accepted/tizen/9.0/unified/20241030.233049 accepted/tizen/unified/20240926.050035 accepted/tizen/unified/toolchain/20241004.101559 accepted/tizen/unified/x/20240926.095729 accepted/tizen/unified/x/asan/20241013.235920 tizen_9.0_m2_release
authorYoungwoo Cho <young222.cho@samsung.com>
Thu, 19 Sep 2024 06:01:58 +0000 (15:01 +0900)
committerYoungwoo Cho <young222.cho@samsung.com>
Mon, 23 Sep 2024 03:00:15 +0000 (12:00 +0900)
Change-Id: Ie741d3451c0928d413259649966ad1c999ae9180
Signed-off-by: Youngwoo Cho <young222.cho@samsung.com>
include/scmirroring_sink.h
include/scmirroring_type.h

index 6b3466dea199a6fe72bf8449c0572eaccd9cd8a5..11436d3fa849984b7437e860134935041d4c882f 100644 (file)
@@ -81,12 +81,13 @@ int scmirroring_sink_create(scmirroring_sink_h *scmirroring_sink);
 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
@@ -162,6 +163,8 @@ int scmirroring_sink_set_resolution(scmirroring_sink_h scmirroring_sink, int res
 
 /**
  * @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
@@ -176,11 +179,13 @@ int scmirroring_sink_set_resolution(scmirroring_sink_h scmirroring_sink, int res
  *
  * @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);
 
@@ -334,8 +339,8 @@ int scmirroring_sink_resume(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
  *
@@ -361,7 +366,8 @@ int scmirroring_sink_disconnect(scmirroring_sink_h scmirroring_sink);
 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
  *
index 8294cadf305b48a6867be9db1a0c8c6873318953..707c72792373ce48a457f1a969b31979e22ad6f7 100644 (file)
@@ -40,7 +40,7 @@ extern "C" {
 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 {
@@ -143,10 +143,11 @@ 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