summaryrefslogtreecommitdiffstats
path: root/blobs-ipmid
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-09-27 15:11:57 -0700
committerPatrick Venture <venture@google.com>2018-09-27 23:21:36 +0000
commitb3e07e2b63bb37b319f942604b5a94f0f13bc486 (patch)
treeac59bca6ec82b02d4509fd607f4cb067ad55247e /blobs-ipmid
parente01c0af722d342962dd57c4de7a610bf0dbb3e6a (diff)
downloadphosphor-ipmi-blobs-b3e07e2b63bb37b319f942604b5a94f0f13bc486.tar.gz
phosphor-ipmi-blobs-b3e07e2b63bb37b319f942604b5a94f0f13bc486.zip
manager: add getBlobManager as an exported method
getBlobManager will allow a library to get ahold of the BlobManager for registration purposes. Change-Id: I75f41601d10d59293c7752da8307507cc2c88434 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'blobs-ipmid')
-rw-r--r--blobs-ipmid/manager.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/blobs-ipmid/manager.hpp b/blobs-ipmid/manager.hpp
index 8220e0e..14c8b98 100644
--- a/blobs-ipmid/manager.hpp
+++ b/blobs-ipmid/manager.hpp
@@ -250,4 +250,12 @@ class BlobManager : public ManagerInterface
/* Mapping of open blobIds */
std::unordered_map<std::string, int> openFiles;
};
+
+/**
+ * @brief Gets a handle to the BlobManager.
+ *
+ * @return a pointer to the BlobManager instance.
+ */
+BlobManager* getBlobManager();
+
} // namespace blobs
OpenPOWER on IntegriCloud