summaryrefslogtreecommitdiff
path: root/thermal/utils/config_parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'thermal/utils/config_parser.h')
-rw-r--r--thermal/utils/config_parser.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/thermal/utils/config_parser.h b/thermal/utils/config_parser.h
index f52475f..cb27297 100644
--- a/thermal/utils/config_parser.h
+++ b/thermal/utils/config_parser.h
@@ -129,9 +129,12 @@ struct PowerRailInfo {
std::unique_ptr<VirtualPowerRailInfo> virtual_power_rail_info;
};
-std::unordered_map<std::string, SensorInfo> ParseSensorInfo(std::string_view config_path);
-std::unordered_map<std::string, CdevInfo> ParseCoolingDevice(std::string_view config_path);
-std::unordered_map<std::string, PowerRailInfo> ParsePowerRailInfo(std::string_view config_path);
+bool ParseSensorInfo(std::string_view config_path,
+ std::unordered_map<std::string, SensorInfo> *sensors_parsed);
+bool ParseCoolingDevice(std::string_view config_path,
+ std::unordered_map<std::string, CdevInfo> *cooling_device_parsed);
+bool ParsePowerRailInfo(std::string_view config_path,
+ std::unordered_map<std::string, PowerRailInfo> *power_rail_parsed);
} // namespace implementation
} // namespace V2_0