Patrick Venture | 3356975 | 2018-03-12 18:56:14 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Kun Yi | 35b6c67 | 2018-06-11 20:44:43 -0700 | [diff] [blame] | 3 | #include <sdbusplus/bus.hpp> |
| 4 | #include <sdbusplus/server.hpp> |
| 5 | |
| 6 | #include "xyz/openbmc_project/State/Boot/Raw/server.hpp" |
| 7 | |
Patrick Venture | 3356975 | 2018-03-12 18:56:14 -0700 | [diff] [blame] | 8 | /* The LPC snoop on port 80h is mapped to this dbus path. */ |
| 9 | #define SNOOP_OBJECTPATH "/xyz/openbmc_project/state/boot/raw" |
| 10 | /* The LPC snoop on port 80h is mapped to this dbus service. */ |
| 11 | #define SNOOP_BUSNAME "xyz.openbmc_project.State.Boot.Raw" |
Kun Yi | 35b6c67 | 2018-06-11 20:44:43 -0700 | [diff] [blame] | 12 | |
| 13 | template <typename... T> |
| 14 | using ServerObject = typename sdbusplus::server::object::object<T...>; |
| 15 | using PostInterface = sdbusplus::xyz::openbmc_project::State::Boot::server::Raw; |
| 16 | using PostObject = ServerObject<PostInterface>; |
| 17 | |
| 18 | class PostReporter : public PostObject |
| 19 | { |
| 20 | public: |
| 21 | PostReporter(sdbusplus::bus::bus& bus, const char* objPath, bool defer) : |
| 22 | PostObject(bus, objPath, defer) |
| 23 | { |
| 24 | } |
| 25 | }; |