| 1497 | } |
| 1498 | |
| 1499 | static const char **json_to_apilist(const tal_t *ctx, const char *buffer, const jsmntok_t *tok) |
| 1500 | { |
| 1501 | size_t i; |
| 1502 | const jsmntok_t *t; |
| 1503 | const char **ret = tal_arr(ctx, const char *, tok->size); |
| 1504 | |
| 1505 | json_for_each_arr(i, t, tok) |
| 1506 | ret[i] = json_strdup(ret, buffer, t); |
| 1507 | |
| 1508 | return ret; |
| 1509 | } |
| 1510 | |
| 1511 | static struct command_result *get_beglist(struct command *aux_cmd, |
| 1512 | const char *method, |
nothing calls this directly
no test coverage detected