X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/32248221316271f3a09a771ce35b77236f4bbeed..2ea67b39f9cade2b55cfbbd554af1049c1c69fd9:/include/stg/services.h?ds=inline diff --git a/include/stg/services.h b/include/stg/services.h index 131e2b55..ddec31be 100644 --- a/include/stg/services.h +++ b/include/stg/services.h @@ -25,13 +25,16 @@ #include "service_conf.h" +class ADMIN; + class SERVICES { public: - virtual int Add(const SERVICE_CONF & service) = 0; - virtual int Del(const std::string & name) = 0; - virtual int Change(const SERVICE_CONF & service) = 0; - virtual bool FindService(const std::string & name, SERVICE_CONF & service) = 0; - virtual bool ServiceExists(const std::string & name) const = 0; + virtual ~SERVICES() {} + virtual int Add(const SERVICE_CONF & service, const ADMIN * admin) = 0; + virtual int Del(const std::string & name, const ADMIN * admin) = 0; + virtual int Change(const SERVICE_CONF & service, const ADMIN * admin) = 0; + virtual bool Find(const std::string & name, SERVICE_CONF * service) = 0; + virtual bool Exists(const std::string & name) const = 0; virtual const std::string & GetStrError() const = 0; virtual size_t Count() const = 0;