json: add "dynamic" field to plugin list

CHANGELOG: add "dynamic" field to plugin list
This commit is contained in:
Simon Vrouwe
2022-07-04 11:23:06 +03:00
committed by neil saitug
parent 82a18813b3
commit 71cd07ea61
3 changed files with 9 additions and 2 deletions

View File

@@ -34,6 +34,7 @@ static struct command_result *plugin_dynamic_list_plugins(struct plugin_command
json_add_string(response, "name", p->cmd);
json_add_bool(response, "active",
p->plugin_state == INIT_COMPLETE);
json_add_bool(response, "dynamic", p->dynamic);
json_object_end(response);
}
json_array_end(response);