NetFn: Use api.hpp instead of api.h
Since NetFn declared in api.h has been gradually deprecated, this
submission is to use api.hpp instead of api.h.
https://gerrit.openbmc.org/c/openbmc/phosphor-host-ipmid/+/79391
Change-Id: I6f15b2de43d976bf626e494ca70bad9d8cdd55fc
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
diff --git a/src/storagecommands.cpp b/src/storagecommands.cpp
index 84801ba..1c6f36f 100644
--- a/src/storagecommands.cpp
+++ b/src/storagecommands.cpp
@@ -1004,31 +1004,31 @@
{
// <Get FRU Inventory Area Info>
ipmiPrintAndRegister(
- NETFUN_STORAGE,
+ ipmi::netFnStorage,
static_cast<ipmi_cmd_t>(IPMINetfnStorageCmds::ipmiCmdGetFRUInvAreaInfo),
NULL, ipmiStorageGetFRUInvAreaInfo, PRIVILEGE_OPERATOR);
// <READ FRU Data>
ipmiPrintAndRegister(
- NETFUN_STORAGE,
+ ipmi::netFnStorage,
static_cast<ipmi_cmd_t>(IPMINetfnStorageCmds::ipmiCmdReadFRUData), NULL,
ipmiStorageReadFRUData, PRIVILEGE_OPERATOR);
// <WRITE FRU Data>
ipmiPrintAndRegister(
- NETFUN_STORAGE,
+ ipmi::netFnStorage,
static_cast<ipmi_cmd_t>(IPMINetfnStorageCmds::ipmiCmdWriteFRUData),
NULL, ipmiStorageWriteFRUData, PRIVILEGE_OPERATOR);
// <Reserve SDR Repo>
ipmiPrintAndRegister(
- NETFUN_STORAGE,
+ ipmi::netFnStorage,
static_cast<ipmi_cmd_t>(IPMINetfnStorageCmds::ipmiCmdReserveSDR),
nullptr, ipmiStorageReserveSDR, PRIVILEGE_USER);
// <Get Sdr>
ipmiPrintAndRegister(
- NETFUN_STORAGE,
+ ipmi::netFnStorage,
static_cast<ipmi_cmd_t>(IPMINetfnStorageCmds::ipmiCmdGetSDR), nullptr,
ipmiStorageGetSDR, PRIVILEGE_USER);
return;