storagehandler: remove storagehandler.hpp
The IPMI_CMD declared in storagehandler.hpp is redundant because
these commands are already declared in api-types.hpp, so this commit
remove the storagehandler.hpp file.
Change-Id: I3b8beefe54833e9954525057034f382a33cb3944
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
diff --git a/storagehandler.cpp b/storagehandler.cpp
index 5239ee9..dc7cf39 100644
--- a/storagehandler.cpp
+++ b/storagehandler.cpp
@@ -1,7 +1,5 @@
#include "config.h"
-#include "storagehandler.hpp"
-
#include "fruread.hpp"
#include "read_fru_data.hpp"
#include "selutility.hpp"
@@ -894,7 +892,7 @@
ipmiStorageGetSelTimeUtcOffset);
// <Get SEL Entry>
- ipmi_register_callback(NETFUN_STORAGE, IPMI_CMD_GET_SEL_ENTRY, NULL,
+ ipmi_register_callback(NETFUN_STORAGE, ipmi::storage::cmdGetSelEntry, NULL,
getSELEntry, PRIVILEGE_USER);
// <Delete SEL Entry>
@@ -935,7 +933,7 @@
ipmi::Privilege::User, ipmiSensorReserveSdr);
// <Get SDR>
- ipmi_register_callback(NETFUN_STORAGE, IPMI_CMD_GET_SDR, nullptr,
+ ipmi_register_callback(NETFUN_STORAGE, ipmi::storage::cmdGetSdr, nullptr,
ipmi_sen_get_sdr, PRIVILEGE_USER);
#endif