blob: 5d9e042146e60e3e6efe8bc7d4c3bd815d33f674 [file] [log] [blame]
Nicole Anderson-Aud9f0aed2020-12-22 17:16:25 +00001// 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
15namespace debugd {
16
17class 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_