diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-02-06T16·03+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-02-06T16·03+0000 |
commit | 73ab2ed4fd1c3cd974851be4f13e7a276ab16acf (patch) | |
tree | 3ad2775595b995f94c19ac54b3ab70cbf86e8cfe /src/nix-env/profiles.hh | |
parent | 7c0fa4474f0010f8266b85e891ca6049595ecb32 (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.hh | 14 |
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); |