Fletcher Woodruff | dd63582 | 2020-04-23 12:49:39 -0600 | [diff] [blame^] | 1 | // 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. |
| 17 | std::vector<uint8_t> ScannerCapabilitiesAsXml(const ScannerCapabilities& caps); |
| 18 | |
| 19 | #endif // __XML_UTIL_H__ |