#pragma once #include #include #include /* The LPC snoop on port 80h is mapped to this dbus path. */ constexpr char snoopObject[] = "/xyz/openbmc_project/state/boot/raw0"; /* The LPC snoop on port 80h is mapped to this dbus service. */ constexpr char snoopDbus[] = "xyz.openbmc_project.State.Boot.Raw"; template using ServerObject = typename sdbusplus::server::object_t; using PostInterface = sdbusplus::xyz::openbmc_project::State::Boot::server::Raw; using PostObject = ServerObject; using primary_post_code_t = std::vector; using secondary_post_code_t = std::vector; using postcode_t = std::tuple; class PostReporter : public PostObject { public: PostReporter(sdbusplus::bus_t& bus, const char* objPath, bool defer) : PostObject(bus, objPath, defer ? PostObject::action::defer_emit : PostObject::action::emit_object_added) {} unsigned int rateLimit = 0; };