tbm_module: add tbm_module_bo_map and use it
[platform/core/uifw/libtbm.git] / include / tbm_type_common.h
old mode 100755 (executable)
new mode 100644 (file)
index c77a8e9..8571c0d
@@ -75,7 +75,6 @@ typedef int32_t tbm_fd;
  */
 typedef void tbm_native_display;
 
-
 /* TBM_DEVICE_TYPE */
 
 /**
@@ -139,7 +138,7 @@ enum TBM_BUFMGR_CAPABILITY {
        TBM_BUFMGR_CAPABILITY_NONE = 0,                  /**< Not Support capability*/
        TBM_BUFMGR_CAPABILITY_SHARE_KEY = (1 << 0),      /**< Support sharing buffer by tbm key */
        TBM_BUFMGR_CAPABILITY_SHARE_FD = (1 << 1),       /**< Support sharing buffer by tbm fd */
-       TBM_BUFMGR_CAPABILITY_TBM_SYNC = (1 << 2),       /**< Support tbm sync */
+       TBM_BUFMGR_CAPABILITY_TBM_SYNC = (1 << 2),       /**< Support timeline sync */
        TBM_BUFMGR_CAPABILITY_TILED_MEMORY = (1 << 3),   /**< Support tiled memory */
 };
 
@@ -193,6 +192,19 @@ enum TBM_BO_FLAGS {
 };
 
 /**
+ * @brief Definition for the TBM surface buffer data struct.
+ * @since_tizen 6.5
+ */
+typedef struct _tbm_surface_buffer_data {
+       int *fds;                       /**< an array of dmabuf fds */
+       unsigned int num_fds;           /**< the number of dmabuf fds */
+       int *meta_data;                 /**< an array of meta data */
+       unsigned int num_meta_data;     /**< the number of meta data */
+       void *reserved1;                /**< reserved data1 */
+       void *reserved2;                /**< reserved data2 */
+} tbm_surface_buffer_data;
+
+/**
  * @brief Called when the user data is deleted in buffer object.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  * @param[in] user_data User_data to be passed to callback function