]> git.stg.codes - stg.git/blobdiff - projects/sgconf/users.h
Split sgconfig parsers into seaparate files.
[stg.git] / projects / sgconf / users.h
index a7a30f079d1ccfe46e7ac15c9e8711fc3f0b9652..a757fe10fb2be2b1d730f7e9cf671ecf881584b9 100644 (file)
@@ -1,41 +1,13 @@
 #ifndef __STG_SGCONF_USERS_H__
 #define __STG_SGCONF_USERS_H__
 
-#include <string>
-#include <map>
-
 namespace SGCONF
 {
 
-struct CONFIG;
-
-bool GetUsersFunction(const CONFIG & config,
-                      const std::string & /*arg*/,
-                      const std::map<std::string, std::string> & /*options*/);
-
-bool GetUserFunction(const CONFIG & config,
-                     const std::string & arg,
-                     const std::map<std::string, std::string> & /*options*/);
-
-bool DelUserFunction(const CONFIG & config,
-                     const std::string & arg,
-                     const std::map<std::string, std::string> & /*options*/);
-
-bool AddUserFunction(const CONFIG & config,
-                     const std::string & arg,
-                     const std::map<std::string, std::string> & options);
-
-bool ChgUserFunction(const CONFIG & config,
-                     const std::string & arg,
-                     const std::map<std::string, std::string> & options);
-
-bool CheckUserFunction(const CONFIG & config,
-                       const std::string & arg,
-                       const std::map<std::string, std::string> & options);
+class OPTION_BLOCKS;
+class COMMANDS;
 
-bool SendMessageFunction(const CONFIG & config,
-                         const std::string & arg,
-                         const std::map<std::string, std::string> & options);
+void AppendUsersOptionBlock(COMMANDS & commands, OPTION_BLOCKS & blocks);
 
 }