tbm_module: add tbm_module_bo_map and use it
[platform/core/uifw/libtbm.git] / include / tbm_type_common.h
index 068d19b..8571c0d 100644 (file)
@@ -75,7 +75,6 @@ typedef int32_t tbm_fd;
  */
 typedef void tbm_native_display;
 
-
 /* TBM_DEVICE_TYPE */
 
 /**
@@ -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