From 99bf1c410f4521e1df05c41cd377e9d1232dbdba Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Fri, 23 Aug 2019 09:02:13 -0700 Subject: entitymap: move accessor to separate module Signed-off-by: Patrick Venture Change-Id: I8c80acb694d067043b77d81dbb9a7ba0057fef56 --- sensorhandler.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'sensorhandler.cpp') diff --git a/sensorhandler.cpp b/sensorhandler.cpp index 28b04c1..b5e2f2f 100644 --- a/sensorhandler.cpp +++ b/sensorhandler.cpp @@ -2,6 +2,7 @@ #include "sensorhandler.hpp" +#include "entity_map_json.hpp" #include "fruread.hpp" #include @@ -85,20 +86,6 @@ struct sensorreadingresp_t uint8_t indication[2]; } __attribute__((packed)); -namespace ipmi -{ -namespace sensor -{ -extern const EntityInfoMap entities; - -const EntityInfoMap& getIpmiEntityRecords() -{ - return entities; -} - -} // namespace sensor -} // namespace ipmi - int get_bus_for_path(const char* path, char** busname) { return mapper_get_service(bus, path, busname); -- cgit v1.2.1