blob: af3ada4585cecf3344b497516f0c12227029cf80 [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
Alex Vakulenkof68bbbc2015-02-09 12:53:18 -080011#include <chromeos/secure_blob.h>
12
Andrew de los Reyesd2135f32010-03-11 16:00:28 -080013namespace chromeos_update_engine {
14
15// Bzip2 compresses or decompresses str/in to out.
Alex Vakulenkof68bbbc2015-02-09 12:53:18 -080016bool BzipDecompress(const chromeos::Blob& in, chromeos::Blob* out);
17bool BzipCompress(const chromeos::Blob& in, chromeos::Blob* out);
18bool BzipCompressString(const std::string& str, chromeos::Blob* out);
19bool BzipDecompressString(const std::string& str, chromeos::Blob* out);
Andrew de los Reyesd2135f32010-03-11 16:00:28 -080020
21} // namespace chromeos_update_engine
Alex Deymo759c2752014-03-17 21:09:36 -070022
Gilad Arnoldcf175a02014-07-10 16:48:47 -070023#endif // UPDATE_ENGINE_BZIP_H_