diff options
author | Patrick Venture <venture@google.com> | 2019-08-23 09:02:13 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2019-09-17 01:44:03 +0000 |
commit | 99bf1c410f4521e1df05c41cd377e9d1232dbdba (patch) | |
tree | 727bb4c81a837f8560f089ef0ddf9cdfbe159cb0 /entity_map_json.cpp | |
parent | db0cbe643bc8d017afd58903eb4aacd48f94361a (diff) | |
download | phosphor-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 'entity_map_json.cpp')
-rw-r--r-- | entity_map_json.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/entity_map_json.cpp b/entity_map_json.cpp index b6fc6d6..96ef61c 100644 --- a/entity_map_json.cpp +++ b/entity_map_json.cpp @@ -12,6 +12,13 @@ namespace ipmi namespace sensor { +extern const EntityInfoMap entities; + +const EntityInfoMap& getIpmiEntityRecords() +{ + return entities; +} + EntityInfoMap buildEntityMapFromFile() { const char* entityMapJsonFilename = |