| 377 | } |
| 378 | |
| 379 | struct command_result *param_array(struct command *cmd, const char *name, |
| 380 | const char *buffer, const jsmntok_t *tok, |
| 381 | const jsmntok_t **arr) |
| 382 | { |
| 383 | if (tok->type == JSMN_ARRAY) { |
| 384 | *arr = tok; |
| 385 | return NULL; |
| 386 | } |
| 387 | |
| 388 | return command_fail_badparam(cmd, name, buffer, tok, "should be an array"); |
| 389 | } |
| 390 | |
| 391 | struct command_result *param_bool(struct command *cmd, const char *name, |
| 392 | const char *buffer, const jsmntok_t *tok, |
no test coverage detected