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