about summary refs log tree commit diff
path: root/src/nix-env/profiles.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-02-06T16·03+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-02-06T16·03+0000
commit73ab2ed4fd1c3cd974851be4f13e7a276ab16acf (patch)
tree3ad2775595b995f94c19ac54b3ab70cbf86e8cfe /src/nix-env/profiles.hh
parent7c0fa4474f0010f8266b85e891ca6049595ecb32 (diff)
* A command `--list-generations' to show all generations for a
  profile.

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);