Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <sdbusplus/bus.hpp> |
| 4 | #include "xyz/openbmc_project/Software/Version/server.hpp" |
| 5 | |
| 6 | namespace openpower |
| 7 | { |
| 8 | namespace software |
| 9 | { |
| 10 | namespace manager |
| 11 | { |
| 12 | |
| 13 | using VersionInherit = sdbusplus::server::object::object< |
| 14 | sdbusplus::xyz::openbmc_project::Software::server::Version>; |
| 15 | |
| 16 | /** @class Version |
| 17 | * @brief OpenBMC version software management implementation. |
| 18 | * @details A concrete implementation for xyz.openbmc_project.Software.Version |
| 19 | * DBus API. |
| 20 | */ |
| 21 | class Version : public VersionInherit |
| 22 | { |
| 23 | public: |
| 24 | /** @brief Constructs Version Software Manager |
| 25 | * |
| 26 | * @param[in] bus - The Dbus bus object |
| 27 | * @param[in] objPath - The Dbus object path |
| 28 | */ |
| 29 | Version(sdbusplus::bus::bus& bus, |
| 30 | const char* objPath) : VersionInherit( |
| 31 | bus, objPath) {}; |
| 32 | }; |
| 33 | |
| 34 | } // namespace manager |
| 35 | } // namespace software |
| 36 | } // namespace openpower |
| 37 | |