summaryrefslogtreecommitdiff
path: root/src/ctor.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-11 18:30:11 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-11 18:30:11 +0100
commitf10bfc1bff1dc2792b4905c27dd22c0999162fac (patch)
treebacd83a6aa721d1427d84ef50493235fbda5b343 /src/ctor.h
parenteb00551f0e990495c6d7533ed193f459cb449665 (diff)
Rename BuildConfiguration struct to build_configuration
Diffstat (limited to 'src/ctor.h')
-rw-r--r--src/ctor.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ctor.h b/src/ctor.h
index 3a6adce..c78e92e 100644
--- a/src/ctor.h
+++ b/src/ctor.h
@@ -73,13 +73,13 @@ struct settings
int verbose{0}; // -1: completely silent, 0: normal, 1: verbose, ...
};
-struct BuildConfiguration;
+struct build_configuration;
using GeneratorCb = std::function<int(const std::string& input,
const std::string& output,
- const BuildConfiguration& config,
+ const build_configuration& config,
const ctor::settings& settings)>;
-struct BuildConfiguration
+struct build_configuration
{
std::string name; // Name - used for referring in other configurations.
ctor::target_type type{ctor::target_type::automatic};
@@ -92,9 +92,9 @@ struct BuildConfiguration
GeneratorCb function;
};
-using BuildConfigurations = std::vector<BuildConfiguration>;
+using build_configurations = std::vector<build_configuration>;
-int reg(BuildConfigurations (*cb)(const ctor::settings&),
+int reg(ctor::build_configurations (*cb)(const ctor::settings&),
const std::source_location location = std::source_location::current());
// This type will use flags verbatim