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/transportcommands.cpp b/src/transportcommands.cpp
index 77f9ba5..d7f632b 100644
--- a/src/transportcommands.cpp
+++ b/src/transportcommands.cpp
@@ -107,8 +107,8 @@
 
 void registerTransportFunctions()
 {
-    ipmiPrintAndRegister(NETFUN_TRANSPORT, CMD_TRANSPORT_GET_SOL_CONFIG, NULL,
-                         ipmiTransGetSolConfig,
+    ipmiPrintAndRegister(ipmi::netFnTransport, CMD_TRANSPORT_GET_SOL_CONFIG,
+                         NULL, ipmiTransGetSolConfig,
                          PRIVILEGE_OPERATOR); // Get Sol Config
 
     return;