server: check null of current mode for voutput set mode
[platform/core/uifw/libtdm.git] / include / tdm.h
index 63edce4..71f7a1c 100644 (file)
@@ -917,13 +917,13 @@ 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.
@@ -1030,6 +1030,26 @@ tdm_error
 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
@@ -1051,7 +1071,7 @@ tdm_hwc_window_acquire_buffer_queue(tdm_hwc_window *hwc_window, tdm_error *error
 
 /**
  * @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
@@ -1159,6 +1179,18 @@ 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