| 822 | }; |
| 823 | |
| 824 | const struct csv_fmt *csv_match_token(const char *buffer, const jsmntok_t *tok) |
| 825 | { |
| 826 | for (size_t i = 0; i < ARRAY_SIZE(csv_fmts); i++) { |
| 827 | if (json_tok_streq(buffer, tok, csv_fmts[i].fmt_name)) |
| 828 | return &csv_fmts[i]; |
| 829 | } |
| 830 | |
| 831 | return NULL; |
| 832 | } |
| 833 | |
| 834 | const char *csv_list_fmts(const tal_t *ctx) |
| 835 | { |
no test coverage detected