Commit 5a7d3066f8e7b036fc3075958a51da6c9528c2c4
1 parent
569b87ee
Fix name F_flashmq_auth_plugin_periodic_event_v1
Showing
2 changed files
with
3 additions
and
3 deletions
authplugin.cpp
| @@ -143,7 +143,7 @@ void Authentication::loadPlugin(const std::string &pathToSoFile) | @@ -143,7 +143,7 @@ void Authentication::loadPlugin(const std::string &pathToSoFile) | ||
| 143 | flashmq_auth_plugin_deinit_v1 = (F_flashmq_auth_plugin_deinit_v1)loadSymbol(r, "flashmq_auth_plugin_deinit"); | 143 | flashmq_auth_plugin_deinit_v1 = (F_flashmq_auth_plugin_deinit_v1)loadSymbol(r, "flashmq_auth_plugin_deinit"); |
| 144 | flashmq_auth_plugin_acl_check_v1 = (F_flashmq_auth_plugin_acl_check_v1)loadSymbol(r, "flashmq_auth_plugin_acl_check"); | 144 | flashmq_auth_plugin_acl_check_v1 = (F_flashmq_auth_plugin_acl_check_v1)loadSymbol(r, "flashmq_auth_plugin_acl_check"); |
| 145 | flashmq_auth_plugin_login_check_v1 = (F_flashmq_auth_plugin_login_check_v1)loadSymbol(r, "flashmq_auth_plugin_login_check"); | 145 | flashmq_auth_plugin_login_check_v1 = (F_flashmq_auth_plugin_login_check_v1)loadSymbol(r, "flashmq_auth_plugin_login_check"); |
| 146 | - flashmq_auth_plugin_periodic_event_v1 = (F_flashmq_auth_plugin_periodic_event)loadSymbol(r, "flashmq_auth_plugin_periodic_event", false); | 146 | + flashmq_auth_plugin_periodic_event_v1 = (F_flashmq_auth_plugin_periodic_event_v1)loadSymbol(r, "flashmq_auth_plugin_periodic_event", false); |
| 147 | flashmq_auth_plugin_extended_auth_v1 = (F_flashmq_auth_plugin_extended_auth_v1)loadSymbol(r, "flashmq_extended_auth", false); | 147 | flashmq_auth_plugin_extended_auth_v1 = (F_flashmq_auth_plugin_extended_auth_v1)loadSymbol(r, "flashmq_extended_auth", false); |
| 148 | } | 148 | } |
| 149 | 149 |
authplugin.h
| @@ -67,7 +67,7 @@ typedef void(*F_flashmq_auth_plugin_deinit_v1)(void *thread_data, std::unordered | @@ -67,7 +67,7 @@ typedef void(*F_flashmq_auth_plugin_deinit_v1)(void *thread_data, std::unordered | ||
| 67 | typedef AuthResult(*F_flashmq_auth_plugin_acl_check_v1)(void *thread_data, AclAccess access, const std::string &clientid, const std::string &username, const FlashMQMessage &msg); | 67 | typedef AuthResult(*F_flashmq_auth_plugin_acl_check_v1)(void *thread_data, AclAccess access, const std::string &clientid, const std::string &username, const FlashMQMessage &msg); |
| 68 | typedef AuthResult(*F_flashmq_auth_plugin_login_check_v1)(void *thread_data, const std::string &username, const std::string &password, | 68 | typedef AuthResult(*F_flashmq_auth_plugin_login_check_v1)(void *thread_data, const std::string &username, const std::string &password, |
| 69 | const std::vector<std::pair<std::string, std::string>> *userProperties); | 69 | const std::vector<std::pair<std::string, std::string>> *userProperties); |
| 70 | -typedef void (*F_flashmq_auth_plugin_periodic_event)(void *thread_data); | 70 | +typedef void (*F_flashmq_auth_plugin_periodic_event_v1)(void *thread_data); |
| 71 | typedef AuthResult(*F_flashmq_auth_plugin_extended_auth_v1)(void *thread_data, const std::string &clientid, ExtendedAuthStage stage, const std::string &authMethod, | 71 | typedef AuthResult(*F_flashmq_auth_plugin_extended_auth_v1)(void *thread_data, const std::string &clientid, ExtendedAuthStage stage, const std::string &authMethod, |
| 72 | const std::string &authData, const std::vector<std::pair<std::string, std::string>> *userProperties, | 72 | const std::string &authData, const std::vector<std::pair<std::string, std::string>> *userProperties, |
| 73 | std::string &returnData, std::string &username); | 73 | std::string &returnData, std::string &username); |
| @@ -111,7 +111,7 @@ class Authentication | @@ -111,7 +111,7 @@ class Authentication | ||
| 111 | F_flashmq_auth_plugin_deinit_v1 flashmq_auth_plugin_deinit_v1 = nullptr; | 111 | F_flashmq_auth_plugin_deinit_v1 flashmq_auth_plugin_deinit_v1 = nullptr; |
| 112 | F_flashmq_auth_plugin_acl_check_v1 flashmq_auth_plugin_acl_check_v1 = nullptr; | 112 | F_flashmq_auth_plugin_acl_check_v1 flashmq_auth_plugin_acl_check_v1 = nullptr; |
| 113 | F_flashmq_auth_plugin_login_check_v1 flashmq_auth_plugin_login_check_v1 = nullptr; | 113 | F_flashmq_auth_plugin_login_check_v1 flashmq_auth_plugin_login_check_v1 = nullptr; |
| 114 | - F_flashmq_auth_plugin_periodic_event flashmq_auth_plugin_periodic_event_v1 = nullptr; | 114 | + F_flashmq_auth_plugin_periodic_event_v1 flashmq_auth_plugin_periodic_event_v1 = nullptr; |
| 115 | F_flashmq_auth_plugin_extended_auth_v1 flashmq_auth_plugin_extended_auth_v1 = nullptr; | 115 | F_flashmq_auth_plugin_extended_auth_v1 flashmq_auth_plugin_extended_auth_v1 = nullptr; |
| 116 | 116 | ||
| 117 | static std::mutex initMutex; | 117 | static std::mutex initMutex; |