blob: 6f3a3204a9789c2dd4d4b67af93c0ede5e39fd61 [file] [log] [blame]
Tom Joseph7f839f92020-09-21 10:20:44 +05301#pragma once
2
3#include "pldmd/dbus_impl_requester.hpp"
Sampa Misrac0c79482021-06-02 08:01:54 -05004#include "requester/handler.hpp"
Tom Joseph7f839f92020-09-21 10:20:44 +05305
6#include <vector>
7
8namespace pldm
9{
10namespace responder
11{
12namespace platform
13{
14
15/** @brief To send BIOS attribute update event
16 *
17 * When the attribute value changes for any BIOS attribute, then
18 * PlatformEventMessage command with OEM event type
19 * PLDM_EVENT_TYPE_OEM_EVENT_BIOS_ATTRIBUTE_UPDATE is send to host with the
20 * list of BIOS attribute handles.
21 *
Tom Joseph7f839f92020-09-21 10:20:44 +053022 * @param[in] eid - MCTP EID of host firmware
23 * @param[in] requester - pointer to Requester object
24 * @param[in] handles - List of BIOS attribute handles
Sampa Misrac0c79482021-06-02 08:01:54 -050025 * @param[in] handler - PLDM request handler
Tom Joseph7f839f92020-09-21 10:20:44 +053026 */
Sampa Misrac0c79482021-06-02 08:01:54 -050027int sendBiosAttributeUpdateEvent(
28 uint8_t eid, dbus_api::Requester* requester,
29 const std::vector<uint16_t>& handles,
30 pldm::requester::Handler<pldm::requester::Request>* handler);
Tom Joseph7f839f92020-09-21 10:20:44 +053031
32} // namespace platform
33
34} // namespace responder
35
36} // namespace pldm