bridgingcommands:Move ClearMessageFlags to new API
Rewrite ipmiAppClearMessageFlags command to use the newly
introduced IPMI provider API.
Tested:
Verified using ipmitool ClearMessageFlags behavior is same
before and after the changes.
Command : ipmitool raw 0x06 0x31 //Get Message Flags
Response: 02
Command : ipmitool raw 0x06 0x30 0x00 //Clear Message Flags
Response:
Signed-off-by: jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
Change-Id: I8c03050332408e909ab61994f337cfa2c1c036a4
diff --git a/include/bridgingcommands.hpp b/include/bridgingcommands.hpp
index db3e99d..fe92f6c 100644
--- a/include/bridgingcommands.hpp
+++ b/include/bridgingcommands.hpp
@@ -287,6 +287,9 @@
Bridging() = default;
std::size_t getResponseQueueSize();
+ std::vector<IpmbResponse> getResponseQueue();
+ void clearResponseQueue();
+
ipmi_return_codes sendMessageHandler(ipmi_request_t request,
ipmi_response_t response,
ipmi_data_len_t dataLen);
@@ -294,14 +297,8 @@
ipmi_return_codes getMessageHandler(ipmi_request_t request,
ipmi_response_t response,
ipmi_data_len_t dataLen);
-
- ipmi_return_codes clearMessageFlagsHandler(ipmi_request_t request,
- ipmi_response_t response,
- ipmi_data_len_t dataLen);
-
enum IpmiAppBridgingCmds
{
- ipmiCmdClearMessageFlags = 0x30,
ipmiCmdGetMessage = 0x33,
ipmiCmdSendMessage = 0x34,
};