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

Change-Id: I7631e68bd62d15dfc7274058b2ece38e3421a661
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
diff --git a/storagehandler.cpp b/storagehandler.cpp
index d85673f..ef5630c 100644
--- a/storagehandler.cpp
+++ b/storagehandler.cpp
@@ -893,7 +893,7 @@
                           ipmiStorageGetSelTimeUtcOffset);
 
     // <Get SEL Entry>
-    ipmi_register_callback(NETFUN_STORAGE, ipmi::storage::cmdGetSelEntry,
+    ipmi_register_callback(ipmi::netFnStorage, ipmi::storage::cmdGetSelEntry,
                            nullptr, getSELEntry, PRIVILEGE_USER);
 
     // <Delete SEL Entry>
@@ -934,8 +934,8 @@
                           ipmi::Privilege::User, ipmiSensorReserveSdr);
 
     // <Get SDR>
-    ipmi_register_callback(NETFUN_STORAGE, ipmi::storage::cmdGetSdr, nullptr,
-                           ipmi_sen_get_sdr, PRIVILEGE_USER);
+    ipmi_register_callback(ipmi::netFnStorage, ipmi::storage::cmdGetSdr,
+                           nullptr, ipmi_sen_get_sdr, PRIVILEGE_USER);
 
 #endif