tbm_module_bufmgr_get_capabilities(tbm_module *module, tbm_error_e *error)
{
int capabilities = 0;
+ tbm_backend_bufmgr_func *bufmgr_func = NULL;
TBM_RETURN_VAL_SET_ERR_IF_FAIL(module, TBM_BUFMGR_CAPABILITY_NONE, *error, TBM_ERROR_INVALID_PARAMETER);
capabilities = hal_tbm_bufmgr_get_capabilities(module->hal_bufmgr, (hal_tbm_error *)error);
break;
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_RETURN_VAL_SET_ERR_IF_FAIL(bufmgr_func->bufmgr_get_capabilities, 0, *error, TBM_ERROR_NOT_SUPPORTED);
+
capabilities = module->bufmgr_func->bufmgr_get_capabilities(module->bufmgr_data, error);
break;
case TBM_MODULE_TYPE_BUFMGR_BACKEND:
TBM_WRN("!!WARNING: This backend interface will be DEPRECATED after Tizen 7.0.");
TBM_ERR("Do not support at tbm_bufmgr_backend.");
+
*error = TBM_ERROR_NOT_SUPPORTED;
break;
default: