store: Add GC-related operations.
authorLudovic Courtès <ludo@gnu.org>
Sun, 9 Dec 2012 22:52:59 +0000 (23:52 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sun, 9 Dec 2012 22:52:59 +0000 (23:52 +0100)
commit3259877d3563ac022633fbd8b73134a10567331e
tree9958721827f6a8ba3f47333bdfa30a7865db8ee0
parentd3648e01185dbb3afed85a630b2f8934c68ea143
store: Add GC-related operations.

* guix/store.scm (gc-action): New enumerate type.
  (read-long-long, read-string-list, write-store-path,
  write-store-path-list, read-store-path-list): New procedures.
  (write-arg): Add support for `store-path' and `store-path-list'.
  (read-arg): Add support for `store-path-list'.
  (define-operation): Add support for multiple-value returns.
  (run-gc, live-paths, dead-paths, collect-garbage, delete-paths): New
  procedures.
  (%long-long-max): New macro.
* tests/store.scm: New file.
* Makefile.am (TESTS): Add it.
Makefile.am
guix/store.scm
tests/store.scm [new file with mode: 0644]