]> git.stg.codes - stg.git/blobdiff - projects/sgconf/admins.h
Use common functions in admin tests and service tests.
[stg.git] / projects / sgconf / admins.h
index 0c28e9236b15cd85e5c21891584d2eb29d3620a3..6bc47380976c98528afb0850462107e38ff16f64 100644 (file)
@@ -1,33 +1,13 @@
 #ifndef __STG_SGCONF_ADMINS_H__
 #define __STG_SGCONF_ADMINS_H__
 
-#include <string>
-#include <map>
-
 namespace SGCONF
 {
 
-class CONFIG;
-
-bool GetAdminsFunction(const CONFIG & config,
-                       const std::string & /*arg*/,
-                       const std::map<std::string, std::string> & /*options*/);
-
-bool GetAdminFunction(const CONFIG & config,
-                      const std::string & arg,
-                      const std::map<std::string, std::string> & /*options*/);
-
-bool DelAdminFunction(const CONFIG & config,
-                      const std::string & arg,
-                      const std::map<std::string, std::string> & /*options*/);
-
-bool AddAdminFunction(const CONFIG & config,
-                      const std::string & arg,
-                      const std::map<std::string, std::string> & options);
+class OPTION_BLOCKS;
+class COMMANDS;
 
-bool ChgAdminFunction(const CONFIG & config,
-                      const std::string & arg,
-                      const std::map<std::string, std::string> & options);
+void AppendAdminsOptionBlock(COMMANDS & commands, OPTION_BLOCKS & blocks);
 
 } // namespace SGCONF