summaryrefslogtreecommitdiffstats
path: root/blobs-ipmid/blobs.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'blobs-ipmid/blobs.hpp')
-rw-r--r--blobs-ipmid/blobs.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/blobs-ipmid/blobs.hpp b/blobs-ipmid/blobs.hpp
index 0014fd4..b955245 100644
--- a/blobs-ipmid/blobs.hpp
+++ b/blobs-ipmid/blobs.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <memory>
#include <string>
#include <vector>
@@ -152,3 +153,19 @@ class GenericBlobInterface
virtual bool expire(uint16_t session) = 0;
};
} // namespace blobs
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * All Blob handlers need to implement this method. It is called after loading
+ * the library to then get a handle to the blob handler.
+ *
+ * @return a unique pointer to your blob handler instance.
+ */
+std::unique_ptr<blobs::GenericBlobInterface> createHandler();
+
+#ifdef __cplusplus
+}
+#endif
OpenPOWER on IntegriCloud