mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-27 14:22:34 +08:00
Add mosquitto_plugin_set_info()
This allows plugins to tell the broker their name and version.
This commit is contained in:
@@ -500,6 +500,7 @@ int mosquitto_plugin_init(mosquitto_plugin_id_t *identifier, void **user_data, s
|
||||
}
|
||||
|
||||
plg_id = identifier;
|
||||
mosquitto_plugin_set_info(identifier, "dynamic-security", NULL);
|
||||
|
||||
dynsec__config_load();
|
||||
mosquitto_callback_register(plg_id, MOSQ_EVT_CONTROL, dynsec_control_callback, "$CONTROL/dynamic-security/v1", NULL);
|
||||
|
||||
Reference in New Issue
Block a user