Add blob state definitions.
Add blob state definitions from phosphor-ipmi-blobs.
Signed-off-by: Vivekanand Veeracholan <vveerach@google.com>
Change-Id: I740f3b161e16bf9fe792e53fe7f181a92de4bcdf
diff --git a/src/ipmiblob/blob_interface.hpp b/src/ipmiblob/blob_interface.hpp
index ca90cdf..ed1de9f 100644
--- a/src/ipmiblob/blob_interface.hpp
+++ b/src/ipmiblob/blob_interface.hpp
@@ -22,6 +22,15 @@
bmcBlobWriteMeta = 10,
};
+enum StateFlags
+{
+ open_read = (1 << 0),
+ open_write = (1 << 1),
+ committing = (1 << 2),
+ committed = (1 << 3),
+ commit_error = (1 << 4),
+};
+
struct StatResponse
{
std::uint16_t blob_state;