vblank: add tdm_vblank_get_output
[platform/core/uifw/libtdm.git] / include / tdm_common.h
index d087fc8..4c264ed 100644 (file)
@@ -68,6 +68,7 @@ typedef enum {
        TDM_ERROR_NO_CAPABILITY         = -9, /**< no capability */
        TDM_ERROR_DPMS_OFF              = -10, /**< dpms off */
        TDM_ERROR_OUTPUT_DISCONNECTED   = -11, /**< output disconnected */
+       TDM_ERROR_PROTOCOL_ERROR        = -12, /**< protocol error */
 } tdm_error;
 
 /**
@@ -152,6 +153,7 @@ typedef enum {
        TDM_PP_CAPABILITY_ASYNC          = (1 << 1), /**< The pp device supports asynchronous operation */
        TDM_PP_CAPABILITY_SCALE          = (1 << 4), /**< The pp device supports scale operation */
        TDM_PP_CAPABILITY_TRANSFORM      = (1 << 5), /**< The pp device supports transform operation */
+       TDM_PP_CAPABILITY_SCANOUT        = (1 << 6), /**< The pp device supports only scanout buffer */
 } tdm_pp_capability;
 
 /**
@@ -222,6 +224,7 @@ typedef enum {
        TDM_OUTPUT_DPMS_STANDBY,    /**< StandBy, Vsync On */
        TDM_OUTPUT_DPMS_SUSPEND,    /**< Suspend, Vsync Off */
        TDM_OUTPUT_DPMS_OFF,        /**< Off, Vsync Off */
+       TDM_OUTPUT_DPMS_AOD = 0x10, /**< AOD, Vsync On, extended DPMS mode */
 } tdm_output_dpms;
 
 /**
@@ -277,11 +280,6 @@ typedef struct _tdm_pos {
        unsigned int h;
 } tdm_pos;
 
-typedef struct _tdm_hwc_region {
-       unsigned int num_rects;
-       tdm_pos const *rects;
-} tdm_hwc_region;
-
 /**
  * @brief The tdm value type enumeration
  */
@@ -305,14 +303,6 @@ typedef union {
        uint64_t u64;
 } tdm_value;
 
-/**
- * @brief The hwc window flag enumeration
- * @since 2.0.0
- */
-typedef enum {
-       TDM_HWC_WINDOW_FLAG_NONE     = 0,
-} tdm_hwc_window_flag;
-
 #ifdef __cplusplus
 }
 #endif