diff options
Diffstat (limited to 'types.hpp')
-rw-r--r-- | types.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -2,6 +2,9 @@ #include <climits> #include <vector> +#include <string> +#include <map> +#include <sdbusplus/server.hpp> namespace openpower { @@ -14,5 +17,25 @@ static_assert((8 == CHAR_BIT), "A byte is not 8 bits!"); using Byte = uint8_t; using Binary = std::vector<Byte>; +namespace inventory +{ + +using Path = std::string; +using Property = std::string; +using Value = sdbusplus::message::variant<bool, int64_t, std::string>; +using PropertyMap = std::map<Property, Value>; + +using Interface = std::string; +using InterfaceMap = std::map<Interface, PropertyMap>; + +using Object = sdbusplus::message::object_path; +using ObjectMap = std::map<Object, InterfaceMap>; + +using namespace std::string_literals; +static const auto pimPath = "/xyz/openbmc_project/Inventory"s; +static const auto pimIntf = "xyz.openbmc_project.Inventory.Manager"s; + +} // namespace inventory + } // namespace vpd } // namespace openpower |