summaryrefslogtreecommitdiffstats
path: root/sensorhandler.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-08-23 09:02:13 -0700
committerPatrick Venture <venture@google.com>2019-09-17 01:44:03 +0000
commit99bf1c410f4521e1df05c41cd377e9d1232dbdba (patch)
tree727bb4c81a837f8560f089ef0ddf9cdfbe159cb0 /sensorhandler.cpp
parentdb0cbe643bc8d017afd58903eb4aacd48f94361a (diff)
downloadphosphor-host-ipmid-99bf1c410f4521e1df05c41cd377e9d1232dbdba.tar.gz
phosphor-host-ipmid-99bf1c410f4521e1df05c41cd377e9d1232dbdba.zip
entitymap: move accessor to separate module
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I8c80acb694d067043b77d81dbb9a7ba0057fef56
Diffstat (limited to 'sensorhandler.cpp')
-rw-r--r--sensorhandler.cpp15
1 files changed, 1 insertions, 14 deletions
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 <mapper.h>
@@ -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);
OpenPOWER on IntegriCloud