blob: 48a21f2902629ed395d2107b7f82f54316b5df0a [file] [log] [blame]
Mike Frysingerf9da3d32017-09-19 23:41:27 -04001// 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
17namespace debugd {
18
19class 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_