Lines Matching refs:Service
67 class Service {
69 Service(const std::string& name, const std::vector<std::string>& args);
71 Service(const std::string& name, unsigned flags, uid_t uid, gid_t gid,
112 using OptionParser = bool (Service::*) (const std::vector<std::string>& args,
191 void AddService(std::unique_ptr<Service> service);
192 Service* MakeExecOneshotService(const std::vector<std::string>& args);
196 Service* FindServiceByName(const std::string& name) const;
197 Service* FindServiceByPid(pid_t pid) const;
198 Service* FindServiceByKeychord(int keychord_id) const;
199 void ForEachService(const std::function<void(Service*)>& callback) const;
201 void (*func)(Service* svc)) const;
203 void (*func)(Service* svc)) const;
205 void RemoveService(const Service& svc);
216 std::vector<std::unique_ptr<Service>> services_;
234 std::unique_ptr<Service> service_;