/**
* This function sets callback function for receiving messages from wi-fi display sink. \n
- * So, player can notify warning, error and normal cases to application. \n
+ * So, wi-fi display sink can notify warning, error and normal cases to application. \n
*
* @param wfd_sink_handle [in] Handle of wi-fi display sink
* @param callback [in] Message callback function.
*/
int mm_wfd_sink_set_message_callback(MMHandleType wfd_sink_handle, MMWFDMessageCallback callback, void *user_param);
-int mm_wfd_sink_set_attribute(MMHandleType wfd_sink_handle, char **err_attr_name, const char *first_attribute_name, ...);
+/**
+ * This function is to set attributes into screen mirroring sink handle. Multiple attributes can be set simultaneously. \n
+ * If one of attribute fails, this function will stop at the point and let you know the name which is failed. \n
+ *
+ * @param wfd_sink_handle [in] Handle of screen mirroring sink handle.
+ * @param err_attr_name [out] Name of attribute which is failed to set
+ * @param first_attr_name [in] Name of the first attribute to set
+ * @param ... [in] Value for the first attribute, followed optionally by more name/value pairs, terminated by NULL.
+ * But, in the case of data or string type, it should be name/value/size.
+ *
+ * @return This function returns zero on success, or negative value with error code.
+ *
+ * @remark This function must be terminated by NULL argument.
+ * And, if this function is failed, err_attr_name param must be free.
+ * @par Example
+ * @code
+char *g_err_attr_name = NULL;
+
+if (mm_wfd_sink_set_attribute(g_scmirroring,
+ &g_err_attr_name,
+ "display_overlay", display_surface, sizeof(void *),
+ "display_surface_type", type,
+ NULL) != MM_ERROR_NONE) {
+ LOGW("failed to set %s attribute\n", g_err_attr_name);
+ free(g_err_attr_name);
+}
+
+ * @endcode
+ */
+int mm_wfd_sink_set_attribute(MMHandleType wfd_sink_handle, char **err_attr_name, const char *first_attr_name, ...);
/**
* This function gets the width and height of video which is played by wi-fi display sink\n