#define GET_MODULE_PATCHLEVEL(vers) ((vers) & 0xFFFF)
/* LCOV_EXCL_START */
-
static int
_tbm_backend_load_hal_tbm(tbm_module *module)
{
dlclose(module_data);
return 0;
}
-
/* LCOV_EXCL_STOP */
tbm_module *
goto done;
}
+/* LCOV_EXCL_START */
/* try to load the new backend module */
ret = _tbm_backend_load_module(module, DEFAULT_LIB);
if (ret) {
free(module);
module = NULL;
}
+/* LCOV_EXCL_STOP */
done:
return module;
module->hal_bufmgr = NULL;
module->use_hal_tbm = 0;
break;
+/* LCOV_EXCL_START */
case TBM_MODULE_TYPE_TBM_BACKEND:
module->backend_module_data->deinit(module->bufmgr_data);
module->bo_func = NULL;
default:
TBM_ERR("Wrong module type:%d", module->type);
break;
+/* LCOV_EXCL_STOP */
}
free(module);
case TBM_MODULE_TYPE_HAL_TBM:
capabilities = hal_tbm_bufmgr_get_capabilities(module->hal_bufmgr, (hal_tbm_error *)error);
break;
+/* LCOV_EXCL_START */
case TBM_MODULE_TYPE_TBM_BACKEND:
bufmgr_func = module->bufmgr_func;
TBM_RETURN_VAL_SET_ERR_IF_FAIL(bufmgr_func, 0, *error, TBM_ERROR_INVALID_OPERATION);
TBM_ERR("Wrong module type:%d", module->type);
*error = TBM_ERROR_INVALID_OPERATION;
break;
+/* LCOV_EXCL_STOP */
}
return capabilities;
error = TBM_ERROR_NONE;
}
break;
+/* LCOV_EXCL_START */
case TBM_MODULE_TYPE_TBM_BACKEND:
bufmgr_func = module->bufmgr_func;
TBM_RETURN_VAL_IF_FAIL(bufmgr_func, TBM_ERROR_INVALID_OPERATION);
TBM_ERR("Wrong module type:%d", module->type);
error = TBM_ERROR_INVALID_OPERATION;
break;
+/* LCOV_EXCL_STOP */
}
return error;
case TBM_MODULE_TYPE_HAL_TBM:
error = (tbm_error_e)hal_tbm_bufmgr_get_supported_formats(module->hal_bufmgr, formats, num);
break;
+/* LCOV_EXCL_START */
case TBM_MODULE_TYPE_TBM_BACKEND:
bufmgr_func = module->bufmgr_func;
TBM_RETURN_VAL_IF_FAIL(bufmgr_func, TBM_ERROR_INVALID_OPERATION);
TBM_ERR("Wrong module type:%d", module->type);
error = TBM_ERROR_INVALID_OPERATION;
break;
+/* LCOV_EXCL_STOP */
}
return error;
case TBM_MODULE_TYPE_HAL_TBM:
bo_data = (tbm_backend_bo_data *)hal_tbm_bufmgr_alloc_bo(module->hal_bufmgr, size, flags, (hal_tbm_error *)error);
break;
+/* LCOV_EXCL_START */
case TBM_MODULE_TYPE_TBM_BACKEND:
bufmgr_func = module->bufmgr_func;
TBM_RETURN_VAL_SET_ERR_IF_FAIL(bufmgr_func, NULL, *error, TBM_ERROR_INVALID_OPERATION);
TBM_ERR("Wrong module type:%d", module->type);
*error = TBM_ERROR_INVALID_OPERATION;
break;
+/* LCOV_EXCL_STOP */
}
return bo_data;
format, bo_idx, width, height, bpp,
(hal_tbm_bo_memory_type)flags, (hal_tbm_error *)error);
break;
+/* LCOV_EXCL_START */
case TBM_MODULE_TYPE_TBM_BACKEND:
bufmgr_func = module->bufmgr_func;
TBM_RETURN_VAL_SET_ERR_IF_FAIL(bufmgr_func, NULL, *error, TBM_ERROR_INVALID_OPERATION);
TBM_ERR("Wrong module type:%d", module->type);
*error = TBM_ERROR_INVALID_OPERATION;
break;
+/* LCOV_EXCL_STOP */
}
return bo_data;