]> git.stg.codes - stg.git/blobdiff - projects/sgconf/services.h
Fix divert_cap in FreeBSD.
[stg.git] / projects / sgconf / services.h
index 1b8b0c3c9bf10e11a521323aee4f2419f1c77f1c..4eee2c6715692b7f9fe1795888bf07cfdf38f5f9 100644 (file)
@@ -1,34 +1,11 @@
-#ifndef __STG_SGCONF_SERVICES_H__
-#define __STG_SGCONF_SERVICES_H__
-
-#include <string>
-#include <map>
+#pragma once
 
 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*/);
+class OPTION_BLOCKS;
+class COMMANDS;
 
-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);
-
-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
-
-#endif