summaryrefslogtreecommitdiff
path: root/src/rebuild.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-10-30 18:02:10 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-10-30 18:02:10 +0200
commitbc474f716407dec521626e76b6101df4a2f1a40a (patch)
tree2e7aa3ba12a1f65297225616ad4de59b181c932c /src/rebuild.h
parent7bf162fcd98920644e4f61ac0181037eb62c807e (diff)
Add external configs.
Diffstat (limited to 'src/rebuild.h')
-rw-r--r--src/rebuild.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rebuild.h b/src/rebuild.h
index 906d089..ae3e408 100644
--- a/src/rebuild.h
+++ b/src/rebuild.h
@@ -16,9 +16,18 @@ struct BuildConfigurationEntry
std::vector<BuildConfiguration> (*cb)();
};
+struct ExternalConfigurationEntry
+{
+ const char* file;
+ std::vector<ExternalConfiguration> (*cb)();
+};
+
extern std::array<BuildConfigurationEntry, 1024> configFiles;
extern std::size_t numConfigFiles;
+extern std::array<ExternalConfigurationEntry, 1024> externalConfigFiles;
+extern std::size_t numExternalConfigFiles;
+
//int reg(const char* location, std::vector<BuildConfiguration> (*cb)());
int unreg(const char* location);