summary refs log tree commit diff
path: root/nix/libstore/store-api.hh
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-09-01 22:21:42 +0200
committerLudovic Courtès <ludo@gnu.org>2015-05-11 17:31:02 +0200
commit6621195e48f8e0cbbe6e19dbcde30bd8a7da0399 (patch)
tree740e6a86bc1f2b5904a4e96d34cf843469c762f0 /nix/libstore/store-api.hh
parent3bb89c3a31b9cf6e056f3659389e2d2e7afd17fa (diff)
downloadguix-6621195e48f8e0cbbe6e19dbcde30bd8a7da0399.tar.gz
Add an 'optimiseStore' remote procedure call.
Diffstat (limited to 'nix/libstore/store-api.hh')
-rw-r--r--nix/libstore/store-api.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/nix/libstore/store-api.hh b/nix/libstore/store-api.hh
index b635fee2cf..3109f100ef 100644
--- a/nix/libstore/store-api.hh
+++ b/nix/libstore/store-api.hh
@@ -250,6 +250,10 @@ public:
        `nix-store --register-validity'. */
     string makeValidityRegistration(const PathSet & paths,
         bool showDerivers, bool showHash);
+
+    /* Optimise the disk space usage of the Nix store by hard-linking files
+       with the same contents. */
+    virtual void optimiseStore() = 0;
 };