diff options
Diffstat (limited to 'api/plugin-api.hpp')
-rw-r--r-- | api/plugin-api.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/api/plugin-api.hpp b/api/plugin-api.hpp index 48a1f408..4a797f73 100644 --- a/api/plugin-api.hpp +++ b/api/plugin-api.hpp @@ -90,12 +90,15 @@ struct OTR_API_EXPORT module_status final module_status(const QString& error = QString()); }; +/* + * implement in all module types + */ struct OTR_API_EXPORT module_status_mixin { - static module_status status_ok(); - static module_status error(const QString& error); + static module_status status_ok(); // return from initialize() if ok + static module_status error(const QString& error); // return error message on init failure - virtual module_status initialize() = 0; + virtual module_status initialize() = 0; // where to return from }; // implement this in filters |