Lines Matching refs:addOn
103 T* addOn = (*instantiateFunction)();
104 if (addOn == NULL) {
110 status_t status = addOn->InitCheck();
114 delete addOn;
118 return addOn;
210 AddOnManager::StartMonitoringDevice(DeviceAddOn* addOn, const char* device)
222 status_t status = _AddDevicePath(addOn, path.String(), newPath);
228 _RemoveDevicePath(addOn, path.String(), lastPath);
237 AddOnManager::StopMonitoringDevice(DeviceAddOn* addOn, const char *device)
249 status_t status = _RemoveDevicePath(addOn, path.String(), lastPath);
945 DeviceAddOn* addOn = fDeviceAddOns.ItemAt(i);
946 if (!addOn->HasPath(watchedPath))
949 addOn->Device()->Control(NULL, NULL, B_NODE_MONITOR, message);
959 AddOnManager::_AddDevicePath(DeviceAddOn* addOn, const char* path,
966 status = addOn->AddPath(path);
968 if (!fDeviceAddOns.HasItem(addOn)
969 && !fDeviceAddOns.AddItem(addOn)) {
970 addOn->RemovePath(path);
982 AddOnManager::_RemoveDevicePath(DeviceAddOn* addOn, const char* path,
985 if (!fDevicePaths.HasPath(path) || !addOn->HasPath(path))
992 addOn->RemovePath(path);
993 if (addOn->CountPaths() == 0)
994 fDeviceAddOns.RemoveItem(addOn);