Lines Matching refs:svc
684 Service* svc = svc_p.get(); in MakeExecOneshotService() local
687 return svc; in MakeExecOneshotService()
691 auto svc = std::find_if(services_.begin(), services_.end(), in FindServiceByName() local
695 if (svc != services_.end()) { in FindServiceByName()
696 return svc->get(); in FindServiceByName()
702 auto svc = std::find_if(services_.begin(), services_.end(), in FindServiceByPid() local
706 if (svc != services_.end()) { in FindServiceByPid()
707 return svc->get(); in FindServiceByPid()
713 auto svc = std::find_if(services_.begin(), services_.end(), in FindServiceByKeychord() local
718 if (svc != services_.end()) { in FindServiceByKeychord()
719 return svc->get(); in FindServiceByKeychord()
731 void (*func)(Service* svc)) const { in ForEachServiceInClass()
740 void (*func)(Service* svc)) const { in ForEachServiceWithFlags()
748 void ServiceManager::RemoveService(const Service& svc) { in RemoveService() argument
750 [&svc] (const std::unique_ptr<Service>& s) { in RemoveService()
751 return svc.name() == s->name(); in RemoveService()
777 Service* svc = FindServiceByPid(pid); in ReapOneProcess() local
780 if (svc) { in ReapOneProcess()
782 svc->name().c_str(), pid); in ReapOneProcess()
797 if (!svc) { in ReapOneProcess()
801 if (svc->Reap()) { in ReapOneProcess()
803 RemoveService(*svc); in ReapOneProcess()