blob: 4f70d747d6d9a6bf70bbe00991deb312fe87ae73 [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
Alex Deymo759c2752014-03-17 21:09:36 -07005#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_BZIP_H_
6#define CHROMEOS_PLATFORM_UPDATE_ENGINE_BZIP_H_
7
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
21#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_BZIP_H_