Lines Matching refs:path

52 	status_t Load(const char *path, const char *dirPath);
101 Module *FindModule(const char *path);
114 status_t GetModule(const char *path, module_info **infop);
115 status_t PutModule(const char *path);
138 status_t _GetAddOn(const char *path, ModuleAddOn **addon);
166 ModuleAddOn::Load(const char *path, const char *dirPath)
168 TRACE(("ModuleAddOn::Load(): searching module `%s'...\n", path));
170 status_t error = (path && dirPath ? B_OK : B_BAD_VALUE);
172 // get the module dir relative path
175 if (absPath.SetTo(path, NULL, true) != B_OK
189 if (entry.SetTo(path) == B_OK && entry.Exists()) {
190 image_id image = load_add_on(path);
376 ModuleList::FindModule(const char *path)
378 if (path) {
380 if (!strcmp(path, module->Info()->name))
405 ModuleManager::GetModule(const char *path, module_info **_info)
407 if (path == NULL || _info == NULL)
413 Module *module = fModules.FindModule(path);
418 error = _GetAddOn(path, &addon);
421 if (module_info *info = addon->FindModuleInfo(path)) {
442 ModuleManager::PutModule(const char *path)
444 if (path == NULL)
449 if (Module *module = fModules.FindModule(path)) {
495 BPath path;
497 if (path.SetTo(gModuleDirs[i], prefix) == B_OK
498 && dir.SetTo(path.Path()) == B_OK) {
613 BPath path;
614 if (entry.GetPath(&path) == B_OK
615 && addon.Load(path.Path(), moduleDir) == B_OK) {
665 BPath path;
666 if (path.SetTo(gModuleDirs[i]) == B_OK
667 && path.SetTo(path.Path(), name) == B_OK) {
670 if (entry.SetTo(path.Path()) == B_OK && entry.Exists()) {
674 if (addon->Load(path.Path(), gModuleDirs[i]) == B_OK) {
689 // chop off last path component
690 if (path.GetParent(&path) != B_OK)
745 get_module(const char *path, module_info **_info)
747 TRACE(("get_module(`%s')\n", path));
748 return ModuleManager::Default()->GetModule(path, _info);
753 put_module(const char *path)
755 TRACE(("put_module(`%s')\n", path));
756 return ModuleManager::Default()->PutModule(path);