]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/include/stg/servconf.h
Added services management.
[stg.git] / stglibs / srvconf.lib / include / stg / servconf.h
index c9908640e29f2e7f3c67ed0ec58c27f2c11cafd9..b7884964400ef77905877ff0d6cbb8bb224b5a35 100644 (file)
@@ -37,6 +37,7 @@
 struct USER_CONF_RES;
 struct USER_STAT_RES;
 struct TARIFF_DATA_RES;
+struct SERVICE_CONF_RES;
 
 namespace STG
 {
@@ -80,6 +81,14 @@ public:
     int SendMessage(const std::string & login, const std::string & text, SIMPLE::CALLBACK f, void * data);
     int CheckUser(const std::string & login, const std::string & password, SIMPLE::CALLBACK f, void * data);
 
+    int GetServices(GET_SERVICES::CALLBACK f, void * data);
+    int GetService(const std::string & name, GET_SERVICE::CALLBACK f, void * data);
+    int ChgService(const SERVICE_CONF_RES & conf, SIMPLE::CALLBACK f, void * data);
+    int AddService(const std::string & name,
+                   const SERVICE_CONF_RES & conf,
+                   SIMPLE::CALLBACK f, void * data);
+    int DelService(const std::string & name, SIMPLE::CALLBACK f, void * data);
+
     const std::string & GetStrError() const;
 
 private: