tools: Use ipmi-blob-tool definition of blob states
Using phosphor-ipmi-blobs definition for blob states causes dependency
of multiple phosphor packages that are not needed for host side tool.
Definitions are added to ipmi-blob-tool,
https://gerrit.openbmc-project.xyz/c/openbmc/ipmi-blob-tool/+/46240
We can now move to using this.
Signed-off-by: Vivekanand Veeracholan <vveerach@google.com>
Change-Id: If05dbfd740179ab731f9acfc422596b6442fe68d
diff --git a/tools/helper.cpp b/tools/helper.cpp
index 232f482..a20baac 100644
--- a/tools/helper.cpp
+++ b/tools/helper.cpp
@@ -19,7 +19,6 @@
#include "status.hpp"
#include "tool_errors.hpp"
-#include <blobs-ipmid/blobs.hpp>
#include <ipmiblob/blob_errors.hpp>
#include <ipmiblob/blob_interface.hpp>
@@ -147,12 +146,12 @@
{
blobStatResp = blob->getStat(session);
- if (blobStatResp.blob_state & blobs::StateFlags::open_read)
+ if (blobStatResp.blob_state & ipmiblob::StateFlags::open_read)
{
std::fprintf(stderr, "success\n");
return std::make_pair(true, blobStatResp.size);
}
- else if (blobStatResp.blob_state & blobs::StateFlags::committing)
+ else if (blobStatResp.blob_state & ipmiblob::StateFlags::committing)
{
std::fprintf(stderr, "running\n");
}