]> git.stg.codes - stg.git/blobdiff - projects/sgconf/services.h
Added a function to check user existance.
[stg.git] / projects / sgconf / services.h
index 1b8b0c3c9bf10e11a521323aee4f2419f1c77f1c..c50452735ed483597ee7c692c03158665f671d7b 100644 (file)
@@ -1,33 +1,13 @@
 #ifndef __STG_SGCONF_SERVICES_H__
 #define __STG_SGCONF_SERVICES_H__
 
 #ifndef __STG_SGCONF_SERVICES_H__
 #define __STG_SGCONF_SERVICES_H__
 
-#include <string>
-#include <map>
-
 namespace SGCONF
 {
 
 namespace SGCONF
 {
 
-struct CONFIG;
-
-bool GetServicesFunction(const CONFIG & config,
-                         const std::string & /*arg*/,
-                         const std::map<std::string, std::string> & /*options*/);
-
-bool GetServiceFunction(const CONFIG & config,
-                        const std::string & arg,
-                        const std::map<std::string, std::string> & /*options*/);
-
-bool DelServiceFunction(const CONFIG & config,
-                        const std::string & arg,
-                        const std::map<std::string, std::string> & /*options*/);
-
-bool AddServiceFunction(const CONFIG & config,
-                        const std::string & arg,
-                        const std::map<std::string, std::string> & options);
+class OPTION_BLOCKS;
+class COMMANDS;
 
 
-bool ChgServiceFunction(const CONFIG & config,
-                        const std::string & arg,
-                        const std::map<std::string, std::string> & options);
+void AppendServicesOptionBlock(COMMANDS & commands, OPTION_BLOCKS & blocks);
 
 } // namespace SGCONF
 
 
 } // namespace SGCONF