| 1487 | } |
| 1488 | |
| 1489 | static void json_add_opt_subdaemons(struct json_stream *response, |
| 1490 | const char *name0, |
| 1491 | alt_subdaemon_map *alt_subdaemons) |
| 1492 | { |
| 1493 | struct json_add_opt_alt_subdaemon_args args; |
| 1494 | args.name0 = name0; |
| 1495 | args.response = response; |
| 1496 | strmap_iterate(alt_subdaemons, json_add_opt_alt_subdaemon, &args); |
| 1497 | } |
| 1498 | |
| 1499 | static void add_config(struct lightningd *ld, |
| 1500 | struct json_stream *response, |