| 402 | } |
| 403 | |
| 404 | struct command_result *param_array(struct command *cmd, const char *name, |
| 405 | const char *buffer, const jsmntok_t *tok, |
| 406 | const jsmntok_t **arr) |
| 407 | { |
| 408 | if (tok->type == JSMN_ARRAY) { |
| 409 | *arr = tok; |
| 410 | return NULL; |
| 411 | } |
| 412 | |
| 413 | return command_fail_badparam(cmd, name, buffer, tok, "should be an array"); |
| 414 | } |
| 415 | |
| 416 | struct command_result *param_bool(struct command *cmd, const char *name, |
| 417 | const char *buffer, const jsmntok_t *tok, |
no test coverage detected