Deepak Kodihalli | 35c7fb1 | 2016-11-21 04:32:44 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <climits> |
Deepak Kodihalli | 7679449 | 2017-02-16 23:48:18 -0600 | [diff] [blame] | 4 | #include <map> |
| 5 | #include <sdbusplus/server.hpp> |
Patrick Venture | c83c4dc | 2018-11-01 16:29:18 -0700 | [diff] [blame^] | 6 | #include <string> |
| 7 | #include <vector> |
Deepak Kodihalli | 35c7fb1 | 2016-11-21 04:32:44 -0600 | [diff] [blame] | 8 | |
| 9 | namespace openpower |
| 10 | { |
| 11 | namespace vpd |
| 12 | { |
| 13 | |
| 14 | /** @brief The OpenPOWER VPD, in binary, is specified as a |
| 15 | * sequence of characters */ |
| 16 | static_assert((8 == CHAR_BIT), "A byte is not 8 bits!"); |
| 17 | using Byte = uint8_t; |
| 18 | using Binary = std::vector<Byte>; |
| 19 | |
Deepak Kodihalli | 7679449 | 2017-02-16 23:48:18 -0600 | [diff] [blame] | 20 | namespace inventory |
| 21 | { |
| 22 | |
| 23 | using Path = std::string; |
| 24 | using Property = std::string; |
| 25 | using Value = sdbusplus::message::variant<bool, int64_t, std::string>; |
| 26 | using PropertyMap = std::map<Property, Value>; |
| 27 | |
| 28 | using Interface = std::string; |
| 29 | using InterfaceMap = std::map<Interface, PropertyMap>; |
| 30 | |
| 31 | using Object = sdbusplus::message::object_path; |
| 32 | using ObjectMap = std::map<Object, InterfaceMap>; |
| 33 | |
| 34 | using namespace std::string_literals; |
Deepak Kodihalli | 193b228 | 2017-06-07 08:34:30 -0500 | [diff] [blame] | 35 | constexpr auto pimPath = "/xyz/openbmc_project/inventory"; |
| 36 | constexpr auto pimIntf = "xyz.openbmc_project.Inventory.Manager"; |
Deepak Kodihalli | 7679449 | 2017-02-16 23:48:18 -0600 | [diff] [blame] | 37 | |
| 38 | } // namespace inventory |
| 39 | |
Deepak Kodihalli | 35c7fb1 | 2016-11-21 04:32:44 -0600 | [diff] [blame] | 40 | } // namespace vpd |
| 41 | } // namespace openpower |