From b3e07e2b63bb37b319f942604b5a94f0f13bc486 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Thu, 27 Sep 2018 15:11:57 -0700 Subject: 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 --- blobs-ipmid/manager.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'blobs-ipmid/manager.hpp') 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 openFiles; }; + +/** + * @brief Gets a handle to the BlobManager. + * + * @return a pointer to the BlobManager instance. + */ +BlobManager* getBlobManager(); + } // namespace blobs -- cgit v1.2.3