Piotr Pawliczek | e8650ea | 2019-08-10 20:14:07 -0700 | [diff] [blame] | 1 | // Copyright 2019 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef PRINT_TOOLS_IPP_IN_JSON_H_ |
| 6 | #define PRINT_TOOLS_IPP_IN_JSON_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | #include <vector> |
| 10 | |
| 11 | #include <chromeos/libipp/ipp.h> |
| 12 | |
| 13 | // This function build JSON representation of the given IPP response along with |
| 14 | // the log from parsing it. |
Piotr Pawliczek | 70ef9a3 | 2019-12-03 12:16:16 -0800 | [diff] [blame] | 15 | bool ConvertToJson(const ipp::Response& response, |
Piotr Pawliczek | e8650ea | 2019-08-10 20:14:07 -0700 | [diff] [blame] | 16 | const std::vector<ipp::Log>& log, |
| 17 | bool compressed_json, |
| 18 | std::string* json); |
| 19 | |
| 20 | #endif // PRINT_TOOLS_IPP_IN_JSON_H_ |