blob: 5a43400044787c9426445d00f2dfc2b01ad20da2 [file] [log] [blame]
// Copyright 2018 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 RUNTIME_PROBE_FUNCTIONS_GENERIC_BATTERY_H_
#define RUNTIME_PROBE_FUNCTIONS_GENERIC_BATTERY_H_
#include "runtime_probe/probe_function.h"
namespace runtime_probe {
class GenericBattery final : public PrivilegedProbeFunction {
// Read battery information from sysfs.
public:
NAME_PROBE_FUNCTION("generic_battery");
static constexpr auto FromKwargsValue = FromEmptyKwargsValue<GenericBattery>;
private:
DataType EvalImpl() const override;
};
} // namespace runtime_probe
#endif // RUNTIME_PROBE_FUNCTIONS_GENERIC_BATTERY_H_