blob: f09e7a25467c7f05283ff0836d4b7309566e7136 [file] [log] [blame]
#pragma once
#include <functional>
#include <memory>
#include <string>
namespace blobs
{
/**
* Each image update mechanism must implement the ImageHandlerInterface.
*/
class ImageHandlerInterface
{
public:
virtual ~ImageHandlerInterface() = default;
/**
* open the firmware update mechanism.
*
* @param[in] path - the path passed to the handler (the blob_id).
* @return bool - returns true on success.
*/
virtual bool open(const std::string& path) = 0;
};
struct HandlerPack
{
std::string blobName;
ImageHandlerInterface* handler;
};
} // namespace blobs