blob: 6a37d989e1d33a1f6ebae9d08bb2e653cc2b97d5 [file] [log] [blame]
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DEBUGD_SRC_PROBE_TOOL_H_
#define DEBUGD_SRC_PROBE_TOOL_H_
#include <string>
#include <base/macros.h>
#include <brillo/dbus/file_descriptor.h>
#include <brillo/errors/error.h>
namespace debugd {
class ProbeTool {
public:
ProbeTool() = default;
~ProbeTool() = default;
// Executes the function defined for runtime_probe.
bool EvaluateProbeFunction(
brillo::ErrorPtr* error, const std::string&
sandbox_info, const std::string& probe_statement,
brillo::dbus_utils::FileDescriptor *outfd);
private:
DISALLOW_COPY_AND_ASSIGN(ProbeTool);
};
} // namespace debugd
#endif // DEBUGD_SRC_PROBE_TOOL_H_