X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/305dd917d2ba383e8c468c006d1d75edbc705337..a6484b0a1241722225b43123dff0e4bf44f607e0:/include/stg/services.h?ds=inline diff --git a/include/stg/services.h b/include/stg/services.h index 2f1eec71..8c49f781 100644 --- a/include/stg/services.h +++ b/include/stg/services.h @@ -21,18 +21,22 @@ #ifndef SERVICES_H #define SERVICES_H +#include "service_conf.h" + #include -#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; virtual int OpenSearch() const = 0; virtual int SearchNext(int, SERVICE_CONF * service) const = 0;