add tdm_common.h to share enumeration and structure with client
[platform/core/uifw/libtdm.git] / include / tdm.h
index 4af34d7..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.
@@ -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