blob: e8ed8fa096d8c2914246fdb6c47cabe0c1ef20d3 [file] [log] [blame]
#pragma once
#include <cstring>
#include <regex>
#include <string>
namespace sensor_paths
{
// This is an allowlist of the units a sensor can measure. Should be in sync
// with
// phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Sensor/Value.interface.yaml#L35
std::string getPathForUnits(const std::string& units);
std::string escapePathForDbus(const std::string& name);
} // namespace sensor_paths