/* LCOV_EXCL_STOP */
tbm_module *
-tbm_module_load(tbm_bufmgr bufmgr, int fd)
+tbm_module_load(int fd)
{
tbm_module *module;
struct dirent **namelist;
TBM_ERR("fail to allocate the memory");
return NULL;
}
- module->bufmgr = bufmgr;
/* try to load the hal-tbm backend module */
ret = _tbm_backend_load_hal_tbm(module);
return module;
}
- /* load bufmgr priv from configured path */
+ /* load backend_module from configured path */
n = scandir(BUFMGR_MODULE_DIR, &namelist, 0, alphasort);
if (n < 0) {
TBM_ERR("no files : %s\n", BUFMGR_MODULE_DIR);
break;
}
- module->bufmgr = NULL;
-
free(module);
}
}
if (error != TBM_ERROR_NONE) {
- TBM_ERR("fail to get capabilities of bufmgr");
+ TBM_ERR("fail to get capabilities of tbm_module_bufmgr");
return 0;
}