vblank: return TDM_ERROR_TIMEOUT when timeout occurs
[platform/core/uifw/libtdm.git] / include / tdm_common.h
index b5a9c2e..ee86347 100644 (file)
@@ -44,6 +44,7 @@ extern "C" {
 
 #define TDM_NAME_LEN        64
 #define TDM_PATH_LEN        1024
+#define TDM_VBLANK_DEFAULT_NAME   "Unknown"
 
 /**
  * @file tdm_common.h
@@ -66,6 +67,8 @@ typedef enum {
        TDM_ERROR_NOT_IMPLEMENTED       = -8, /**< not implemented */
        TDM_ERROR_NO_CAPABILITY         = -9, /**< no capability */
        TDM_ERROR_DPMS_OFF              = -10, /**< dpms off */
+       TDM_ERROR_OUTPUT_DISCONNECTED   = -11, /**< output disconnected */
+       TDM_ERROR_TIMEOUT               = -12, /**< timeout */
 } tdm_error;
 
 /**
@@ -143,11 +146,19 @@ typedef enum {
 typedef enum {
        TDM_CAPTURE_CAPABILITY_OUTPUT    = (1 << 0), /**< The capture device supports to dump a output */
        TDM_CAPTURE_CAPABILITY_LAYER     = (1 << 1), /**< The capture device supports to dump a layer */
-       TDM_CAPTURE_CAPABILITY_SCALE     = (1 << 4), /**< The capture device supports scale operation */
-       TDM_CAPTURE_CAPABILITY_TRANSFORM = (1 << 5), /**< The capture device supports transform operation */
+       TDM_CAPTURE_CAPABILITY_ONESHOT   = (1 << 4), /**< The capture device supports oneshot dump */
+       TDM_CAPTURE_CAPABILITY_STREAM    = (1 << 5), /**< The capture device supports streamp sump */
 } tdm_capture_capability;
 
 /**
+ * @brief The capture type enumeration
+ */
+typedef enum {
+       TDM_CAPTURE_TYPE_ONESHOT    = (1 << 0), /**< The oneshot capture */
+       TDM_CAPTURE_TYPE_STREAM     = (1 << 1), /**< The stream capture */
+} tdm_capture_type;
+
+/**
  * @brief The output change enumeration of #tdm_output_change_handler
  */
 typedef enum {
@@ -253,6 +264,18 @@ typedef struct _tdm_pos {
 } tdm_pos;
 
 /**
+ * @brief The tdm value type enumeration
+ */
+typedef enum {
+       TDM_VALUE_TYPE_UNKNOWN,
+       TDM_VALUE_TYPE_PTR,
+       TDM_VALUE_TYPE_INT32,
+       TDM_VALUE_TYPE_UINT32,
+       TDM_VALUE_TYPE_INT64,
+       TDM_VALUE_TYPE_UINT64,
+} tdm_value_type;
+
+/**
  * @brief The value union
  */
 typedef union {