]> git.stg.codes - stg.git/blobdiff - projects/sgconf/tariffs.h
Fix divert_cap in FreeBSD.
[stg.git] / projects / sgconf / tariffs.h
index 28f25f9128b945070d431332bfd1a89146e86677..b6b896dd25271d7e48288a02fe6dd4240330fa13 100644 (file)
@@ -1,34 +1,11 @@
-#ifndef __STG_SGCONF_TARIFFS_H__
-#define __STG_SGCONF_TARIFFS_H__
-
-#include <string>
-#include <map>
+#pragma once
 
 namespace SGCONF
 {
 
-class CONFIG;
-
-bool GetTariffsFunction(const CONFIG & config,
-                        const std::string & /*arg*/,
-                        const std::map<std::string, std::string> & /*options*/);
-
-bool GetTariffFunction(const CONFIG & config,
-                       const std::string & arg,
-                       const std::map<std::string, std::string> & /*options*/);
+class OPTION_BLOCKS;
+class COMMANDS;
 
-bool DelTariffFunction(const CONFIG & config,
-                       const std::string & arg,
-                       const std::map<std::string, std::string> & /*options*/);
-
-bool AddTariffFunction(const CONFIG & config,
-                       const std::string & arg,
-                       const std::map<std::string, std::string> & options);
-
-bool ChgTariffFunction(const CONFIG & config,
-                       const std::string & arg,
-                       const std::map<std::string, std::string> & options);
+void AppendTariffsOptionBlock(COMMANDS & commands, OPTION_BLOCKS & blocks);
 
 } // namespace SGCONF
-
-#endif