summaryrefslogtreecommitdiffstats
path: root/example/example.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'example/example.hpp')
-rw-r--r--example/example.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/example/example.hpp b/example/example.hpp
index a85c275..335eade 100644
--- a/example/example.hpp
+++ b/example/example.hpp
@@ -1,10 +1,25 @@
#pragma once
#include <blobs-ipmid/blobs.hpp>
+#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * This method must be declared as extern C for blob manager to lookup the
+ * symbol.
+ */
+std::unique_ptr<blobs::GenericBlobInterface> createHandler();
+
+#ifdef __cplusplus
+}
+#endif
+
namespace blobs
{
OpenPOWER on IntegriCloud