| 351 | } |
| 352 | |
| 353 | struct command_result *param_report_format(struct command *cmd, |
| 354 | const char *name, |
| 355 | const char *buffer, |
| 356 | const jsmntok_t *tok, |
| 357 | struct report_format **format) |
| 358 | { |
| 359 | const char *err, *start; |
| 360 | struct command_result *ret; |
| 361 | |
| 362 | ret = param_escaped_string(cmd, name, buffer, tok, &start); |
| 363 | if (ret) |
| 364 | return ret; |
| 365 | |
| 366 | *format = parse_report_format(cmd, &start, '\0', '\0', &err); |
| 367 | if (!*format) |
| 368 | return command_fail_badparam(cmd, name, buffer, tok, err); |
| 369 | |
| 370 | return NULL; |
| 371 | } |
| 372 | |
| 373 | struct command_result *param_escape_format(struct command *cmd, |
| 374 | const char *name, |
nothing calls this directly
no test coverage detected