blob: 2c36ab33c8992950239ab9ed86d017cf295d40a8 [file] [log] [blame]
Elly Jonese7cb5b32011-12-01 14:18:32 -05001// Copyright (c) 2011 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 PING_TOOL_H
6#define PING_TOOL_H
7
8#include <map>
9#include <string>
10
11#include <base/basictypes.h>
12#include <dbus-c++/dbus.h>
13
Elly Jones0c016cc2011-12-19 16:19:22 -050014#include "subprocess_tool.h"
15
Elly Jonese7cb5b32011-12-01 14:18:32 -050016namespace debugd {
17
18class ProcessWithId;
19
Elly Jones0c016cc2011-12-19 16:19:22 -050020class PingTool : public SubprocessTool {
Elly Jonese7cb5b32011-12-01 14:18:32 -050021 public:
22 PingTool();
23 ~PingTool();
24
25 std::string Start(const DBus::FileDescriptor& outfd,
26 const std::string& destination,
27 const std::map<std::string, DBus::Variant>& options,
28 DBus::Error& error);
Elly Jonese7cb5b32011-12-01 14:18:32 -050029};
30
31}; // namespace debugd
32
33#endif // PING_TOOL_H