bmc: move away from blobs namespace
The blobs namespace is really owned by phosphor-ipmi-blobs. Move all
phosphor-ipmi-flash objects into ipmi_flash namespace.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I51b721ad4f3cdc4cc43846c942967ed2e5f16589
diff --git a/firmware_handler.hpp b/firmware_handler.hpp
index 88cb957..e997c71 100644
--- a/firmware_handler.hpp
+++ b/firmware_handler.hpp
@@ -14,7 +14,7 @@
#include <string>
#include <vector>
-namespace blobs
+namespace ipmi_flash
{
/**
@@ -69,7 +69,7 @@
/**
* Register only one firmware blob handler that will manage all sessions.
*/
-class FirmwareBlobHandler : public GenericBlobInterface
+class FirmwareBlobHandler : public blobs::GenericBlobInterface
{
public:
enum UpdateFlags : std::uint16_t
@@ -141,7 +141,7 @@
bool canHandleBlob(const std::string& path) override;
std::vector<std::string> getBlobIds() override;
bool deleteBlob(const std::string& path) override;
- bool stat(const std::string& path, struct BlobMeta* meta) override;
+ bool stat(const std::string& path, struct blobs::BlobMeta* meta) override;
bool open(uint16_t session, uint16_t flags,
const std::string& path) override;
std::vector<uint8_t> read(uint16_t session, uint32_t offset,
@@ -152,7 +152,7 @@
const std::vector<uint8_t>& data) override;
bool commit(uint16_t session, const std::vector<uint8_t>& data) override;
bool close(uint16_t session) override;
- bool stat(uint16_t session, struct BlobMeta* meta) override;
+ bool stat(uint16_t session, struct blobs::BlobMeta* meta) override;
bool expire(uint16_t session) override;
bool triggerVerification();
@@ -197,4 +197,4 @@
bool fileOpen = false;
};
-} // namespace blobs
+} // namespace ipmi_flash