]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/module.h
Add a class for loading and accessing modules at runtime
[libs/core.git] / source / core / module.h
diff --git a/source/core/module.h b/source/core/module.h
new file mode 100644 (file)
index 0000000..1d008ba
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef MSP_CORE_MODULE_H_
+#define MSP_CORE_MODULE_H_
+
+#include <string>
+
+namespace Msp {
+
+class Module
+{
+private:
+       struct Private;
+
+       Private *priv;
+
+public:
+       Module(const std::string &);
+       ~Module();
+
+       void *get_symbol(const std::string &) const;
+};
+
+} // namespace Msp
+
+#endif