summaryrefslogtreecommitdiff
path: root/src/ctor.h
diff options
context:
space:
mode:
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 c9d7d8a..d4a71bd 100644
--- a/src/ctor.h
+++ b/src/ctor.h
@@ -141,8 +141,11 @@ constexpr auto ctor_includedir = "ctor-includedir";
constexpr auto ctor_libdir = "ctor-libdir";
}
-struct Configuration
+struct configuration
{
+ bool has(const std::string& key) const;
+ const std::string& get(const std::string& key, const std::string& default_value = {}) const;
+
std::vector<std::string> args; // vector of arguments used when last calling configure
std::map<std::string, std::string> env; // env used when last calling configure
@@ -150,9 +153,6 @@ struct Configuration
std::map<std::string, ctor::flags> externals;
};
-const Configuration& configuration();
-bool hasConfiguration(const std::string& key);
-const std::string& getConfiguration(const std::string& key,
- const std::string& defaultValue = {});
+const ctor::configuration& get_configuration();
} // namespace ctor::