From 73ab2ed4fd1c3cd974851be4f13e7a276ab16acf Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 6 Feb 2004 16:03:27 +0000 Subject: * A command `--list-generations' to show all generations for a profile. --- src/nix-env/profiles.hh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/nix-env/profiles.hh') 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 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); -- cgit 1.4.1