blob: 639f1d512903a3d347d9d329e767f486758db719 [file] [log] [blame]
Tom Joseph7f839f92020-09-21 10:20:44 +05301#pragma once
2
3#include "pldmd/dbus_impl_requester.hpp"
4
5#include <vector>
6
7namespace pldm
8{
9namespace responder
10{
11namespace platform
12{
13
14/** @brief To send BIOS attribute update event
15 *
16 * When the attribute value changes for any BIOS attribute, then
17 * PlatformEventMessage command with OEM event type
18 * PLDM_EVENT_TYPE_OEM_EVENT_BIOS_ATTRIBUTE_UPDATE is send to host with the
19 * list of BIOS attribute handles.
20 *
21 * @param[in] fd - socket descriptor to communicate to host
22 * @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
25 */
26int sendBiosAttributeUpdateEvent(int fd, uint8_t eid,
27 dbus_api::Requester* requester,
28 const std::vector<uint16_t>& handles);
29
30} // namespace platform
31
32} // namespace responder
33
34} // namespace pldm