blob: 4971e6d92cde525a288901c09154bd2f1dc3903c [file] [log] [blame]
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -07001// Copyright (c) 2012 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
Alex Vakulenko262be3f2014-07-30 15:25:50 -07005#ifndef DEBUGD_SRC_STORAGE_TOOL_H_
6#define DEBUGD_SRC_STORAGE_TOOL_H_
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -07007
8#include <string>
9
Ben Chan657bed82014-09-02 20:40:51 -070010#include <base/macros.h>
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070011#include <dbus-c++/dbus.h>
12
Alex Vakulenko262be3f2014-07-30 15:25:50 -070013#include "debugd/src/subprocess_tool.h"
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070014
15namespace debugd {
16
17class StorageTool : public SubprocessTool {
18 public:
Ben Chan78f89532014-08-29 09:35:09 -070019 StorageTool() = default;
20 ~StorageTool() override = default;
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070021
Eric Carusoc93a15c2017-04-24 16:15:12 -070022 std::string Smartctl(const std::string& option);
23 std::string Start(const DBus::FileDescriptor& outfd);
Ben Chana0011d82014-05-13 00:19:29 -070024
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070025 private:
26 DISALLOW_COPY_AND_ASSIGN(StorageTool);
27};
28
Ben Chana0011d82014-05-13 00:19:29 -070029} // namespace debugd
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070030
Alex Vakulenko262be3f2014-07-30 15:25:50 -070031#endif // DEBUGD_SRC_STORAGE_TOOL_H_