| 301 | AUTODATA(json_command, &listconfigs_command); |
| 302 | |
| 303 | static struct command_result *param_opt_dynamic_config(struct command *cmd, |
| 304 | const char *name, |
| 305 | const char *buffer, |
| 306 | const jsmntok_t *tok, |
| 307 | const struct opt_table **config) |
| 308 | { |
| 309 | struct command_result *ret; |
| 310 | |
| 311 | ret = param_opt_config(cmd, name, buffer, tok, config); |
| 312 | if (ret) |
| 313 | return ret; |
| 314 | |
| 315 | if (!((*config)->type & OPT_DYNAMIC)) |
| 316 | return command_fail_badparam(cmd, name, buffer, tok, |
| 317 | "Not a dynamic config option"); |
| 318 | return NULL; |
| 319 | } |
| 320 | |
| 321 | static void configvar_updated(struct lightningd *ld, |
| 322 | enum configvar_src src, |
nothing calls this directly
no test coverage detected