summaryrefslogtreecommitdiffstats
path: root/include/ingen/Library.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/ingen/Library.hpp')
-rw-r--r--include/ingen/Library.hpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/ingen/Library.hpp b/include/ingen/Library.hpp
index fd4f4260..99dfff4c 100644
--- a/include/ingen/Library.hpp
+++ b/include/ingen/Library.hpp
@@ -17,19 +17,22 @@
#ifndef INGEN_LIBRARY_HPP
#define INGEN_LIBRARY_HPP
-#include "ingen/FilePath.hpp"
-#include "ingen/ingen.h"
+#include <ingen/FilePath.hpp>
+#include <ingen/ingen.h>
namespace ingen {
/** A dynamically loaded library (module, plugin). */
-class INGEN_API Library {
+class INGEN_API Library
+{
public:
- Library(const FilePath& path);
+ explicit Library(const FilePath& path);
~Library();
- Library(const Library&) = delete;
+ Library(const Library&) = delete;
Library& operator=(const Library&) = delete;
+ Library(Library&&) = delete;
+ Library& operator=(Library&&) = delete;
using VoidFuncPtr = void (*)();
@@ -37,7 +40,7 @@ public:
static const char* get_last_error();
- operator bool() const { return _lib; }
+ explicit operator bool() const { return _lib; }
private:
void* _lib;