}
void
+tbm_surface_data_free(tbm_backend_surface_data *surface_data)
+{
+ TBM_RETURN_IF_FAIL(surface_data);
+ TBM_RETURN_IF_FAIL(surface_data->module);
+ TBM_RETURN_IF_FAIL(surface_data->module->type == TBM_MODULE_TYPE_HAL_TBM);
+
+ surface_data->module = NULL;
+
+ hal_tbm_surface_free(surface_data->hal_surface);
+ surface_data->hal_surface = NULL;
+
+ free(surface_data);
+}
+
+void
tbm_module_bo_free(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, int get_from_hal_surface)
{
tbm_backend_bo_func *bo_func = NULL;
tbm_backend_bo_data *tbm_module_import_bo_data_with_fd(tbm_module *module, tbm_bo bo, tbm_fd fd, tbm_error_e *error);
tbm_backend_bo_data *tbm_module_import_bo_data_with_key(tbm_module *module, tbm_bo bo, tbm_key key, tbm_error_e *error);
+void tbm_surface_data_free(tbm_backend_surface_data *surface_data);
+
void tbm_module_bo_free(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, int get_from_hal_surface);
int tbm_module_bo_get_size(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, tbm_error_e *error);
int tbm_module_bo_get_memory_types(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, tbm_error_e *error);