aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/cmd-profiles.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcmd/cmd-profiles.hh')
-rw-r--r--src/libcmd/cmd-profiles.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libcmd/cmd-profiles.hh b/src/libcmd/cmd-profiles.hh
index d03f9b1c2..2185daa34 100644
--- a/src/libcmd/cmd-profiles.hh
+++ b/src/libcmd/cmd-profiles.hh
@@ -6,6 +6,8 @@
#include "flake/flakeref.hh"
#include "get-drvs.hh"
#include "types.hh"
+#include "url.hh"
+#include "url-name.hh"
#include <string>
#include <set>
@@ -54,7 +56,7 @@ struct ProfileElement
struct ProfileManifest
{
- std::vector<ProfileElement> elements;
+ std::map<std::string, ProfileElement> elements;
ProfileManifest() { }
@@ -64,6 +66,9 @@ struct ProfileManifest
StorePath build(ref<Store> store);
+ void addElement(std::string_view nameCandidate, ProfileElement element);
+ void addElement(ProfileElement element);
+
static void printDiff(const ProfileManifest & prev, const ProfileManifest & cur, std::string_view indent);
};