| 1509 | } |
| 1510 | |
| 1511 | static struct command_result *get_beglist(struct command *aux_cmd, |
| 1512 | const char *method, |
| 1513 | const char *buf, |
| 1514 | const jsmntok_t *result, |
| 1515 | void *unused) |
| 1516 | { |
| 1517 | struct plugin *plugin = aux_cmd->plugin; |
| 1518 | const char *err; |
| 1519 | |
| 1520 | err = json_scan(tmpctx, buf, result, |
| 1521 | "{configs:{i-promise-to-fix-broken-api-user:{values_str:%}}}", |
| 1522 | JSON_SCAN_TAL(plugin, json_to_apilist, &plugin->beglist)); |
| 1523 | if (err) |
| 1524 | plugin_err(aux_cmd->plugin, "bad listconfigs '%.*s': %s", |
| 1525 | json_tok_full_len(result), |
| 1526 | json_tok_full(buf, result), |
| 1527 | err); |
| 1528 | |
| 1529 | return aux_command_done(aux_cmd); |
| 1530 | } |
| 1531 | |
| 1532 | static struct command_result *handle_init(struct command *cmd, |
| 1533 | const char *buf, |
nothing calls this directly
no test coverage detected