Nicole Anderson-Au | d9f0aed | 2020-12-22 17:16:25 +0000 | [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 | // This tool is used for getting dmesg information through debugd. |
| 6 | |
| 7 | #ifndef DEBUGD_SRC_DMESG_TOOL_H_ |
| 8 | #define DEBUGD_SRC_DMESG_TOOL_H_ |
| 9 | |
| 10 | #include <string> |
| 11 | |
| 12 | #include <brillo/errors/error.h> |
| 13 | #include <brillo/variant_dictionary.h> |
| 14 | |
| 15 | namespace debugd { |
| 16 | |
| 17 | class DmesgTool { |
| 18 | public: |
| 19 | DmesgTool() = default; |
| 20 | DmesgTool(const DmesgTool&) = delete; |
| 21 | DmesgTool& operator=(const DmesgTool&) = delete; |
| 22 | |
| 23 | ~DmesgTool() = default; |
| 24 | |
| 25 | bool CallDmesg(const brillo::VariantDictionary& options, |
| 26 | brillo::ErrorPtr* error, |
| 27 | std::string* output); |
| 28 | }; |
| 29 | |
| 30 | } // namespace debugd |
| 31 | |
| 32 | #endif // DEBUGD_SRC_DMESG_TOOL_H_ |