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. |
| 15 | // TODO(pawliczek) - add const to the first param (bug chromium:994893) |
| 16 | bool ConvertToJson(ipp::Response& response, // NOLINT(runtime/references) |
| 17 | const std::vector<ipp::Log>& log, |
| 18 | bool compressed_json, |
| 19 | std::string* json); |
| 20 | |
| 21 | #endif // PRINT_TOOLS_IPP_IN_JSON_H_ |