diff options
Diffstat (limited to 'api/plugin-api.hpp')
-rw-r--r-- | api/plugin-api.hpp | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/api/plugin-api.hpp b/api/plugin-api.hpp index 72175d0a..52776986 100644 --- a/api/plugin-api.hpp +++ b/api/plugin-api.hpp @@ -47,17 +47,20 @@ private slots: #define OTR_PLUGIN_EXPORT OTR_GENERIC_EXPORT #define OPENTRACK_DECLARE_PLUGIN_INTERNAL(ctor_class, ctor_ret_class, metadata_class, dialog_class, dialog_ret_class) \ - extern "C" OTR_PLUGIN_EXPORT ctor_ret_class* GetConstructor(void) \ - { \ - return new ctor_class; \ - } \ - extern "C" OTR_PLUGIN_EXPORT Metadata_* GetMetadata(void) \ - { \ - return new metadata_class; \ - } \ - extern "C" OTR_PLUGIN_EXPORT dialog_ret_class* GetDialog(void) \ - { \ - return new dialog_class; \ + extern "C" \ + { \ + OTR_PLUGIN_EXPORT ctor_ret_class* GetConstructor(void) \ + { \ + return new ctor_class; \ + } \ + OTR_PLUGIN_EXPORT Metadata_* GetMetadata(void) \ + { \ + return new metadata_class; \ + } \ + OTR_PLUGIN_EXPORT dialog_ret_class* GetDialog(void) \ + { \ + return new dialog_class; \ + } \ } // implement this in all plugins @@ -107,7 +110,6 @@ struct OTR_API_EXPORT module_status_mixin struct OTR_API_EXPORT IFilter : module_status_mixin { IFilter(const IFilter&) = delete; - IFilter(IFilter&&) = delete; IFilter& operator=(const IFilter&) = delete; IFilter(); @@ -142,7 +144,6 @@ struct OTR_API_EXPORT IProtocol : module_status_mixin IProtocol(); IProtocol(const IProtocol&) = delete; - IProtocol(IProtocol&&) = delete; IProtocol& operator=(const IProtocol&) = delete; // optional destructor @@ -189,7 +190,6 @@ struct OTR_API_EXPORT ITracker static module_status error(const QString& error); ITracker(const ITracker&) = delete; - ITracker(ITracker&&) = delete; ITracker& operator=(const ITracker&) = delete; }; @@ -241,7 +241,6 @@ struct OTR_API_EXPORT IExtension : module_status_mixin virtual void process_finished(Pose&) {} IExtension(const IExtension&) = delete; - IExtension(IExtension&&) = delete; IExtension& operator=(const IExtension&) = delete; }; |