remove IPMI_CC
Since IPMI_CC declared in api.h has been gradually deprecated,
this submission will use ipmi::cc in api.hpp instead.
Change-Id: Iaaf74396f59ba924753398c136e232c5b8fcd796
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
diff --git a/src/transportcommands.cpp b/src/transportcommands.cpp
index d7f632b..77c55f6 100644
--- a/src/transportcommands.cpp
+++ b/src/transportcommands.cpp
@@ -17,8 +17,9 @@
#include <ipmid/api.h>
#include <commandutils.hpp>
+#include <ipmid/api-types.hpp>
-#define IPMI_CC_PARAMETER_NOT_SUPPORTED 0x80
+constexpr ipmi::Cc ccParameterNotSupported = 0x80;
namespace ipmi
{
@@ -62,7 +63,7 @@
* with only one byte of data
*/
if (param & 0x80)
- return IPMI_CC_OK;
+ return ipmi::ccSuccess;
switch (paramSel)
{
@@ -98,11 +99,11 @@
break;
default:
*data_len = 0;
- return IPMI_CC_PARAMETER_NOT_SUPPORTED;
+ return ccParameterNotSupported;
break;
}
- return IPMI_CC_OK;
+ return ipmi::ccSuccess;
}
void registerTransportFunctions()