blob: 90729bef798dfb9cb6c162279075f1b2a0dd691d [file] [log] [blame]
Patrick Venture33569752018-03-12 18:56:14 -07001#pragma once
2
Kun Yi35b6c672018-06-11 20:44:43 -07003#include <sdbusplus/bus.hpp>
4#include <sdbusplus/server.hpp>
5
6#include "xyz/openbmc_project/State/Boot/Raw/server.hpp"
7
Patrick Venture33569752018-03-12 18:56:14 -07008/* 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 Yi35b6c672018-06-11 20:44:43 -070012
13template <typename... T>
14using ServerObject = typename sdbusplus::server::object::object<T...>;
15using PostInterface = sdbusplus::xyz::openbmc_project::State::Boot::server::Raw;
16using PostObject = ServerObject<PostInterface>;
17
18class 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};