Mike Frysinger | f9da3d3 | 2017-09-19 23:41:27 -0400 | [diff] [blame^] | 1 | // Copyright 2017 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 DEBUGD_SRC_SHILL_SCRIPTS_TOOL_H_ |
| 6 | #define DEBUGD_SRC_SHILL_SCRIPTS_TOOL_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | #include <vector> |
| 10 | |
| 11 | #include <base/macros.h> |
| 12 | #include <brillo/errors/error.h> |
| 13 | #include <dbus/file_descriptor.h> |
| 14 | |
| 15 | #include "debugd/src/subprocess_tool.h" |
| 16 | |
| 17 | namespace debugd { |
| 18 | |
| 19 | class ShillScriptsTool : public SubprocessTool { |
| 20 | public: |
| 21 | ShillScriptsTool() = default; |
| 22 | ~ShillScriptsTool() override = default; |
| 23 | |
| 24 | bool Run(const dbus::FileDescriptor& outfd, |
| 25 | const std::string& script, |
| 26 | const std::vector<std::string>& script_args, |
| 27 | std::string* out_id, |
| 28 | brillo::ErrorPtr* error); |
| 29 | |
| 30 | private: |
| 31 | DISALLOW_COPY_AND_ASSIGN(ShillScriptsTool); |
| 32 | }; |
| 33 | |
| 34 | } // namespace debugd |
| 35 | |
| 36 | #endif // DEBUGD_SRC_SHILL_SCRIPTS_TOOL_H_ |