Commit 5a7d3066f8e7b036fc3075958a51da6c9528c2c4

Authored by Wiebe Cazemier
1 parent 569b87ee

Fix name F_flashmq_auth_plugin_periodic_event_v1

authplugin.cpp
... ... @@ -143,7 +143,7 @@ void Authentication::loadPlugin(const std::string &pathToSoFile)
143 143 flashmq_auth_plugin_deinit_v1 = (F_flashmq_auth_plugin_deinit_v1)loadSymbol(r, "flashmq_auth_plugin_deinit");
144 144 flashmq_auth_plugin_acl_check_v1 = (F_flashmq_auth_plugin_acl_check_v1)loadSymbol(r, "flashmq_auth_plugin_acl_check");
145 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 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 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 68 typedef AuthResult(*F_flashmq_auth_plugin_login_check_v1)(void *thread_data, const std::string &username, const std::string &password,
69 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 71 typedef AuthResult(*F_flashmq_auth_plugin_extended_auth_v1)(void *thread_data, const std::string &clientid, ExtendedAuthStage stage, const std::string &authMethod,
72 72 const std::string &authData, const std::vector<std::pair<std::string, std::string>> *userProperties,
73 73 std::string &returnData, std::string &username);
... ... @@ -111,7 +111,7 @@ class Authentication
111 111 F_flashmq_auth_plugin_deinit_v1 flashmq_auth_plugin_deinit_v1 = nullptr;
112 112 F_flashmq_auth_plugin_acl_check_v1 flashmq_auth_plugin_acl_check_v1 = nullptr;
113 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 115 F_flashmq_auth_plugin_extended_auth_v1 flashmq_auth_plugin_extended_auth_v1 = nullptr;
116 116  
117 117 static std::mutex initMutex;
... ...