about summary refs log tree commit diff
path: root/src/nix-env/profiles.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-env/profiles.hh')
-rw-r--r--src/nix-env/profiles.hh14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nix-env/profiles.hh b/src/nix-env/profiles.hh
index 3d3c86e50b1a..f9480ed3f3d4 100644
--- a/src/nix-env/profiles.hh
+++ b/src/nix-env/profiles.hh
@@ -6,6 +6,20 @@
 #include "util.hh"
 
 
+struct Generation
+{
+    int number;
+    Path path;
+    time_t creationTime;
+};
+
+typedef list<Generation> Generations;
+
+
+/* Returns the list of currently present generations for the specified
+   profile, sorted by generation number. */
+Generations findGenerations(Path profile);
+    
 Path createGeneration(Path profile, Path outPath, Path drvPath);
 
 void switchLink(Path link, Path target);