add tdm_common.h to share enumeration and structure with client
[platform/core/uifw/libtdm.git] / include / tdm.h
index 488a549..47afc19 100644 (file)
@@ -65,14 +65,6 @@ typedef enum {
 } tdm_display_capability;
 
 /**
- * @brief The output change enumeration of #tdm_output_change_handler
- */
-typedef enum {
-       TDM_OUTPUT_CHANGE_CONNECTION    = (1 << 0), /**< connection chagne */
-       TDM_OUTPUT_CHANGE_DPMS          = (1 << 1), /**< dpms change */
-} tdm_output_change_type;
-
-/**
  * @brief The output change handler
  * @details This handler will be called when the status of a output object is
  * changed in runtime.
@@ -519,7 +511,7 @@ tdm_layer_get_available_properties(tdm_layer *layer, const tdm_prop **props,
  * @see tdm_layer_set_video_pos, tdm_layer_capability
  */
 tdm_error
-tdm_layer_get_zpos(tdm_layer *layer, unsigned int *zpos);
+tdm_layer_get_zpos(tdm_layer *layer, int *zpos);
 
 /**
  * @brief Set the property which has a given id.
@@ -653,6 +645,15 @@ tdm_capture *
 tdm_layer_create_capture(tdm_layer *layer, tdm_error *error);
 
 /**
+ * @brief Get buffer flags from a layer object
+ * @param[in] layer A layer object
+ * @param[out] flags a buffer flags value
+ * @return #TDM_ERROR_NONE if success. Otherwise, error value.
+ */
+tdm_error
+tdm_layer_get_buffer_flags(tdm_layer *layer, unsigned int *flags);
+
+/**
  * @brief Destroy a pp object
  * @param[in] pp A pp object
  * @see tdm_display_create_pp