blob: ae401e6ec40668011ccf800892ee479f908a9602 [file] [log] [blame]
Piotr Pawliczeke8650ea2019-08-10 20:14:07 -07001// 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 Pawliczek70ef9a32019-12-03 12:16:16 -080015bool ConvertToJson(const ipp::Response& response,
Piotr Pawliczeke8650ea2019-08-10 20:14:07 -070016 const std::vector<ipp::Log>& log,
17 bool compressed_json,
18 std::string* json);
19
20#endif // PRINT_TOOLS_IPP_IN_JSON_H_