lix/src/libutil/compression.hh
Eelco Dolstra 538a64e8c3 Add a Store::addToStore() variant that accepts a NAR
As a side effect, this ensures that signatures are propagated when
copying paths between stores.

Also refactored import/export to make use of this.
2016-05-04 16:15:54 +02:00

17 lines
298 B
C++

#pragma once
#include "ref.hh"
#include "types.hh"
#include <string>
namespace nix {
ref<std::string> compress(const std::string & method, const std::string & in);
ref<std::string> decompress(const std::string & method, const std::string & in);
MakeError(UnknownCompressionMethod, Error);
}