tdm_error
tdm_hwc_get_video_supported_formats(tdm_hwc *hwc, const tbm_format **formats,
int *count);
+/**
+ * @brief Get the available video property array of a hwc object.
+ * @param[in] hwc A hwc
+ * @param[out] props The available video property array
+ * @param[out] count The count of video properties
+ * @return #TDM_ERROR_NONE if success. Otherwise, error value.
+ */
+tdm_error
+tdm_hwc_get_video_available_properties(tdm_hwc *hwc, const tdm_prop **props, int *count);
/**
- * @brief Get the hwc video capability
+ * @brief Get the hwc capabilites
* @param[in] hwc A hwc object
- * @param[out] video_capability A hwc video capability
+ * @param[out] capabilities A hwc capability
* @return #TDM_ERROR_NONE if success. Otherwise, error value.
*/
tdm_error
-tdm_hwc_get_video_capability(tdm_hwc *hwc, tdm_hwc_video_capability *video_capability);
+tdm_hwc_get_capabilities(tdm_hwc *hwc, tdm_hwc_capability *capabilities);
/**
* @brief Get the available property array of a hwc object.
tdm_error
tdm_hwc_accept_validation(tdm_hwc *hwc);
-/* temporary prototype to avoid build break */
-tdm_error tdm_hwc_accept_changes(tdm_hwc *hwc);
-
/**
* @brief Commit changes for a hwc
* @details After all change of a window object are applied, a user commit handler
tdm_hwc_commit(tdm_hwc *hwc, int sync, tdm_hwc_commit_handler func, void *user_data);
/**
+ * @brief Set the property which has a given id on the hwc object.
+ * @param[in] hwc A hwc object
+ * @param[in] id The property id
+ * @param[in] value The value of the propery id
+ * @return #TDM_ERROR_NONE if success. Otherwise, error value.
+ */
+tdm_error
+tdm_hwc_set_property(tdm_hwc *hwc, uint32_t id, tdm_value value);
+
+/**
+ * @brief Get the property which has a given id on the hwc object.
+ * @param[in] hwc A hwc object
+ * @param[in] id The property id
+ * @param[in] value The value of the propery id
+ * @return #TDM_ERROR_NONE if success. Otherwise, error value.
+ */
+tdm_error
+tdm_hwc_get_property(tdm_hwc *hwc, uint32_t id, tdm_value *value);
+
+/**
* @brief Destroys the given window.
* @param[in] window the pointer of the window to destroy
* @since 2.0.0
/**
* @brief Release a buffer queue for the window object
- * @details Release buffer queue when the client no longer uses buferrs of queue.
+ * @details Release buffer queue when the client no longer uses buffers of queue.
* @param[in] hwc_window A window object
* @param[in] A tbm buffer queue
* @since 2.0.0
tdm_hwc_window_get_constraints(tdm_hwc_window *hwc_window, int *constraints);
/**
+ * @brief Set the name of hwc_window
+ * @param[in] hwc_window A hwc window object
+ * @param[in] name of the hwc_window
+ * @return #TDM_ERROR_NONE if success. Otherwise, error value.
+ */
+tdm_error
+tdm_hwc_window_set_name(tdm_hwc_window *hwc_window, const char *name);
+
+/**
+ * @brief Get buffer flags of cursor hwc_window
+ * @param[in] hwc_window A hwc window object
+ * @param[in] width of the cursor image
+ * @param[in] height of the cursor image
+ * @param[in] stride of the cursor image
+ * @param[in] virtual address of the cursor image
+ * @return #TDM_ERROR_NONE if success. Otherwise, error value.
+ */
+tdm_error
+tdm_hwc_window_set_cursor_image(tdm_hwc_window *hwc_window, int width, int height, int stride, void *ptr);
+
+/**
* @brief Destroy a pp object
* @param[in] pp A pp object
* @see tdm_display_create_pp