blob: f088d2d48184c22a32bb84403676a86bf7c9551b [file] [log] [blame]
Fletcher Woodruffdd635822020-04-23 12:49:39 -06001// Copyright 2020 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 __XML_UTIL_H__
6#define __XML_UTIL_H__
7
8#include <stdint.h>
9
10#include <vector>
11
12#include "escl_manager.h"
13
14// Returns a serialized eSCL ScannerCapabilities XML representation of |caps|.
15// For fields that are not provided by |caps|, sensible default values are
16// chosen.
17std::vector<uint8_t> ScannerCapabilitiesAsXml(const ScannerCapabilities& caps);
18
19#endif // __XML_UTIL_H__