blob: e8ed8fa096d8c2914246fdb6c47cabe0c1ef20d3 [file] [log] [blame]
Josh Lehan2a40e932020-09-02 11:48:14 -07001#pragma once
2
3#include <cstring>
Ed Tanous6cb732a2021-02-18 15:33:51 -08004#include <regex>
Josh Lehan2a40e932020-09-02 11:48:14 -07005#include <string>
6
Ed Tanous6cb732a2021-02-18 15:33:51 -08007namespace sensor_paths
Josh Lehan2a40e932020-09-02 11:48:14 -07008{
9
Josh Lehan2a40e932020-09-02 11:48:14 -070010// This is an allowlist of the units a sensor can measure. Should be in sync
11// with
12// phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Sensor/Value.interface.yaml#L35
13
Ed Tanous6cb732a2021-02-18 15:33:51 -080014std::string getPathForUnits(const std::string& units);
Josh Lehan2a40e932020-09-02 11:48:14 -070015
Ed Tanous6cb732a2021-02-18 15:33:51 -080016std::string escapePathForDbus(const std::string& name);
17
18} // namespace sensor_paths