Add mosquitto_plugin_set_info()

This allows plugins to tell the broker their name and version.
This commit is contained in:
Roger A. Light
2021-09-07 23:13:06 +01:00
parent aa29b45e70
commit 3413001d47
19 changed files with 137 additions and 7 deletions
+1
View File
@@ -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);