blob: e78708b4f832cadba3d27b99fb98ef84ceb2f5c6 [file] [log] [blame]
Alex Deymo759c2752014-03-17 21:09:36 -07001// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
Andrew de los Reyesd2135f32010-03-11 16:00:28 -08002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Gilad Arnoldcf175a02014-07-10 16:48:47 -07005#ifndef UPDATE_ENGINE_BZIP_H_
6#define UPDATE_ENGINE_BZIP_H_
Alex Deymo759c2752014-03-17 21:09:36 -07007
Andrew de los Reyesd2135f32010-03-11 16:00:28 -08008#include <string>
9#include <vector>
10
11namespace chromeos_update_engine {
12
13// Bzip2 compresses or decompresses str/in to out.
14bool BzipDecompress(const std::vector<char>& in, std::vector<char>* out);
15bool BzipCompress(const std::vector<char>& in, std::vector<char>* out);
16bool BzipCompressString(const std::string& str, std::vector<char>* out);
17bool BzipDecompressString(const std::string& str, std::vector<char>* out);
18
19} // namespace chromeos_update_engine
Alex Deymo759c2752014-03-17 21:09:36 -070020
Gilad Arnoldcf175a02014-07-10 16:48:47 -070021#endif // UPDATE_ENGINE_BZIP_H_