handler: Implement open as a pass-through function

When opening a blob id, handler finds a blobstore with matching
base id and calls its open function, passing down the path and open
flags.

Signed-off-by: Kun Yi <kunyi@google.com>
Change-Id: I6127b3c2b2c4752b5e094db61f12451089ccb20b
diff --git a/binarystore.hpp b/binarystore.hpp
index 068db5a..0fc316b 100644
--- a/binarystore.hpp
+++ b/binarystore.hpp
@@ -25,7 +25,8 @@
     virtual std::string getBaseBlobId() const = 0;
     virtual std::vector<std::string> getBlobIds() const = 0;
     virtual bool canHandleBlob(const std::string& blobId) const = 0;
-    virtual bool openOrCreateBlob(const std::string& blobId) = 0;
+    virtual bool openOrCreateBlob(const std::string& blobId,
+                                  uint16_t flags) = 0;
     virtual std::vector<uint8_t> read(uint32_t offset,
                                       uint32_t requestedSize) = 0;
     virtual bool write(uint32_t offset, const std::vector<uint8_t>& data) = 0;