Alex Deymo | 759c275 | 2014-03-17 21:09:36 -0700 | [diff] [blame] | 1 | // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
Andrew de los Reyes | d2135f3 | 2010-03-11 16:00:28 -0800 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Gilad Arnold | cf175a0 | 2014-07-10 16:48:47 -0700 | [diff] [blame] | 5 | #ifndef UPDATE_ENGINE_BZIP_H_ |
| 6 | #define UPDATE_ENGINE_BZIP_H_ |
Alex Deymo | 759c275 | 2014-03-17 21:09:36 -0700 | [diff] [blame] | 7 | |
Andrew de los Reyes | d2135f3 | 2010-03-11 16:00:28 -0800 | [diff] [blame] | 8 | #include <string> |
| 9 | #include <vector> |
| 10 | |
| 11 | namespace chromeos_update_engine { |
| 12 | |
| 13 | // Bzip2 compresses or decompresses str/in to out. |
| 14 | bool BzipDecompress(const std::vector<char>& in, std::vector<char>* out); |
| 15 | bool BzipCompress(const std::vector<char>& in, std::vector<char>* out); |
| 16 | bool BzipCompressString(const std::string& str, std::vector<char>* out); |
| 17 | bool BzipDecompressString(const std::string& str, std::vector<char>* out); |
| 18 | |
| 19 | } // namespace chromeos_update_engine |
Alex Deymo | 759c275 | 2014-03-17 21:09:36 -0700 | [diff] [blame] | 20 | |
Gilad Arnold | cf175a0 | 2014-07-10 16:48:47 -0700 | [diff] [blame] | 21 | #endif // UPDATE_ENGINE_BZIP_H_ |