From 0022a217643dd7119df5dc0fcca41161d3201acc Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 30 Mar 2025 14:23:26 +0200 Subject: Refactor code for registering build_configuration registrations. --- src/rebuild.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/rebuild.h') diff --git a/src/rebuild.h b/src/rebuild.h index efa6d42..8e0c78a 100644 --- a/src/rebuild.h +++ b/src/rebuild.h @@ -5,26 +5,26 @@ #include #include +#include +#include #include "ctor.h" struct BuildConfigurationEntry { - const char* file; - ctor::build_configurations (*cb)(const ctor::settings&); + std::string file; + std::function cb; }; +std::vector& getConfigFileList(); + struct ExternalConfigurationEntry { - const char* file; - ctor::external_configurations (*cb)(const ctor::settings&); + std::string file; + std::function cb; }; -extern std::array configFiles; -extern std::size_t numConfigFiles; - -extern std::array externalConfigFiles; -extern std::size_t numExternalConfigFiles; +std::vector& getExternalConfigFileList(); int reg(const char* location); int unreg(const char* location); -- cgit v1.2.3